The next mIRC scripting feature I shall talk about is how to create and use dialog boxes from withon your scripts. I found dialog boxes quite complicated to understand at first, but once I had started to play around with them I realised that they're nowhere near as bad as I first thought. I shal attempt to explain how they work here. Here we're defining a check box to go in the dialog.
Similar lines define the other three check boxes, note that each has been given a unique alias.
This line defines a button on the dialog. Modeless dialogs run in the background, as it were, and lets mIRC carry on as normal while the dialog box is opened. Giving a dialog a name like this when it is opened means that you can use the same dialog definition table to describe two simultaneuosly open dialog boxes. We can use this event to populate the controls in the dialog box. If we didn't, all the check boxes would be blank all the time, regardless of whether the setting was on or off.