PostMessage()如何用?能用来传递鼠标、键盘消息吗?(0分)

  • 主题发起人 主题发起人 16cy
  • 开始时间 开始时间
1

16cy

Unregistered / Unconfirmed
GUEST, unregistred user!
PostMessage()如何用?能用来传递鼠标、键盘消息吗?
 
SendMessage(Handle,WM_LBUTTONDBLCLK,0,0);
SendMessage(Handle,WM_KEYDOWN,0,0);
 
postmessage: 将消息发出,至于消息什么时候被接受就不可预测。程序也不会因为它而中断。
sendmessage:将消息发出,并等待消息被接受执行。
 
WM_MOUSEFIRST = $0200;
WM_MOUSEMOVE = $0200;
WM_LBUTTONDOWN = $0201;
WM_LBUTTONUP = $0202;
WM_LBUTTONDBLCLK = $0203;
WM_RBUTTONDOWN = $0204;
WM_RBUTTONUP = $0205;
WM_RBUTTONDBLCLK = $0206;
WM_MBUTTONDOWN = $0207;
WM_MBUTTONUP = $0208;
WM_MBUTTONDBLCLK = $0209;
WM_MOUSEWHEEL = $020A;
WM_MOUSELAST = $020A;
 
后退
顶部