Try this: #IfWinActive, ahk_exe cossacks.exe QKey := "vk51" PKey := "vk50" Global Modifiers SetTimer, Modifiers, 10 Modifiers: { Modifiers :=...
Use AutoHotKey to bind it to whatever you want. I have select all idle console peasants on Ctrl+E. It emulates Ctrl+P in Cossacks 3.
Separate names with a comma.