This advice is all very helpful, thank you all. I'm trying to implement this as a window instead, but I'm not sure how to preserve the contents of the window after closing mIRC. The list has ~10000 lines and is well over 4kb, and lines are constantly being written to the bottom and deleted from the top by mIRC.