Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;*******************************************************************************
- ;* Project: Path of Exile - Custom Macroses
- ;* Module: P_macros_panic.ahk
- ;* Project version: [1.0.0] 01.12.2018
- ;* Module version: [20] 12.10.2019
- ;* Author: Prodavec
- ;* Comments: Lightweighted version
- ;*******************************************************************************
- #SingleInstance, force
- g_KeyState_Space := false
- g_KeyState_AppsKey := false
- *AppsKey::
- {
- if (!g_KeyState_AppsKey)
- {
- g_KeyState_AppsKey := true
- Critical, On
- RunWait, g:\Disconnect\cports.exe /close * * * * PathOfExile_x64.exe
- }
- return
- }
- *AppsKey Up::
- {
- g_KeyState_AppsKey := false
- return
- }
- ;Nested #if directive is not possible, check "#If [AHK_L]" documentation
- #If (WinActive("ahk_class POEWindowClass") and GetKeyState("CapsLock", "T"))
- *Space::
- {
- if (!g_KeyState_Space)
- {
- g_KeyState_Space := true
- Critical, On
- RunWait, g:\Disconnect\cports.exe /close * * * * PathOfExile_x64.exe
- }
- return
- }
- *Space Up::
- {
- g_KeyState_Space := false
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement