Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :X:string::UseTemplate("string")
- UseTemplate(Filename) {
- bak := ClipboardAll
- Clipboard := ""
- FileRead CLipboard, % "D:\AHKTemplates\" Filename ".txt"
- ClipWait 1
- if (ErrorLevel) {
- MsgBox 0x10, Error, Couldn't set template text.
- } else {
- Send ^v
- Sleep 100
- }
- Clipboard := bak
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement