IPC.ahk

Summary
IPC.ahk
SendSend the message to another process (receiver) using WM_COPYDATA.
OnMessageSet the message handler

Send

IPC_Send(hwnd,  
msg = "",
port = 100)

Send the message to another process (receiver) using WM_COPYDATA.

Parameters

hwndHandle of the receiver
msgOptional message to be sent.  Default is empty message.
portOptional port, by default 100

Returns

FAIL on error, 0 on success

OnMessage

IPC_OnMessage(pLabel)

Set the message handler

Parameters

labelSubroutine that will be called when message is received.  IPC_Message & IPC_Port global vars will contain message info.

Returns

false invalid label, true on success

IPC_Send(hwnd,  
msg = "",
port = 100)
Send the message to another process (receiver) using WM_COPYDATA.
IPC_OnMessage(pLabel)
Set the message handler
Close