aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-12-15 01:48:30 +0100
committerJohn Ankarström <john@ankarstrom.se>2021-12-15 01:48:45 +0100
commit0072e9a50a257ead9454fce84b12f660314a3331 (patch)
tree7c603c2c82765fbf8c1f311c27ef3cde972ec2c7
parent730e0a23859f155e74360587c7708e64d3e9ad54 (diff)
downloadahk-0072e9a50a257ead9454fce84b12f660314a3331.tar.gz
programs: Add Crusader Kings 2 bindings
-rw-r--r--tt.programs.ahk4
1 files changed, 2 insertions, 2 deletions
diff --git a/tt.programs.ahk b/tt.programs.ahk
index 0459825..2e5337f 100644
--- a/tt.programs.ahk
+++ b/tt.programs.ahk
@@ -172,7 +172,7 @@ F5::
return
*/
-#If WinActive("ahk_exe v2game.exe")
+#If WinActive("ahk_exe v2game.exe") or WinActive("ahk_exe CK2game.exe")
MButton::RButton
RButton::MButton
@@ -195,7 +195,7 @@ VictoriaWindowMessage(wParam, lParam)
if (wParam = 4 or wParam = 32772) ; HSHELL_WINDOW_ACTIVATED | HSHELL_RUDEAPPACTIVATED
{
WinGet, exe, ProcessName, A
- if (exe = "v2game.exe")
+ if (exe = "v2game.exe" or exe = "CK2game.exe")
{
Sleep, 1500
ClipCursor(True, 6, 6, A_ScreenWidth-5, A_ScreenHeight-5)