Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Persistent
- #SingleInstance Force
- ; Check active window every 5ms
- SetTimer, CheckWindow, 5
- return
- CheckWindow:
- WinGet, pid, PID, A
- if (pid) {
- Process, Exist, pathofexilesteam.exe
- if (pid == ErrorLevel) {
- ; Remap inside the game
- Hotkey, *Space, SpaceAsShift, On
- Hotkey, *Shift, ShiftAsSpace, On
- return
- }
- }
- ; Otherwise, turn remaps off
- Hotkey, *Space, SpaceAsShift, Off
- Hotkey, *Shift, ShiftAsSpace, Off
- return
- SpaceAsShift:
- Send {Shift down}
- KeyWait, Space
- Send {Shift up}
- return
- ShiftAsSpace:
- Send {Space down}
- KeyWait, Shift
- Send {Space up}
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement