This script only targets the nearest mob and then fires your guns on your main window and up to 5 alt windows, but it works good.
To have this work correctly, your windows must me named EnBMain, EnBAlt1, EnBAlt2, ext. In the game, the key Control for "Target nearest enemy MOB" I set for 'e' and "Fire all weapons" to 'f'. To make the script run, you just hit <alt><q> on your keyboard.
----------------------------------------------------------------
!q::
WinActivate Earth & Beyond - EnBMain
sleep 50
SendInput e
sleep 50
sendInput f
sleep 50
IfWinExist Earth & Beyond - EnBAlt1
{
WinActivate Earth & Beyond - EnBAlt1
sleep 50
SendInput e
sleep 50
sendInput f
sleep 50
}
IfWinExist Earth & Beyond - EnBAlt2
{
WinActivate Earth & Beyond - EnBAlt2
sleep 50
SendInput e
sleep 50
sendInput f
sleep 50
}
IfWinExist Earth & Beyond - EnBAlt3
{
WinActivate Earth & Beyond - EnBAlt3
sleep 50
SendInput e
sleep 50
sendInput f
sleep 50
}
IfWinExist Earth & Beyond - EnBAlt4
{
WinActivate Earth & Beyond - EnBAlt4
sleep 50
SendInput e
sleep 50
sendInput f
sleep 50
}
IfWinExist Earth & Beyond - EnBAlt5
{
WinActivate Earth & Beyond - EnBAlt5
sleep 50
SendInput e
sleep 50
sendInput f
sleep 50
}
WinActivate Earth & Beyond - EnBMain
Return