L laohe Unregistered / Unconfirmed GUEST, unregistred user! 2005-11-16 #1 有几个实现. 1.发送鼠标点击消息到其它程序.让他点击其它程序里的某个点
L laohe Unregistered / Unconfirmed GUEST, unregistred user! 2005-11-16 #2 有几个实现. 1.发送鼠标点击消息到其它程序.让他点击其它程序里的某个点
F fling_wolf Unregistered / Unconfirmed GUEST, unregistred user! 2005-11-16 #3 sendmessage(hwnd,wm_mousedown,nc_lbutton,0);
D delphisuccess Unregistered / Unconfirmed GUEST, unregistred user! 2005-11-16 #4 例如: sendMessage(handle,WM_Mousedown,0,0);
W wwr74 Unregistered / Unconfirmed GUEST, unregistred user! 2005-11-17 #6 发送到其他程序? 那你要得到那个程序的Handle啊。先要findwindow,然后对这个handle发消息。
L laohe Unregistered / Unconfirmed GUEST, unregistred user! 2005-11-17 #7 handle,可以找到的.WM_Mousedown错了. 我改用了 sendMessage(handle,WM_baobtndown,100,100); 但鼠标不能移动到100,100这里.
L laohe Unregistered / Unconfirmed GUEST, unregistred user! 2005-11-17 #9 SetCursorPos 设为100,100,真正的鼠标就跑过去了,
W wangli1234 Unregistered / Unconfirmed GUEST, unregistred user! 2005-11-17 #10 1。先定义一个消息 2。sendMessage(目标窗口的句柄,定义的消息类型,传递的参数,传递的参数) 3.在目标窗口写一个实现这个消息的方法。
L laohe Unregistered / Unconfirmed GUEST, unregistred user! 2005-11-17 #11 XYWND已获取. SetWindowPos(XYWND, HWND_TOPMOST, 0,0, 0,0, SWP_NOMOVE + SWP_NOSIZE);//TOP SetForegroundWindow(XYWND); //焦点 SendMessage(XYWND,WM_MOUSEMOVE,x,y); SendMessage(XYWND,WM_LBUTTONDOWN,x,y); SendMessage(XYWND,WM_LBUTTONUP,x,y); SetWindowPos(XYWND, HWND_NOTOPMOST, 0,0,0,0, SWP_NOMOVE + SWP_NOSIZE) ; 还是不能用,为什么,请大家帮忙看看
XYWND已获取. SetWindowPos(XYWND, HWND_TOPMOST, 0,0, 0,0, SWP_NOMOVE + SWP_NOSIZE);//TOP SetForegroundWindow(XYWND); //焦点 SendMessage(XYWND,WM_MOUSEMOVE,x,y); SendMessage(XYWND,WM_LBUTTONDOWN,x,y); SendMessage(XYWND,WM_LBUTTONUP,x,y); SetWindowPos(XYWND, HWND_NOTOPMOST, 0,0,0,0, SWP_NOMOVE + SWP_NOSIZE) ; 还是不能用,为什么,请大家帮忙看看