Z
zykk
Unregistered / Unconfirmed
GUEST, unregistred user!
比如说:我想利用程序在桌面实现选中几个图标的效果,为何下面代码的结果
只是简单的点击效果:
setcursorpos(1,1);
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
//左键按下
setcursorpos(200,200);
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
//左键释放
错在哪里,如何实现?
只是简单的点击效果:
setcursorpos(1,1);
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
//左键按下
setcursorpos(200,200);
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
//左键释放
错在哪里,如何实现?