Skip to content

Instantly share code, notes, and snippets.

View gignupg's full-sized avatar

gignu gignupg

View GitHub Profile
@wi1k1n
wi1k1n / mouse_pos_show.ahk
Last active April 19, 2024 16:16
AutoHotKey: Mouse Position Helper. Simply run the script and it will show the current cursor coordinates in different CoordModes. Hotkey Strokes are also available to quickly copy current coordinates
#Persistent
CoordMode, ToolTip, screen
SetTimer, WatchCursor, 100
return
WatchCursor:
CoordMode, mouse, Screen ; Coordinates are relative to the desktop (entire screen).
MouseGetPos, x_1, y_1, id_1, control_1
CoordMode, mouse, Window ; Synonymous with Relative and recommended for clarity.
@BenjaminHerbert
BenjaminHerbert / script.py
Created July 16, 2017 22:09
Autokey - Use text from input box
import time
time.sleep(0.25)
exitCode, contents = dialog.input_dialog(message="What is the name?", default="")
salutation = ""
if exitCode == 0:
salutation = contents
answer = """Hello {0},