Guest User

Mighty Merc Facts AHK

a guest
Jul 1st, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #b::
  2.  
  3. SetKeyDelay 100,300
  4.  
  5. F2::Chat1()
  6. F3::Chat2()
  7. F4::Chat3()
  8. F5::Chat4()
  9.  
  10. Chat1() {
  11. File = E:\temp\merc.txt
  12. FileRead,FileContents,%File%
  13. Sort,FileContents,Random
  14. RandLine := SubStr(FileContents,1,InStr(FileContents,"`r")-1)
  15. BlockInput On
  16. SendInput t
  17. sleep 5
  18. SendEvent %RandLine% {enter}
  19. BlockInput Off
  20. return
  21. }
  22.  
  23. Chat2() {
  24. BlockInput On
  25. SendInput t
  26. sleep 5
  27. SendEvent {space}Hello and welcome to Merc Facts{!} Please concede a goal for a random Merc Fact{!} {enter}
  28. BlockInput Off
  29. return
  30. }
  31.  
  32. Chat3() {
  33. BlockInput On
  34. SendInput t
  35. sleep 5
  36. SendEvent {space}Thank you for your participation{!} We hope this Merc Facts session has been enjoyable. {enter}
  37. BlockInput Off
  38. return
  39. }
  40.  
  41. Chat4() {
  42. BlockInput On
  43. SendInput t
  44. sleep 5
  45. SendEvent {space}It seems you have seen this fact earlier in this session of Merc facts. Here's another one free of charge{!} {enter}
  46. BlockInput Off
  47. Chat1()
  48. return
  49. }
Advertisement
Add Comment
Please, Sign In to add comment