大半夜的,无聊,写了个强行QQ聊天的程序。附源代码!(纯属无聊,别无他意)
源代码如下:
unit QQ;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, OleCtrls, SHDocVw, StdCtrls;
type
TForm1 = class(TForm)
Edit1: TEdit;
Button1: TButton;
WebBrowser1: TWebBrowser;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
Webbrowser1.Navigate('tencent://message/?uin='+edit1.Text);
end;
end.
源码包:
仅供学习参考使用,这个是利用QQ网页上的QQ聊天链接的原理弄的。大家可以看下,比较简单……