O
odbc1230
Unregistered / Unconfirmed
GUEST, unregistred user!
var
hParent,hEdit: HWND;
StrChar;
content1,content2:array[0..255]of char;
begin
//找密码窗口
hParent := FindWindow('#32770','身份验证');
hEdit:=FindWindowEx(hParent,0,'Edit','');//取得A窗口下文本框的句柄,类型为tedit
{GetMem(Str,255);//分配内存
GetWindowText(hEdit,Str,255);//取得内容
Edit1.Text:=StrPas(Str);//内容显示在Edit1中
FreeMem(Str);//释放内存}
sendMessage(hedit,wm_gettext,100,LongInt(@content2));
edit2.Text:=content2;
对付边锋的登陆窗口为什么不可以
hParent,hEdit: HWND;
StrChar;
content1,content2:array[0..255]of char;
begin
//找密码窗口
hParent := FindWindow('#32770','身份验证');
hEdit:=FindWindowEx(hParent,0,'Edit','');//取得A窗口下文本框的句柄,类型为tedit
{GetMem(Str,255);//分配内存
GetWindowText(hEdit,Str,255);//取得内容
Edit1.Text:=StrPas(Str);//内容显示在Edit1中
FreeMem(Str);//释放内存}
sendMessage(hedit,wm_gettext,100,LongInt(@content2));
edit2.Text:=content2;
对付边锋的登陆窗口为什么不可以