autohotkey script code example

Example 1: ahk send

Send Sincerely,{enter}John Smith  ; Types a two-line signature.
Send !fs ; Select the File->Save menu (Alt+F followed by S).
Send {End}+{Left 4} ; Jump to the end of the text then send four shift+left-arrow keystrokes.
SendInput {Raw}A long series of raw characters sent via the fastest method.

Example 2: autohotkey hotkeys

#^!s:: ;This occurs when pressed Windows Button+Control+Alt+s
Send Sincerely,{enter}John Smith  ; This line sends keystrokes to the active (foremost) window.
return

Tags:

Misc Example