delphi调用windows鼠标右键功能 ( 积分: 100 )

  • 主题发起人 主题发起人 gaoyongming
  • 开始时间 开始时间
G

gaoyongming

Unregistered / Unconfirmed
GUEST, unregistred user!
delphi调用windows鼠标右键功能?
 
delphi调用windows鼠标右键功能?
 
鼠标移动(移动量dx,dy)<br>mouse_event(MOUSEEVENTF_MOVE,dx,dy,0,0);<br>鼠标在(x,y)处按下或释放<br>setcursorpos(x,y);<br>mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);<br>mouse_event(MOUSEEVENTF_RIGHTDOWN,0,0,0,0);<br>mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);<br>mouse_event(MOUSEEVENTF_RIGHTUP,0,0,0,0);<br>鼠标双击由两次按下与释放来模拟
 
后退
顶部