still moving the mouse
-
Hi there, I'm in need of help to move the mouse to any position on my program's window. I got help, and was told to use the SetCursorPos() function. This moves the mouse to a point on the screen and not on my window. How can I get my window's top and left position so that I can use SetCursorPos(window.left + x, window.top + y) //x and y are the position on //my program's window ? Are there better ways of doing this? thanx...
KOM UIT DAAAAA!!!
-
Hi there, I'm in need of help to move the mouse to any position on my program's window. I got help, and was told to use the SetCursorPos() function. This moves the mouse to a point on the screen and not on my window. How can I get my window's top and left position so that I can use SetCursorPos(window.left + x, window.top + y) //x and y are the position on //my program's window ? Are there better ways of doing this? thanx...
KOM UIT DAAAAA!!!
-
Hi there, I'm in need of help to move the mouse to any position on my program's window. I got help, and was told to use the SetCursorPos() function. This moves the mouse to a point on the screen and not on my window. How can I get my window's top and left position so that I can use SetCursorPos(window.left + x, window.top + y) //x and y are the position on //my program's window ? Are there better ways of doing this? thanx...
KOM UIT DAAAAA!!!
-
Hi there, I'm in need of help to move the mouse to any position on my program's window. I got help, and was told to use the SetCursorPos() function. This moves the mouse to a point on the screen and not on my window. How can I get my window's top and left position so that I can use SetCursorPos(window.left + x, window.top + y) //x and y are the position on //my program's window ? Are there better ways of doing this? thanx...
KOM UIT DAAAAA!!!
Grimes wrote:
mouse to any position on my program's window.
Try ScreenToClient(LPPOINT lpPoint);
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
Hi there, I'm in need of help to move the mouse to any position on my program's window. I got help, and was told to use the SetCursorPos() function. This moves the mouse to a point on the screen and not on my window. How can I get my window's top and left position so that I can use SetCursorPos(window.left + x, window.top + y) //x and y are the position on //my program's window ? Are there better ways of doing this? thanx...
KOM UIT DAAAAA!!!
You want to use the function GetWindowRect to get the window coordinates. From that you can then call SetCursorPos and apply the correct offsets. x_coord+=x_offset; y_coord+=y_offset; Search for GetWindowRect on google and it should take you to the msdn page for that function.
Chipper Martin