I have an alias command where i need it to check if a dialog is open or not, and if it is, it will add text to some edit boxes etc. What is the best way to check if a dialog box is open or not? Only way I can think of is if you use the on dialog initialise event, and store it as variable, though I was kind of expecting there to be some sort of $dialogActive or something, would be easier.