Advertisement
Guest User

bloons.ahk

a guest
Oct 11th, 2019
1,969
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance
  2. #MaxHotkeysPerInterval 1000
  3.  
  4. speed1 := 1
  5. speed2 := 5
  6.  
  7. Voice := ComObjCreate("SAPI.SpVoice")
  8. Voice.Voice := Voice.GetVoices.Item(1)
  9. Voice.Rate := 5
  10.  
  11. #MaxThreadsPerHotkey 255
  12. #IfWinActive, ahk_exe BloonsTD6.exe
  13.  
  14. F1::
  15.     Suspend Permit
  16.     Voice.Speak("exit")
  17.     ExitApp
  18. Return
  19.  
  20. F2::
  21.     Voice.Speak("reload")
  22.     Reload
  23. Return
  24.  
  25. F3::
  26.     Suspend
  27.     Voice.Speak(A_IsSuspended ? "suspended" : "unsuspended")
  28. Return
  29.  
  30. F4::
  31.     MouseGetPos, xpos, ypos
  32.     ToolTip, X%xpos% Y%ypos%.
  33.     Sleep, 3000
  34.     ToolTip
  35. Return
  36.  
  37. Up:: MouseMove, 0, -%speed1%, 0, R
  38.  
  39. Down:: MouseMove, 0, %speed1%, 0, R
  40.  
  41. Left:: MouseMove, -%speed1%, 0, 0, R
  42.  
  43. Right:: MouseMove, %speed1%, 0, 0, R
  44.  
  45. ^Up:: MouseMove, 0, -%speed2%, 0, R
  46.  
  47. ^Down:: MouseMove, 0, %speed2%, 0, R
  48.  
  49. ^Left:: MouseMove, -%speed2%, 0, 0, R
  50.  
  51. ^Right:: MouseMove, %speed2%, 0, 0, R
  52.  
  53. Enter:: MouseClick
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement