Advertisement
Guest User

highlight-cursor.ahk

a guest
Nov 5th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Size := 25, Color := "Red"
  2. CoordMode, mouse, screen
  3. Gui, -Caption +ToolWindow +AlwaysOnTop +LastFound
  4. Gui, Color, %Color%
  5. GuiHwnd := WinExist()
  6. DetectHiddenWindows, On
  7. WinSet, Transparent, 100, ahk_id %GuiHwnd%
  8. WinSet, Region, % "0-0 W" Size " H" Size " E", ahk_id %GuiHwnd%
  9. WinSet, ExStyle, +0x20, ahk_id %GuiHwnd%
  10. Gui, Show, w%Size% h%Size% hide
  11. Return
  12.  
  13. ~LButton::
  14. MouseGetPos, MouseX, MouseY
  15. posX := Round(MouseX - Size/2), posY := Round(MouseY - Size/2)
  16. Gui, Show, x%posX% y%posY% NA
  17. Return
  18.  
  19. Esc::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement