Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ;#Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- ;SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- #MaxThreadsPerHotkey 2
- #SingleInstance, force
- ;Delete this line if you want the script to run even when PUBG isnt active (if you want it to work for another game)
- #IfWinActive, PLAYERUNKNOWN'S BATTLEGROUNDS
- global KeyDownQ = false
- global KeyDownE = false
- $q::
- KeyDownQ := !KeyDownQ
- If KeyDownQ {
- SendInput {q down}
- If KeyDownE { ;
- KeyDownE := !KeyDownE
- SendInput {e up}
- }
- }
- Else
- SendInput {q up}
- Return
- $e::
- OutputDebug entered e
- KeyDownE := !KeyDownE
- If KeyDownE {
- SendInput {e down}
- If KeyDownQ {
- KeyDownQ := !KeyDownQ
- SendInput {q up}
- }
- }
- Else
- SendInput {e up}
- Return
- $l::
- Loop
- {
- GetKeyState, ShiftKey, Shift
- GetKeyState, DoubleU, W
- If (ShiftKey = "D" and DoubleU = "D")
- {
- If KeyDownQ {
- KeyDownQ := !KeyDownQ
- SendInput {q up}
- }
- else If KeyDownE {
- KeyDownE := !KeyDownE
- SendInput {e up}
- }
- }
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement