R
rou
Unregistered / Unconfirmed
GUEST, unregistred user!
//得到hinstace;
myInstance:= ShellExecute(Handle,'open','notepad.exe', nil, '', SW_NORMAL);
myHWnd:=windows.FindWindow(nil, 'notepad');
但是myhwnd没得到,为0.why??????????????
//下面的setfocus要用myhwnd
windows.setfocus(myhwnd)来使得notepad得到键盘输入焦点
然后setkeys('test',true);
怎么才能得到myhwnd???或是有更好的方法向notepad setkeys??
myInstance:= ShellExecute(Handle,'open','notepad.exe', nil, '', SW_NORMAL);
myHWnd:=windows.FindWindow(nil, 'notepad');
但是myhwnd没得到,为0.why??????????????
//下面的setfocus要用myhwnd
windows.setfocus(myhwnd)来使得notepad得到键盘输入焦点
然后setkeys('test',true);
怎么才能得到myhwnd???或是有更好的方法向notepad setkeys??