I've editted the previous script and would also like you to try this one:
SetTitleMatchMode, 1
SendMode InputThenPlay
WinGet, warid, List, Warhammer
~1::
#IfWinActive, Warhammer
{
BlockInput, On
WinActivate, ahk_id %warid2%
Send 1
WinActivate, ahk_id %warid1%
BlockInput, Off
}
Return
~2::
#IfWinActive, Warhammer
{
BlockInput, On
WinActivate, ahk_id %warid2%
Send 2
WinActivate, ahk_id %warid1%
BlockInput, Off
}
Return
~3::
#IfWinActive, Warhammer
{
BlockInput, On
WinActivate, ahk_id %warid2%
Send 3
WinActivate, ahk_id %warid1%
BlockInput, Off
}
Return
~4::
#IfWinActive, Warhammer
{
BlockInput, On
WinActivate, ahk_id %warid2%
Send 4
WinActivate, ahk_id %warid1%
BlockInput, Off
}
Return
~5::
#IfWinActive, Warhammer
{
BlockInput, On
WinActivate, ahk_id %warid2%
Send 5
WinActivate, ahk_id %warid1%
BlockInput, Off
}
Return
~6::
#IfWinActive, Warhammer
{
BlockInput, On
WinActivate, ahk_id %warid2%
Send 6
WinActivate, ahk_id %warid1%
BlockInput, Off
}
Return
And, just in case we missed the obvious method, try this script as well, just for the 1 key:
SetTitleMatchMode, 1
SendMode InputThenPlay
WinGet, warid, List, Warhammer
~1::ControlSend,,1,ahk_id %warid2%
Connect With Us