mIRC Homepage
Posted By: Scratch Determine if dialog has been minimized - 25/02/05 12:34 AM
Is there an event that triggers when a custom dialog has been minimized? I need my script to execute some commands when a user minimizes a custom dialog...
Posted By: JAFO Re: Determine if dialog has been minimized - 25/02/05 12:55 AM
I think you can only minimize a dialog if its set to open on the desktop.... then " -ie = minimize/restore the dialog if created on the desktop" but i never set a dialog to open to the desktop before. So i guess my question to you is , is it set to open to the desktop?
Posted By: Iori Re: Determine if dialog has been minimized - 25/02/05 02:21 AM
AFAIK there is no event which will tell you that. The only way to know is to check $dialog().x (or $dialog().y) which returns "-32000" for minimized dialogs.
Posted By: JAFO Re: Determine if dialog has been minimized - 25/02/05 05:40 PM
So it is possible to minimize a normal dialog? Just asking because mine are always on top.....
Yes you can minimize a dialog even if it's ontop.

/dialog -n unsets ontop setting FYI.

And also, this might be of some use to you.

/dialog -ie (minimize/restore the dialog if created on the desktop.)
Posted By: Iori Re: Determine if dialog has been minimized - 25/02/05 11:41 PM
No you can't use the -i (minimize) on non-desktop dialogs. I was referring to minimized desktop dialogs.
On a side note, you can hide non-desktop dialogs, //dialog -s dname -32000 -32000 $dialog(dname).cw $dialog(dname).ch
and unhide them /dialog -r dname
Posted By: JAFO Re: Determine if dialog has been minimized - 25/02/05 11:47 PM
ahh .... ok i get it now ..... thanx for the info.
© mIRC Discussion Forums