Last active
May 8, 2020 05:30
-
-
Save geryit/538bffe0016d59b9a6809feec874af6d to your computer and use it in GitHub Desktop.
This file contains 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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.uytu | |
#Persistent | |
#SingleInstance Force ; Allow only one running instance of script. | |
#InstallKeybdHook | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
#IfWinActive ahk_exe atom.exe | |
^r:: ; press control+r to reload | |
Reload | |
return | |
#IfWinActive ahk_class Age3 | |
XButton1::Send +^\^\ | |
XButton2:: | |
Send {Shift down}{XButton2}{Shift up} | |
return | |
CapsLock::+a | |
~Tab::Send, /^w/ | |
+1::Send 1 | |
; ~e::Send +^z+^x+^c!1 | |
$1:: | |
If (A_TimeSincePriorHotkey<400) and (A_TimeSincePriorHotkey<>-1) and (A_PriorKey = "1"){ | |
Send ^+b^1+^h^2+^j^3!1 | |
}else | |
Send 1 | |
Return | |
; | |
$2:: | |
If (A_TimeSincePriorHotkey<400) and (A_TimeSincePriorHotkey<>-1) and (A_PriorKey = "2"){ | |
Send ^+b^1+^h^2+^j^3!2 | |
}else | |
Send {2} | |
Return | |
; ; | |
$3:: | |
If (A_TimeSincePriorHotkey<400) and (A_TimeSincePriorHotkey<>-1) and (A_PriorKey = "3"){ | |
Send ^+b^1+^h^2+^j^3!3 | |
}else | |
Send {3} | |
Return | |
$s:: | |
If (A_PriorKey = "4" or A_PriorKey = "5" or A_PriorKey = "6"){ | |
Send {s 6} | |
}Else If (A_PriorKey = "a"){ | |
Send {s 2} | |
}Else{ | |
Send {s} | |
} | |
Return | |
$d:: | |
If (A_PriorKey = "4" or A_PriorKey = "5" or A_PriorKey = "6"){ | |
Send {d 6} | |
}Else{ | |
Send {d} | |
} | |
Return | |
$x:: | |
If (A_PriorKey = "4" or A_PriorKey = "5" or A_PriorKey = "6"){ | |
Send {x 6} | |
}Else{ | |
Send {x} | |
} | |
Return | |
$c:: | |
If (A_PriorKey = "4" or A_PriorKey = "5" or A_PriorKey = "6"){ | |
Send {c 6} | |
}Else{ | |
Send {c} | |
} | |
Return | |
$q::Send ^q | |
:*:qq::^q | |
:*:aa::a^f | |
; :*:44::u | |
a::Send a^q | |
; CapsLock::Send +^\^2+^[^1+^]^1 |
This file contains 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
// Agra(wonder) hotkeys (sepoy with key "s" etc ) | |
map("u", "game", "uiFindType(\"ypWIAgraFort2\") uiFindType(\"ypWIAgraFort3\") uiFindType(\"ypWIAgraFort4\") uiFindType(\"ypWIAgraFort5\")") | |
map("s", "WonderAccel", "tis(\"ypSepoy\", 5)") | |
map("d", "WonderAccel", "tis(\"ypNatMercGurkha\", 5)") | |
map("x", "WonderAccel", "tis(\"ypRajput\", 5)") | |
// Flair shortcut (ctrl + space) | |
map ("control-space", "game", "editMode(\"flare\")uiSetProtoCursor(\"WaypointFlag\")") | |
//Delete all wall connectors (ctrl+t) | |
//Gate (g) | |
map ("shift-g", "game", "uiTransformSelectedUnit(\"CWallGate\")") | |
// Stealth | |
map ("shift-s", "game", "unitSetTactic(\"Stealth\")") | |
// Delete unit without confirm | |
map ("shift-q", "game", "uiDeleteAllSelectedUnits") | |
// Set military gather points from tc and agra | |
map ("n", "TownCenterAccel", "editMode(\"GatherPointMilitary\") uiSetProtoCursor(\"WaypointFlag\", false)") | |
map ("n", "WonderAccel", "editMode(\"GatherPointMilitary\") uiSetProtoCursor(\"WaypointFlag\", false)") | |
map("control-shift-a", "game", "uiFindAllOfType(\"AbstractRangedInfantry\") ") | |
map("control-shift-b", "game", "uiFindAllOfTypeIdle(\"AbstractRangedInfantry\") ") | |
; | |
map("control-shift-c", "game", "uiFindAllOfType(\"AbstractCavalry\")") | |
map("control-shift-d", "game", "uiFindAllOfTypeIdle(\"AbstractCavalry\")") | |
map("control-shift-e", "game", "uiFindAllOfType(\"AbstractHeavyCavalry\")") | |
map("control-shift-f", "game", "uiFindAllOfTypeIdle(\"AbstractHeavyCavalry\") ") | |
; | |
map("control-shift-g", "game", "uiFindAllOfType(\"AbstractHandCavalry\") ") | |
map("control-shift-h", "game", "uiFindAllOfTypeIdle(\"AbstractHandCavalry\") ") | |
; | |
map("control-shift-8", "game", "uiFindAllOfType(\"AbstractLightCavalry\") ") | |
map("control-shift-j", "game", "uiFindAllOfTypeIdle(\"AbstractLightCavalry\") ") | |
map("control-shift-k", "game", "uiFindAllOfType(\"AbstractGunPowderCavalry\") ") | |
map("control-shift-l", "game", "uiFindAllOfTypeIdle(\"AbstractGunPowderCavalry\") ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment