mIRC Home    About    Download    Register    News    Help

Print Thread
#25511 23/05/03 12:40 AM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
Why is it that when i use: this on dialog event... that it always returns with an error saying * $dialog: 'pp' name in use (line 27, hindpass.mrc)
Code:
on 1:dialog:PP:close:close: {
  .echo -q $dialog(pp,pp) ;line 27
}
----------------------------------
with the alias to start the dialog as 
alias g2pp {  
  if (!$dialog(PP)) {
    .echo -q $dialog(pp,pp)
  }
}

I realize that if I rename the pp to pp2 or something in the $dialog(pp,pp), it would go with a same dialog, in a different placing, although, Id rather it just pop up the same one, as otherwise it would be an endless cycle of renaming... Any suggestions?

#25512 23/05/03 12:42 AM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
why not just /dialog -m pp pp instead of echoing it?

#25513 23/05/03 12:46 AM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
it makes it so you cannot click outside the dialog box

#25514 23/05/03 12:51 AM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
/dialog -mo pp pp

#25515 23/05/03 12:53 AM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
nope, try it yourself, doesnt work

#25516 23/05/03 12:56 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Try this:
Code:
on 1:dialog:PP:close:0:{
  .timer 1 0 .echo -q $dialog(pp,pp)
}

#25517 23/05/03 12:56 AM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
haha yep tried that too, didnt work (gives me the: * $dialog: 'pp' name in use (line 27, hindpass.mrc))

#25518 23/05/03 12:59 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Whoops, missed a bit:
Code:
on 1:dialog:PP:close:0:{
  .timer 1 0 .echo -q $[color:red]![/color]dialog(pp,pp)
}

#25519 23/05/03 01:08 AM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
Thank you so much. <3

#25520 23/05/03 01:38 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
he also had "close:close:" on the event, not "close:*:" >:\


-KingTomato
#25521 23/05/03 02:42 AM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
Heh kt shouldnt make a difference, and just checked, it doesnt; although is their a way to center both dialogs?

#25522 24/05/03 03:03 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
.timer 1 0 .echo -q $!dialog(pp,pp,-2)

%result = $dialog(name,table[,parent])

Where name is the name by which you'll refer to the dialog, table is the dialog table name used to create dialog (see below), and parent is the parent window of the dialog, this can be a window name, or -1 = Desktop window, -2 = Main mIRC window, -3 = Currently active window, -4 = Currently active dialog, if no dialog is open, defaults to -3 behaviour.




Link Copied to Clipboard