tags:

views:

290

answers:

2

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.

+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
As can mouse_event()
Remy Lebeau - TeamB
+2  A: 

try this

procedure MouseMove(x,y:Integer); 
Begin
mouse_event(MOUSEEVENTF_MOVE or MOUSEEVENTF_ABSOLUTE, x, y, 0, 0);
End;

Bye;

RRUZ