hi
i want to move the mouse using *WM_MOUSEMOVE* message.but i do not know how to set lparam value?
please guide to accomplish this.
views:
290answers:
2
+5
A:
WM_MOUSEMOVE is just a notification - it is sent as a result of a mouse moving, it does not cause it to happen.
SetCursorPos can move the cursor to a new position. SendInput can be used to simulate mouse events directly.
Michael
2009-08-19 18:48:17
As can mouse_event()
Remy Lebeau - TeamB
2009-08-20 00:11:58
+2
A:
try this
procedure MouseMove(x,y:Integer);
Begin
mouse_event(MOUSEEVENTF_MOVE or MOUSEEVENTF_ABSOLUTE, x, y, 0, 0);
End;
Bye;
RRUZ
2009-08-20 01:25:47