Real Mouse Coordinates

Blitz3D Forums/Blitz3D Beginners Area/Real Mouse Coordinates

blade007(Posted 2009) [#1]
Hello,

I wanted to make a sort of autoclicker/ghost mouse program, but Blitz bases its coordinates off of the window instead of the whole screen. I was wondering how do you get the "real" mouse coordinates?


Warner(Posted 2009) [#2]
You should use the GetCursorPos api. Have a look at Sswift's code here:
http://www.blitzbasic.com/codearcs/codearcs.php?code=1290
The MouseScreenX and MouseScreenY functions return the global mouse position.


blade007(Posted 2009) [#3]
thanks!