Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance,Force
- #IfWinActive, StarBreak - Google Chrome, ; Make sure this is the title of the window. If the script doesn't seem to work try putting a ; before this line.
- SetKeyDelay, 0
- JumpAttackHotkey = Space ;Must be the key set in your controls. unless stated otherwise. This one specifically should be space by default
- JumpNormalHotkey = Ctrl ; Can be any key at all.
- DownSpecialHotkey = z ; Can be any key at all.
- AttackHotkey = d
- SpecialHotkey = shift
- UpHotkey = up
- DownHotkey = down
- RightHotkey = right
- LeftHotkey = left
- InventoryHotkey = tab
- ActivateHotkey = a ;
- BounceHotkey = x ; Can be any key at all.
- SwapWeaponHotkey = q ; Can be any key at all.
- SpamDashLeftHotkey = f1 ; Can be any key at all.
- SpamDashRightHotkey = f2 ; Can be any key at all.
- DisableJumpAttackHotkey = e ;
- SwapSlot4Hotkey = r ;
- Hotkey, *~$%JumpAttackHotkey%, JumpAttackLabel
- Hotkey, *$%JumpNormalHotkey%, JumpNormalLabel
- Hotkey, *$%JumpNormalHotkey% UP, JumpNormalLabelUp
- Hotkey, *$%DownSpecialHotkey%, DownSpecialLabel
- Hotkey, *$%AttackHotkey%, AttackLabel
- Hotkey, *$%SwapWeaponHotkey%, SwapWeaponLabel
- Hotkey, *$%BounceHotkey%, BounceLabel
- Hotkey, *$%DisableJumpAttackHotkey%, DisableJumpAttackLabel
- Hotkey, *$%SwapSlot4Hotkey%,SwapSlot4
- JumpAttackEnabled = true
- return
- JumpAttackLabel:
- if(JumpAttackEnabled = "true")
- {
- Sleep,40
- Send, {%AttackHotkey% Down}
- Sleep,1
- Send, {%AttackHotkey% Up}
- GetKeyState, state, %JumpAttackHotkey%,P
- While (state = "D")
- {
- Sleep,1
- GetKeyState, state, %JumpAttackHotkey%,P
- }
- }
- return
- DisableJumpAttackLabel:
- if(JumpAttackEnabled = "true")
- {
- JumpAttackEnabled = false
- }
- else if(JumpAttackEnabled = "false")
- {
- JumpAttackEnabled = true
- }
- Send, {%InventoryHotkey%}{%RightHotkey%}{%ActivateHotkey%}{%InventoryHotkey%}
- GetKeyState, state, %UpHotkey%,P
- if(state = "D")
- {
- Send, {%UpHotkey% down}
- }
- GetKeyState, state, %DownHotkey%,P
- if(state = "D")
- {
- Send, {%DownHotkey% down}
- }
- GetKeyState, state, %LeftHotkey%,P
- if(state = "D")
- {
- Send, {%LeftHotkey% down}
- }
- GetKeyState, state, %RightHotkey%,P
- if(state = "D")
- {
- Send, {%RightHotkey% down}
- }
- GetKeyState, state, %JumpAttackHotkey%,P
- if(state = "D")
- {
- Send, {%JumpAttackHotkey% down}
- }
- return
- SwapSlot4:
- Send, {%InventoryHotkey%}{%DownHotkey%}{%ActivateHotkey%}{%InventoryHotkey%}
- GetKeyState, state, %UpHotkey%,P
- if(state = "D")
- {
- Send, {%UpHotkey% down}
- }
- GetKeyState, state, %DownHotkey%,P
- if(state = "D")
- {
- Send, {%DownHotkey% down}
- }
- GetKeyState, state, %LeftHotkey%,P
- if(state = "D")
- {
- Send, {%LeftHotkey% down}
- }
- GetKeyState, state, %RightHotkey%,P
- if(state = "D")
- {
- Send, {%RightHotkey% down}
- }
- GetKeyState, state, %JumpAttackHotkey%,P
- if(state = "D")
- {
- Send, {%JumpAttackHotkey% down}
- }
- return
- JumpNormalLabel:
- Send, {%JumpAttackHotkey% down}
- return
- JumpNormalLabelUp:
- Send, {%JumpAttackHotkey% up}
- return
- DownSpecialLabel:
- GetKeyState, state, %DownSpecialHotkey%,P
- While (state = "D")
- {
- Send {%SpecialHotkey% down}{%DownHotkey% down}
- Send {%SpecialHotkey% up}{%DownHotkey% up}
- Sleep,40
- GetKeyState, state, %DownSpecialHotkey%,P
- }
- return
- AttackLabel:
- GetKeyState, state, %AttackHotkey%,P
- While (state = "D")
- {
- Send, {%AttackHotkey% down}
- Sleep, 40
- Send, {%AttackHotkey% up}
- Sleep, 1
- GetKeyState, state, %AttackHotkey%,P
- }
- return
- SwapWeaponLabel:
- Send, {%InventoryHotkey%}{%ActivateHotkey%}{%InventoryHotkey%}
- GetKeyState, state, %UpHotkey%,P
- if(state = "D")
- {
- Send, {%UpHotkey% down}
- }
- GetKeyState, state, %DownHotkey%,P
- if(state = "D")
- {
- Send, {%DownHotkey% down}
- }
- GetKeyState, state, %LeftHotkey%,P
- if(state = "D")
- {
- Send, {%LeftHotkey% down}
- }
- GetKeyState, state, %RightHotkey%,P
- if(state = "D")
- {
- Send, {%RightHotkey% down}
- }
- GetKeyState, state, %JumpAttackHotkey%,P
- if(state = "D")
- {
- Send, {%JumpAttackHotkey% down}
- }
- return
- BounceLabel:
- GetKeyState, state, %BounceHotkey%,P
- While(state = "D")
- {
- Send, {%JumpAttackHotkey% down}
- Send, {%AttackHotkey% down}
- Sleep,40
- Send, {%AttackHotkey% Up}
- Send, {%JumpAttackHotkey% up}
- Sleep,1
- GetKeyState, state, %BounceHotkey%,P
- }
- Send, {%AttackHotkey% Up}
- Send, {%JumpAttackHotkey% up}
- return
- F12::suspend
Advertisement
Add Comment
Please, Sign In to add comment