Not sure what yer asking

try

#IfWinActive, World of Warcraft
~F1::
ControlSend,,F1, ahk_id %wowid1%
ControlSend,,F1, ahk_id %wowid2%
return