When the mouse reaches the end of the screen, the cursor will be moved to the beginning of the screen and vice versa.
This simulates and endless mouse.
When I test the script it works fine.
I want to start it when FK starts and stop it when FK is closed.
This is what I tried (but doesn't work):
New Start Menu entry
Submenu: Endless Mouse
Options: Run on startup
Code: Select all
#Persistent CoordMode, Mouse, Screen SetTimer, ClosePopup, 500 ClosePopup: MouseGetPos, xpos, ypos IfGreater, xpos, 1918 ; my screen with is 1920 pixels MouseMove, -1918, 0, 0, R IfLess, xpos, 1 MouseMove, 1918, 0, 0, R ;IfLess, ypos, 1 ; MouseMove, 0, 1078, 0, R return
Or automatically click the OK button in some windows etc etc.
For now I want to focus on this endless mouse feature.
So the script needs to stay resident. Can this be done with FK