Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- #MaxHotkeysPerInterval 99000000
- #HotkeyInterval 99000000
- #InstallKeybdHook
- #InstallMouseHook
- #KeyHistory 5
- SetTitleMatchMode, 1
- ListLines Off
- Process, Priority, , A
- SetBatchLines, -1
- SetKeyDelay, -1, -1
- SetMouseDelay, -1
- SetDefaultMouseSpeed, 0
- SetWinDelay, -1
- SetControlDelay, -1
- SendMode Input
- #IfWinActive, Xero Client
- isChatting := 0
- isWhisper := 0
- exitWhisper := 0
- rButtonPressed := 0
- isTimerRunning := 0
- wInputs := 0
- Hotkey, *Capslock, SprintKey
- Enable()
- {
- Hotkey, *Capslock, SprintKey, On
- }
- Disable()
- {
- Hotkey, *Capslock, SprintKey, Off
- }
- {
- wPressed:
- isTimerRunning = 0
- SetTimer,wPressed, Off
- wInputs = 0
- return
- }
- $*W::
- if wInputs >= 4
- {
- wInputs = 0
- isTimerRunning = 0
- SetTimer,wPressed, 2
- }
- else
- {
- }
- SendInput, {w down}
- wInputs +=1
- if isTimerRunning = 1
- {
- }
- else
- {
- isTimerRunning = 1
- SetTimer,wPressed,500
- }
- DllCall("Sleep",UInt,5)
- ;KeyWait, W
- ;SendInput, {w up}
- return
- *~W up::
- SendInput, {w up}
- return
- SprintKey:
- if wInputs >= 4
- {
- wInputs = 0
- isTimerRunning = 0
- SetTimer,wPressed, 2
- }
- else
- {
- }
- if isTimerRunning = 1
- {
- if getkeystate("w", "p")
- {
- SendInput, {w up}
- DllCall("Sleep",UInt,10)
- }
- else
- {
- }
- SendInput, {w down}
- wInputs +=1
- DllCall("Sleep",UInt,5)
- if getkeystate("w", "p")
- {
- }
- else
- {
- SendInput, {w up}
- }
- }
- else
- {
- if getkeystate("w", "p")
- {
- SendInput, {w up}
- DllCall("Sleep",UInt,10)
- }
- else
- {
- }
- SendInput, {w down}
- wInputs +=1
- isTimerRunning = 1
- SetTimer,wPressed,490
- DllCall("Sleep",UInt,5)
- SendInput, {w up}
- DllCall("Sleep",UInt,5)
- SendInput, {w down}
- wInputs +=1
- DllCall("Sleep",UInt,5)
- if getkeystate("w", "p")
- {
- }
- else
- {
- SendInput, {w up}
- }
- }
- KeyWait, Capslock
- return
- *~Rbutton::
- Enable()
- SetCapsLockState, Off
- isChatting = 0
- isWhisper = 0
- return
- *~Lbutton::
- Enable()
- SetCapsLockState, Off
- isChatting = 0
- isWhisper = 0
- return
- *~F1::
- isChatting = 1
- isWhisper = 1
- Disable()
- return
- *~F2::
- isChatting = 1
- isWhisper = 0
- Disable()
- return
- *~F3::
- isChatting = 1
- isWhisper = 0
- Disable()
- return
- *~F4::
- isChatting = 1
- isWhisper = 0
- Disable()
- return
- $*Enter::
- if (A_PriorKey = "F1")
- {
- Enable()
- isWhisper = 0
- isChatting = 0
- }
- else
- {
- if isChatting = 1
- {
- if isWhisper = 1
- {
- if (A_PriorKey = "Enter")
- {
- isWhisper = 0
- isChatting = 0
- Enable()
- }
- else
- {
- isChatting = 1
- }
- }
- else
- {
- isWhisper = 0
- isChatting = 0
- Enable()
- }
- }
- else
- {
- isChatting = 1
- Disable()
- }
- }
- SendInput, {Enter down}
- DllCall("Sleep",UInt,5)
- SendInput, {Enter up}
- DllCall("Sleep",UInt,1)
- return
- *~Esc::
- Enable()
- isChatting = 0
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement