The code is on line 75 (if you haven't added anything)
Numpad6::
SendToAlts(" ")
ActivateMain()
Return
Change the space in between the quotes to whatever your key is in game. As for the main not shooting, I can't see anywhere in the script where that's in it so you still need to initiate the firing with your main window character. I'm looking to add that to the code above so when I tell my alts to fire, my main does as well but it's late in the night. I've never coded with AHK so tomorrow when I have time to research/test I'll do that and share the code for you if you like.
Palimow: If you want the script to activate firing for your character, add this SendToWindow(EnBMain," ") above the SendToAlts(" ") line. That'll activate firing for your main then do the alts
One issue I'm running into is location based clicks: accept WH, dock/land and station register. It iterates through the screens but doesn't click action. I haven't had a chance to debug yet, but if anyone has any solutions to try first, let me know.