W wwshuo Unregistered / Unconfirmed GUEST, unregistred user! 2003-07-20 #1 如我要向其它软件窗体中的Edit输入字符,怎么办?<br>好像要用到sendmessage函数,但是我不知道具体怎样做?请教了哈。
W wjh_wy Unregistered / Unconfirmed GUEST, unregistred user! 2003-07-21 #4 大家一起讨论<br>http://www.delphibbs.com/delphibbs/DispQ.asp?LID=2043317
6 600019629 Unregistered / Unconfirmed GUEST, unregistred user! 2003-07-29 #5 hParent:=FindWindow(nil,pChar('XXXXXXXXX'));<br>TempHandle:=FindWindowEx(hParent,0,PChar('Edit'),'');<br>SendMessage(TempHandle,WM_SETTEXT,0,pchar('XXXXXXXXX'));
hParent:=FindWindow(nil,pChar('XXXXXXXXX'));<br>TempHandle:=FindWindowEx(hParent,0,PChar('Edit'),'');<br>SendMessage(TempHandle,WM_SETTEXT,0,pchar('XXXXXXXXX'));
P plzw Unregistered / Unconfirmed GUEST, unregistred user! 2003-07-29 #6 1.得到该Edit的句柄<br>2.用SendMessage或PostMessage发送消息<br>3.对于具体的输入就用楼上所说的WM_SETTEXT
D DeityFox Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-09 #8 先找到窗体的句柄,然后查找Edit的句柄阿,通过Edit的类名<br>你可以先用spy看看这个edit的类名<br>因为开发工具不同edit的类名也不同