Not exactly, Mr. Sat.

I hadn't divulged my use case but I'll take you to have asked in your message.

I'm making use of a number of features of the Python language which I'm not sure exist in other languages, in particular the 'mmap' module, line 100, and the 'ctypes.windll' object on lines 107 and 115: http://home.comcast.net/~castironpi-misc/irc-0041%20mdi%20arrange%20mirc%20py.py

The script queries the specified window handle (line 92) of mIRC for currently open channel and query windows on the current connection and their state, and arranges them in a grid with the number of rows specified via the '/window' command, also filling in empty squares. Screenshot: http://home.comcast.net/~castironpi-misc/irc-0042%20mirc%20layout.png

I don't know other languages enough to know if the same functionality can be accomplished in them.

The next step would be to create a basic message loop to receive incoming SendMessage events from mIRC, in order to maintain state information in the program and not respawn a new instance every time. The message loop in Python is very similar to the window creation process in C using 'ctypes', as demonstrated here: http://home.comcast.net/~castironpi-misc/gui%2001a.py

The message loop could take a number of other forms, including sockets, named pipes, DDE, and COM, but SendMessage would seem to be simplest, if only mIRC could use it too.

Thanks for the opportunity to digress into mIRC applications in other languages than MSL. Python has a regular syntax and an extensive standard library. The language designers omitted any GUI package since a GUI library is such an enormous undertaking on its own, and concentrated on the language itself, and IMHO have done an outstanding job so far. MSL and Python each have features that the other doesn't; and IPC can offer the best of both.