Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;m00kz Halo Infinite campaign;
- ; ability hotkeys ;
- ;AutoHotKey Version 1.1.32.00;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;Install AutoHotKey
- ;Save this text file with an .AHK extension to open it with AutoHotKey
- ;AutoHotKey.exe MUST BE SET TO RUN AS ADMINISTRATOR to function in Halo Infinite
- ;Tweak the "BINDINGS" section of this file to your liking
- ;AutoHotKey instruction manual: https://www.autohotkey.com/docs/AutoHotkey.htm
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;Initialization - don't know if I need all this shit but being safe;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- #NoEnv
- ;Avoids checking empty variables to see if
- ;they are environment variables
- ;(recommended for all new scripts).
- #SingleInstance, Force
- ;Skips the dialog box and replaces the old
- ;instance automatically, which is similar
- ;in effect to the Reload command.
- #Persistent
- ;Keeps a script permanently running (that
- ;is, until the user closes it or ExitApp
- ;is encountered).
- #InstallKeybdHook
- ;Forces the unconditional installation of
- ;the keyboard hook.
- #UseHook
- ;Force the use of the hook for hotkeys
- ;after this point.
- #KeyHistory, 0
- ;Sets the maximum number of keyboard and
- ;mouse events displayed by the KeyHistory
- ;window. You can set it to 0 to disable
- ;key history.
- #HotKeyInterval 1
- ;Along with #MaxHotkeysPerInterval,
- ;specifies the rate of hotkey activations
- ;beyond which a warning dialog will be
- ;displayed.
- #MaxHotkeysPerInterval 127
- ;Along with #HotkeyInterval, specifies the
- ;rate of hotkey activations beyond which a
- ;warning dialog will be displayed.
- SetKeyDelay,-1, 1
- ;Sets the delay that will occur after each
- ;keystroke sent by Send and ControlSend.
- SetControlDelay, -1
- ;Sets the delay that will occur after each
- ;control-modifying command.
- SetMouseDelay, -1
- ;Sets the delay that will occur after each
- ;mouse movement or click.
- SetWinDelay,-1
- ;Sets the delay that will occur after each
- ;windowing command, such as WinActivate.
- SendMode, Input
- ;Switches to the SendInput method for Send,
- ;SendRaw, Click, and MouseMove/Click/Drag.
- ;SendMode, InputThenPlay
- ;Same as above except that rather than
- ;falling back to Event mode when SendInput
- ;is unavailable, it reverts to Play mode
- ;(below). This also causes the SendInput
- ;command itself to revert to Play mode when
- ;SendInput is unavailable.
- ;PID := DllCall("GetCurrentProcessId")
- ;Process, Priority, %PID%, High
- ;;;;;;;;;;
- ;Bindings;
- ;;;;;;;;;;
- #If WinActive("ahk_exe HaloInfinite.exe")
- ;Checks if the game .exe is the active window
- ;Grapple
- *1::
- *CapsLock::
- send {1 down}
- sleep 10
- send {1 up}
- useAbility()
- return
- ;Dash - Control key activates on up unless using ~ prefix
- *2::
- *~Control::
- send {2 down}
- sleep 10
- send {2 up}
- useAbility()
- return
- ;Shield Wall
- *3::
- send {3 down}
- sleep 10
- send {3 up}
- useAbility()
- return
- ;Threat Sensor
- *4::
- send {4 down}
- sleep 10
- send {4 up}
- useAbility()
- return
- ;Fix janky mouse wheel weapon switch by adding a delay between inputs (weapon switch bound to U key)
- *WheelUp::
- send {u down}
- sleep 10
- send {u up}
- sleep 115
- return
- ;;;;;;;;;;;
- ;Functions;
- ;;;;;;;;;;;
- useAbility(){ ;Use the ability (ability bound to O key)
- sleep 20
- send {o down}
- sleep 10
- send {o up}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement