Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CoordMode, ToolTip, screen
- CoordMode, Mouse, screen
- CoordMode, Pixel, screen
- #Persistent
- ;==============================================================================
- ; simulated 2nd cursor, press F1 swap the positions of the two cursors
- ;==============================================================================
- xloc := A_ScreenWidth/2
- yloc := A_ScreenHeight/2
- image = cursor.gif ; <---- you must provide your own cursor image
- ; load the image and give it a unique name (not shown) so that it can be used later
- SplashImage, %image%, B X%xloc% Y%yloc%,,, Cursor2
- WinSet, TransColor, Off, Cursor2
- WinSet, TransColor, F249FF, Cursor2
- return
- ; in case of emergency, hit escape ;)
- esc::exitapp
- return
- ;=======================================================
- ; swap the positions of the cursors
- ;=======================================================
- `::
- blockinput, on ; block keyboard & moouse during the swap
- MouseGetPos, xpos, ypos
- winmove, Cursor2,, %xpos%, %ypos%
- MouseMove, xloc, yloc ,0
- xloc := xpos
- yloc := ypos
- blockinput, off
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement