mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2005
Posts: 37
S
Scratch Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 37
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...

Joined: Sep 2004
Posts: 237
Fjord artisan
Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
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?

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
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.

Joined: Sep 2004
Posts: 237
Fjord artisan
Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
So it is possible to minimize a normal dialog? Just asking because mine are always on top.....

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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.)

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
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

Joined: Sep 2004
Posts: 237
Fjord artisan
Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
ahh .... ok i get it now ..... thanx for the info.


Link Copied to Clipboard