Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- ;----------------------------
- ;Ultimate Transformice Script
- ;Version 3.1 - 6 Feb. 2011
- ;Created by Keresztanya
- ;----------------------------
- ;Reload script
- ^!r::Reload
- #IfWinActive ahk_class WindowsForms10.Window.8.app.0.378734a
- ;Q for big planks
- ~q::
- if chat = 0
- send, 9
- return
- ;E for little planks
- ~e::
- if chat = 0
- send, 8
- return
- ;Box with c at base
- !6:: ;alt+6
- Send, 6ccxxxxxx{SPACE}
- return
- ;Chat counter
- chat = 0
- ~Enter::
- chat := % ((!chat) & 1)
- return
- ~t::
- if chat = 0
- chat = 1
- return
- ~r::
- if chat = 0
- chat = 1
- return
- ;Automatic ghost bloons
- ~3::
- if chat = 0
- send, 3{SPACE}
- return
- ;Font change
- F5::
- send, {RETURN}/font Segoe UI{RETURN}
- return
- CoordMode Pixel
- ;Cannon down
- +s::
- if chat = 0
- {
- ImageSearch, CDX, CDY, 0, 0, A_ScreenWidth, A_ScreenHeight, *3 cannondown.png
- MouseGetPos, xpos, ypos
- Click %CDX%, %CDY%
- MouseMove, %xpos%, %ypos%
- }
- else
- send, S
- return
- ;Cannon right
- +d::
- if chat = 0
- {
- ImageSearch, CRX, CRY, 0, 0, A_ScreenWidth, A_ScreenHeight, *3 cannonright.png
- MouseGetPos, xpos, ypos
- Click %CRX%, %CRY%
- MouseMove, %xpos%, %ypos%
- }
- else
- send, D
- return
- ;Cannon left
- +a::
- if chat = 0
- {
- ImageSearch, CLX, CLY, 0, 0, A_ScreenWidth, A_ScreenHeight, *3 cannonleft.png
- MouseGetPos, xpos, ypos
- Click %CLX%, %CLY%
- MouseMove %xpos%, %ypos%
- }
- else
- send, A
- return
- ;Bawls ^^
- ~0::
- if chat = 0
- {
- ImageSearch, BX, BY, 0, 0, A_ScreenWidth, A_ScreenHeight, *3 bawl.png
- MouseGetPos, xpos, ypos
- Click %BX%, %BY%
- MouseMove, %xpos%, %ypos%
- }
- return
- /*--ImageSearch Debugger--
- if ErrorLevel = 2
- MsgBox Could not conduct the search.
- else if ErrorLevel = 1
- MsgBox Icon could not be found on the screen.
- else
- MsgBox The icon was found at %posx%x%posy%.
- */
- ;Spirit heart
- F8::
- MouseGetPos, posx, posy
- Send, 2
- Click %posx%, %posy% ;0
- Click -20, -20, Rel ;-20, -20
- Click -20, -20, Rel ;-40, -40
- Click -20, -20, Rel ;-60, -60
- Click -20, -20, Rel ;-80, -80
- Click 0, -20, Rel ;-80, -100
- Click 10, -10, Rel ;-70, -110
- Click 10, -10, Rel ;-60, -120
- Click 20, 10, Rel ;-40, -110
- Click 20, 10, Rel ;-20, -100
- Click 20, 10, Rel ;0, -90
- Click 20, -10, Rel ;20, -100
- Click 20, -10, Rel ;40, -110
- Click 20, -10, Rel ;60, -120
- Click 10, 10, Rel ;70, -110
- Click 10, 10, Rel ;80, -100
- Click 0, 20, Rel ;80, -80
- Click -20, 20, Rel ;60, -60
- Click -20, 20, Rel ;40, -40
- Click -20, 20, Rel ;20, -20
- Click -20, 20, Rel ;0, 0
- return
- ;Vote no (room shamantest/maptest)
- ~m:: ;N cannot be used because of N anchors
- if chat = 0
- Send, {RETURN}.no{RETURN}
- return
- ;Vote yes (room shamantest/maptest)
- ~y::
- if chat = 0
- send, {RETURN}.yes{RETURN}
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement