Created
January 14, 2025 12:38
-
-
Save JoeGlines/b4a4365d94f84398a44a5013ead93c6c to your computer and use it in GitHub Desktop.
simple v2 example using HotStrings to paste different text
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
#Requires AutoHotkey v1.1.33+ | |
#SingleInstance, Force ;Limit one running version of this script | |
#NoEnv ;Avoids checking empty variables to see if they are environment variables | |
:*X:cal::Snd("https://the-Automator.com/1HourConsult") ;type cal sends HotString | |
:*X:con::Snd("https://the-Automator.com/Consult") ;type con sends HotString | |
Snd(str){ | |
clipsave := ClipboardAll ;backup clipboard | |
Clipboard := "" | |
Clipboard := str | |
send ^v ;paste | |
sleep 1000 ;wait to be sure paste actually happend | |
Clipboard := clipsave ;restore clipboard | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment