Advertisement
BlackDragonBE

RWTutorialMode.au3

Jan 19th, 2019
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.27 KB | None | 0 0
  1. Opt("SendKeyDelay", 0)
  2.  
  3. ; Made with a belgian AZERTY keyboard in mind. Change hotkeys as desired.
  4.  
  5. HotKeySet("µ", SendCodeTag) ;Replace µ with the key you want replaced by a single `
  6. HotKeySet("ù", SendEmHyphen) ;Replace ù with the key you want replaced by a — (em hyphen)
  7. HotKeySet("é", SendVector) ;Replace é with the Vector3 representation
  8. HotKeySet("²", SendCodeBlock) ;Replace ² with a code block
  9. HotKeySet("$", SendSurroundWithImageTag) ;Replace $ with an image tag surround
  10. HotKeySet("à", SendRightArrow); ;Replace à with an image tag surround
  11. ;HotKeySet("x", SendQuickPasteSaveClose)
  12.  
  13. While 1
  14.     Sleep(50)
  15. WEnd
  16.  
  17. Func SendCodeTag()
  18.     Send("``")
  19.     Send("{BACKSPACE}")
  20. EndFunc
  21.  
  22. Func SendEmHyphen()
  23.     Send("—")
  24.  EndFunc
  25.  
  26. Func SendVector()
  27.     Send("**(X:0, Y:0, Z:0)**")
  28.  EndFunc
  29.  
  30. Func SendCodeBlock()
  31.     Send("```cs")
  32.     Send("{Enter 2}")
  33.     Send("``` ")
  34. EndFunc
  35.  
  36. ;~ Func SendSurroundWithImageTag()
  37. ;~  Send("{HOME}")
  38. ;~  Send("{!}[width=70%](images/")
  39. ;~  Send("{END}")
  40. ;~  Send(")")
  41. ;~ EndFunc
  42.  
  43. Func SendSurroundWithImageTag()
  44.     Send("{HOME}")
  45.     Send("{!}[](images/")
  46.     Send("{END}")
  47.     Send(")")
  48. EndFunc
  49.  
  50. Func SendQuickPasteSaveClose()
  51.     Send("^v")
  52.     Send("^s")
  53.     Send("^w")
  54.  EndFunc
  55.  
  56.  Func SendRightArrow()
  57.     Send("{ASC 16}")
  58.  EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement