mIRC Home    About    Download    Register    News    Help

Print Thread
#230951 26/03/11 02:38 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

I wanna suggest to add the minimize on the $devent return
when someone minimize the dialog when using the -d (desktop) parameter.

e.g:

Code:
on *:dialog:test:init:*: {
if ($devent == minimize) { echo -a The $dname dialog has been minimized }
}

- Thanks!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Minimized may be a good dialog event, but you don't see dialog events inside other dialog events. Change init to * and that would be valid, or remove the IF and change init to minimize.


Invision Support
#Invision on irc.irchighway.net
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Originally Posted By: Riamus2
Minimized may be a good dialog event, but you don't see dialog events inside other dialog events. Change init to * and that would be valid, or remove the IF and change init to minimize.


How exactly? i don't know how , can you please give an example?

Last edited by westor; 26/03/11 03:13 PM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
This can't be done YET. I'm just pointing out that you have the dialog event set already (init), so you wouldn't use a different dialog event inside there.

Code:
on *:dialog:test:*:*: {
if ($devent == minimize) { echo -a The $dname dialog has been minimized }
}


Or...

Code:
on *:dialog:test:minimize:*: {
  echo -a The $dname dialog has been minimized
}



init is a dialog event already. Just like you wouldn't watch for a dclick and then check inside for a sclick.


Invision Support
#Invision on irc.irchighway.net
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Originally Posted By: Riamus2
This can't be done YET. I'm just pointing out that you have the dialog event set already (init), so you wouldn't use a different dialog event inside there.

Code:
on *:dialog:test:*:*: {
if ($devent == minimize) { echo -a The $dname dialog has been minimized }
}


Or...

Code:
on *:dialog:test:minimize:*: {
  echo -a The $dname dialog has been minimized
}



init is a dialog event already. Just like you wouldn't watch for a dclick and then check inside for a sclick.


Well i tryied on my dialog and when minimized then nothing happens!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jul 2006
Posts: 4,180
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
Please make an effort, he did say that event wasn't avalaible (which is why you made a suggestion, a good one) and that your example had a mistake in your example : you hardcoded the name of the event inside the on dialog definition, it doesn't make sense to check $devent inside that block of code, $devent will always be init.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard