Created
May 26, 2018 13:55
-
-
Save reks-scripts/a0a00545e17528d6ca068cc4c2e98fba to your computer and use it in GitHub Desktop.
GW2 Full Powah siege Mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; TLDR: autohotkey script that presses and holds "2" for you while you're using siege | |
; | |
; Requires AutoHotKey: https://autohotkey.com/ | |
; Copy/paste gist content into new text file and save as siege-mode.ahk then double click to run | |
; CTRL+ALT+2 - enable/disable full power siege | |
; CTRL+2 - toggle full power siege (when enabled) | |
; CTRL+F1 - stop script | |
; Example: enable full power siege hotkey by pressing CTRL+ALT+2... get on your siege and | |
; and unleash full power siege mode by pressing CTRL+2. When the wall is down, simply press | |
; CTRL+2 again to stop sieging. | |
; | |
#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 | |
#If WinActive("Guild Wars 2") | |
Hotkey, $^2, FullPower | |
Hotkey, $^2, Off | |
FullPower: | |
powah := !powah | |
if (!powah) | |
send, {2 down} | |
else | |
send, {2 up} | |
return | |
^!2:: | |
hkFlag := !hkFlag ;toggles the flag and turns on/off the hotkey | |
if (!hkFlag) | |
Hotkey, $^2, Off | |
else | |
Hotkey, $^2, On | |
return | |
^F1::ExitApp ; Emergency exit | |
#If | |
#MaxThreadsPerHotkey 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment