mIRC Home    About    Download    Register    News    Help

Print Thread
Determine if dialog has been minimized #112536 25/02/05 12:34 AM
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...

Re: Determine if dialog has been minimized #112537 25/02/05 12:55 AM
Joined: Sep 2004
Posts: 237
JAFO Offline
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?

Re: Determine if dialog has been minimized #112538 25/02/05 02:21 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
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.

Re: Determine if dialog has been minimized #112539 25/02/05 05:40 PM
Joined: Sep 2004
Posts: 237
JAFO Offline
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.....

Re: Determine if dialog has been minimized #112540 25/02/05 05:52 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
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.)

Re: Determine if dialog has been minimized #112541 25/02/05 11:41 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
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

Re: Determine if dialog has been minimized #112542 25/02/05 11:47 PM
Joined: Sep 2004
Posts: 237
JAFO Offline
Fjord artisan
Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
ahh .... ok i get it now ..... thanx for the info.