Firstly the user will be asked to select the window. When it's done the selected window will be automatically closed every time it will appear. The script will run until it is manually stopped from the System Tray or the process is killed.
The user will be asked to select two windows, one after another. After that every time the first window will be brought to front, the second one will also do. It will happen even if the second window got minimized before.
It is an utility script used in "Close the window on sight" and "Bind two windows" scripts.
This script is meant to be used from a console. It takes any number of string parameters. The first one represents the combination to be send to windows (as in the table here: https://www.autohotkey.com/docs/commands/Send.htm#Parameters), and the rest windows names fragments or "activate". "activate" is used to determine which windows should be activated before sending the combination. Any window which name contains string passed after "activate" will be activated for a brief moment of sending the combination. It seems required for some applications - for example the ones based on Chromium.
/c/Program\ Files/AutoHotkey/AutoHotkey.exe send-key-combination.ahk ^+r Firefox activate Iron