Advertisement
Guthlx

AHK cursor position in current window

May 13th, 2022
1,451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance force
  2. #NoEnv
  3. #Warn
  4. #Persistent
  5.  
  6. ; get mousecursor positioning on currenct active window
  7. ; copies to clipboard
  8. ; Right control + Right mousebutton, then check your clipboard
  9. >^RButton::  
  10. MouseGetPos, oposx, oposy  
  11. PixelGetColor, grabcolor, %oposx%, %oposy%
  12. ;, RGB
  13. ToolTip, Copied to clipboard`nX %oposx%`nY %oposy%
  14. SetTimer, removetooltip, -3000
  15. Clipboard = X %oposx%`nY %oposy%
  16. ;,%grabcolor%  
  17. ClipWait  
  18. Return
  19.  
  20. removetooltip:
  21. Tooltip
  22. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement