Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Size := 25, Color := "Red"
- CoordMode, mouse, screen
- Gui, -Caption +ToolWindow +AlwaysOnTop +LastFound
- Gui, Color, %Color%
- GuiHwnd := WinExist()
- DetectHiddenWindows, On
- WinSet, Transparent, 100, ahk_id %GuiHwnd%
- WinSet, Region, % "0-0 W" Size " H" Size " E", ahk_id %GuiHwnd%
- WinSet, ExStyle, +0x20, ahk_id %GuiHwnd%
- Gui, Show, w%Size% h%Size% hide
- Return
- ~LButton::
- MouseGetPos, MouseX, MouseY
- posX := Round(MouseX - Size/2), posY := Round(MouseY - Size/2)
- Gui, Show, x%posX% y%posY% NA
- Return
- Esc::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement