Click to See Complete Forum and Search --> : Mouse moving problem


Coming
August 23rd, 2004, 12:08 AM
I want to control the mouse moving event throung postmessage . The code that i have benn try are like :

PostMessage(FindWindow("", "Desktop"), WM_MOUSEMOVE, MK_LBUTTON, MAKELONG(x, y)) or

PostMessage(HWND_BROADCAST, WM_MOUSEMOVE, MK_LBUTTON, MAKELONG(x, y)) or

PostMessage(NULL, WM_MOUSEMOVE, MK_LBUTTON, MAKELONG(x, y))

however, the mouse doesnt move.
:blush: is there anyone has any idea?

sbubis
August 23rd, 2004, 03:17 AM
If I understand right you want to move a cursor, not mouse itself.
Use GetCursorPos/SetCursorPos pair of functions.
Read the Cursors topic of MSDN