Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Prevent access to environment
- #NoEnv
- ; Prevent multiple instances
- #SingleInstance Force
- ; Window name matching to 'contains'
- SetTitleMatchMode, 2
- ; Detect Hidden Windows
- DetectHiddenWindows, On
- ; Install the mouse hook to circumvent CryEngine
- #InstallMouseHook
- ; Install the keyboard hook to circumvent CryEngine
- #InstallKeybdHook
- ; The virtual keypress delays
- SetKeyDelay, 0, 0
- ; Whether we are chatting (1 = yes, 0 = no)
- CHATTING = 0
- ; Force all following hotkeys to only activate in MWO
- #IfWinActive ahk_class CryENGINE
- ; All chat toggle
- ~T::
- CHATTING = 1
- return
- ; Team chat toggle
- ~Y::
- CHATTING = 1
- return
- ; Lance chat toggle
- ~G::
- CHATTING = 1
- return
- ; Send chat toggle
- ~Enter::
- CHATTING = 0
- return
- ; Cancel chat toggle
- ~Esc::
- CHATTING = 1
- return
- ; The Quick Fire Backspace hack
- $Backspace::
- ; Prevent quick fire from happening outside of chat
- If (CHATTING = 1) {
- ; Send initial backspace
- Send {Backspace}
- ; Wait and check if key is pressed
- Sleep, 200
- if (GetKeyState("Backspace", "P") = 0) {
- return
- }
- ; Keep sending backspace presses until key is released
- Loop {
- Send {Backspace}
- Sleep, 60
- if (GetKeyState("Backspace", "P") = 0) {
- break
- }
- }
- }
- ; If not chatting send only 1 backspace
- else {
- Send {Backspace}
- }
- return
- +e::
- Send T
- Sleep, 100
- Send Girl Power!
- Send {Enter}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement