Does anyone within the forum know how to set the mouse cursor to a specific position within a window using Creative Basic.
I have tried the following code but this doesn't seem to work.
@MOUSEY = 100
I would be grateful if anyone within the forum can help with the problem.
You need the SetCursorPos API call. I have just tried it and it works, but how you
get it to be inside your own program window I just don't know
Have a search on the 'net for it
DECLARE "user32.dll",SetCursorPos(x:INT, y:INT),INT
DECLARE "user32.dll",ClientToScreen(hwnd:INT, lpPoint:POINTAPI),INT
window w1,100,100,400,400,@TOOLWINDOW,0,"Position Mouse",mainwin
run = 1
run = 0
Thanks LarryMc - the Mouse Position code works fine.