Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  3. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  4.  
  5. ;----------------------------
  6. ;Ultimate Transformice Script
  7. ;Version 3.1 - 6 Feb. 2011
  8. ;Created by Keresztanya
  9. ;----------------------------
  10.  
  11. ;Reload script
  12. ^!r::Reload
  13.  
  14. #IfWinActive ahk_class WindowsForms10.Window.8.app.0.378734a
  15.  
  16. ;Q for big planks
  17. ~q::
  18. if chat = 0
  19. send, 9
  20. return
  21.  
  22. ;E for little planks
  23. ~e::
  24. if chat = 0
  25. send, 8
  26. return
  27.  
  28. ;Box with c at base
  29. !6:: ;alt+6
  30. Send, 6ccxxxxxx{SPACE}
  31. return
  32.  
  33. ;Chat counter
  34. chat = 0
  35. ~Enter::
  36. chat := % ((!chat) & 1)
  37. return
  38.  
  39. ~t::
  40. if chat = 0
  41. chat = 1
  42. return
  43.  
  44. ~r::
  45. if chat = 0
  46. chat = 1
  47. return
  48.  
  49. ;Automatic ghost bloons
  50. ~3::
  51. if chat = 0
  52. send, 3{SPACE}
  53. return
  54.  
  55. ;Font change
  56. F5::
  57. send, {RETURN}/font Segoe UI{RETURN}
  58. return
  59.  
  60. CoordMode Pixel
  61. ;Cannon down
  62. +s::
  63. if chat = 0
  64. {
  65. ImageSearch, CDX, CDY, 0, 0, A_ScreenWidth, A_ScreenHeight, *3 cannondown.png
  66. MouseGetPos, xpos, ypos
  67. Click %CDX%, %CDY%
  68. MouseMove, %xpos%, %ypos%
  69. }
  70. else
  71. send, S
  72.  
  73. return
  74.  
  75. ;Cannon right
  76. +d::
  77. if chat = 0
  78. {
  79. ImageSearch, CRX, CRY, 0, 0, A_ScreenWidth, A_ScreenHeight, *3 cannonright.png
  80. MouseGetPos, xpos, ypos
  81. Click %CRX%, %CRY%
  82. MouseMove, %xpos%, %ypos%
  83. }
  84. else
  85. send, D
  86.  
  87. return
  88.  
  89. ;Cannon left
  90. +a::
  91. if chat = 0
  92. {
  93. ImageSearch, CLX, CLY, 0, 0, A_ScreenWidth, A_ScreenHeight, *3 cannonleft.png
  94. MouseGetPos, xpos, ypos
  95. Click %CLX%, %CLY%
  96. MouseMove %xpos%, %ypos%
  97. }
  98. else
  99. send, A
  100.  
  101. return
  102.  
  103. ;Bawls ^^
  104. ~0::
  105. if chat = 0
  106. {
  107. ImageSearch, BX, BY, 0, 0, A_ScreenWidth, A_ScreenHeight, *3 bawl.png
  108. MouseGetPos, xpos, ypos
  109. Click %BX%, %BY%
  110. MouseMove, %xpos%, %ypos%
  111. }
  112. return
  113.  
  114. /*--ImageSearch Debugger--
  115. if ErrorLevel = 2
  116. MsgBox Could not conduct the search.
  117. else if ErrorLevel = 1
  118. MsgBox Icon could not be found on the screen.
  119. else
  120. MsgBox The icon was found at %posx%x%posy%.
  121. */
  122.  
  123. ;Spirit heart
  124. F8::
  125. MouseGetPos, posx, posy
  126. Send, 2
  127. Click %posx%, %posy% ;0
  128. Click -20, -20, Rel ;-20, -20
  129. Click -20, -20, Rel ;-40, -40
  130. Click -20, -20, Rel ;-60, -60
  131. Click -20, -20, Rel ;-80, -80
  132. Click 0, -20, Rel ;-80, -100
  133. Click 10, -10, Rel ;-70, -110
  134. Click 10, -10, Rel ;-60, -120
  135. Click 20, 10, Rel ;-40, -110
  136. Click 20, 10, Rel ;-20, -100
  137. Click 20, 10, Rel ;0, -90
  138. Click 20, -10, Rel ;20, -100
  139. Click 20, -10, Rel ;40, -110
  140. Click 20, -10, Rel ;60, -120
  141. Click 10, 10, Rel ;70, -110
  142. Click 10, 10, Rel ;80, -100
  143. Click 0, 20, Rel ;80, -80
  144. Click -20, 20, Rel ;60, -60
  145. Click -20, 20, Rel ;40, -40
  146. Click -20, 20, Rel ;20, -20
  147. Click -20, 20, Rel ;0, 0
  148. return
  149.  
  150. ;Vote no (room shamantest/maptest)
  151. ~m:: ;N cannot be used because of N anchors
  152. if chat = 0
  153. Send, {RETURN}.no{RETURN}
  154. return
  155.  
  156. ;Vote yes (room shamantest/maptest)
  157. ~y::
  158. if chat = 0
  159. send, {RETURN}.yes{RETURN}
  160. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement