I'm trying to make a mouse click hotkey sequence like the one below.
This script works, but the problem is that the mouse is not moved back to the original position the mouse where when the script was activated.
Code: Select all
+^!5:: ; Draw circle
WinActivate, Chart
MouseGetPos, posx, posy
MouseClick, left, 4000,740
Sleep, 200
MouseClick, left, 3600, 940
MouseMove, %posx%, %posy%
return
Also none of the coordinates from the Window Spy is correct with these screen resolution settings.
Can anyone point me in the right direction to solve this problem?
One solution would of course be to sett my screen to 1920x1080, but that would not work to great with my two other screens that are also set to 3840x2160.
All help would be appreciated, thanks in advance
Kim
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]