mIRC Home    About    Download    Register    News    Help

Print Thread
#48482 10/09/03 03:02 PM
Joined: Jun 2003
Posts: 77
O
ozyvent Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Jun 2003
Posts: 77


I have a dialog which comes up when mIRC starts. I want it to automatically reopen should it be closed either accidentally or intentionally. Is there anyway to run the '/dialog -m' command if this occurs?

Cheers!


.
#48483 10/09/03 03:05 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
on *:dialog:name:close:0:{
dialog -m name name
}


new username: tidy_trax
#48484 10/09/03 03:12 PM
Joined: Jun 2003
Posts: 77
O
ozyvent Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Jun 2003
Posts: 77
Champ! Tnx cool


.
#48485 10/09/03 03:12 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
np smile


new username: tidy_trax
#48486 10/09/03 03:16 PM
Joined: Jun 2003
Posts: 77
O
ozyvent Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Jun 2003
Posts: 77
Actually not quite. Because when you click the proceed button, it closes that dialog and opens another one. But then it reopens the first dialog as well.

Is there any way around this?

Cheers!


.
#48487 10/09/03 03:18 PM
Joined: Jan 2003
Posts: 249
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
us a variable to store if the proceed button was clicked and the dialog closed by that way instead of shutting down the dialog by the X button or another way

#48488 10/09/03 03:23 PM
Joined: Jun 2003
Posts: 77
O
ozyvent Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Jun 2003
Posts: 77
Ah - both champs. Tnx smile


.
#48489 10/09/03 03:51 PM
Joined: Jun 2003
Posts: 77
O
ozyvent Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Jun 2003
Posts: 77
Ok one last question... is there any way to make a window maximise either on START or on CONNECT or any event for that matter?

Cheers!


.
#48490 10/09/03 05:04 PM
Joined: Jun 2003
Posts: 77
O
ozyvent Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Jun 2003
Posts: 77
Code:
raw *:*:{ 
  if ($numeric == 307) { haltdef | did -o whois 3 5 $snick($active,1) $3- }
  if ($numeric == 311) { haltdef | did -o whois 3 1 Host: $3 $+ @ $+ $4 }
  if ($numeric == 312) { haltdef | did -o whois 3 3 Server: $3 | did -o whois 3 4 Location: $4 $5 }
  if ($numeric == 313) { haltdef | did -o whois 3 6 $snick($active,1) $3- }
  if ($numeric == 317) { haltdef }
  if ($numeric == 318) { haltdef }
  if ($numeric == 319) { haltdef | did -o whois 3 2 Channels: $3- }
  elseif ($numeric != 319) { did -o whois 3 2 $snick($active,1) most likely has the channels s/he is on hidden. }
  else { halt }
}  

And perhps someone might be able to explain why the channels one always appears as the elseif one.. confused

Cheers!


.
#48491 10/09/03 05:14 PM
Joined: Jun 2003
Posts: 77
O
ozyvent Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Jun 2003
Posts: 77
And if I put it like:
Code:
   if ($numeric == 319) { 
    if ($3 != $null) { haltdef | did -o whois 3 2 Channels: $3- }
    else { did -o whois 3 2 $snick($active,1) most likely has the channels s/he is on hidden. }
  } 

It just stops after it writes the first line. confused confused


.

Link Copied to Clipboard