Guest User

Untitled

a guest
Apr 2nd, 2023
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. :X:ASDr::UseTemplate("ASDr")
  2. :X:ADHDr::UseTemplate("ADHDr")
  3.  
  4. UseTemplate(Filename) {
  5. bak := ClipboardAll
  6. Clipboard := ""
  7. FileRead CLipboard, % "D:\Templates\" Filename ".txt"
  8. ClipWait 1
  9. if (ErrorLevel) {
  10. MsgBox 0x10, Error, Couldn't set template text.
  11. } else {
  12. Send ^v
  13. Sleep 1000
  14. }
  15. Clipboard := bak
  16. }
Add Comment
Please, Sign In to add comment