Hello,

The SendMessage Windows API can be used to send alerts from a second application to mIRC, with a memory-mapped file examined for the contents of a message.

mIRC should also be able to generate SendMessage requests, in order to alert other applications to the presence of new content in the memory-mapped file.

Is there some way to write to the mapped file and call SendMessage using the Windows DLL's? A custom DLL to accomplish it would not be difficult, but it does make sharing scripts more difficult.

The implementation might require a dedicated thread, in order to properly acquire the lock on the file for synchronization purposes, but the WaitForMultipleObjects API might be sufficient.

Other alternatives would be setting a Windows Event object to the signaled state, but the mapped file still needs to be written to. Named pipes offer another alternative.