G goodboy Unregistered / Unconfirmed GUEST, unregistred user! 1999-08-03 #1 如何在程序中模拟鼠标动作,程序能自动控制鼠标的点击,拖动等。
T tiger007 Unregistered / Unconfirmed GUEST, unregistred user! 1999-08-03 #2 用Windows API"mouse_event"可以模拟鼠标动作.
M menxin Unregistered / Unconfirmed GUEST, unregistred user! 1999-08-03 #3 以前也讨论过! //移动 mouse_event(MOUSEEVENTF_MOVE,100,100,0,0); //双击 mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0); mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
以前也讨论过! //移动 mouse_event(MOUSEEVENTF_MOVE,100,100,0,0); //双击 mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0); mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
G goodboy Unregistered / Unconfirmed GUEST, unregistred user! 1999-08-04 #5 但如何控制鼠标按预定轨迹运动,如何模拟拖动?那位大虾能告诉,100分将给你!
M menxin Unregistered / Unconfirmed GUEST, unregistred user! 1999-08-04 #6 //拖动 mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0); mouse_event(MOUSEEVENTF_MOVE,?,?,0,0); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0); ?处为所经过的轨迹方程上的点。
//拖动 mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0); mouse_event(MOUSEEVENTF_MOVE,?,?,0,0); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0); ?处为所经过的轨迹方程上的点。
J jghuang Unregistered / Unconfirmed GUEST, unregistred user! 1999-08-04 #7 I wander that the mouse is really moved when a Mouse_event is used? Thank you!