Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created January 14, 2025 12:38
Show Gist options
  • Save JoeGlines/b4a4365d94f84398a44a5013ead93c6c to your computer and use it in GitHub Desktop.
Save JoeGlines/b4a4365d94f84398a44a5013ead93c6c to your computer and use it in GitHub Desktop.
simple v2 example using HotStrings to paste different text
#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