Last active
August 26, 2023 06:59
-
-
Save KarlRamstedt/53e006d5e5dc7a41ed67b0e829bc061e to your computer and use it in GitHub Desktop.
Utility script for finding screen coordinates. Simply shows the coordinates your mouse is currently located at
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gui -Caption +AlwaysOnTop +ToolWindow +LastFound ; +ToolWindow means no taskbar button or alt-tab item. LastFound is used for WinSet. | |
Gui, Font, s32 q3, Arial ; Set font size and quality (prevents AA mixing letters with background) | |
Gui, Add, Text, vCoordText c00FF00, XXXXX YYYYY ; XX & YY sets window size to roughly what is needed to contain mouse coordinates | |
Gui, Color, Black ; Background color | |
WinSet, TransColor, Black 150 ; Make the background color transparent and set text opacity(150) | |
CoordMode, Mouse, Screen ; Mouse position relative to screen, not active window | |
SetTimer, Update, 50 | |
Gui, Show, x0 y0 NA ; Shows window without activating it. Change X and Y numbers to move the overlay. | |
return ; End of auto-execute | |
Update(){ | |
MouseGetPos, mouseX, mouseY | |
GuiControl,, CoordText, %mouseX%, %mouseY% | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment