To Use:
Whichever script will be sending messages to another script must have the SendMessageToScript()
function
Whichever script will be receiving messages from another script must have the ReceiveMessage()
function
Scripts can have both functions.
The-CoDingman/Script-Communication
Example functions of how to have two AHK scripts talk to each other
AutoHotkeyMIT