mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2015
Posts: 243
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
Hey! I was wondering if i can halt a custom window from closing. I have tried the following so far but none of them worked fully..
Code:
on *:close:@: {
  if ($target == @Bot.Logs) {
    halt | echo -at 3Closure Of This Window Is Prevented. 
  }
}

This echoed the text but never halted the close. And...
Code:
alias window {
  if ($1 == -c) {
    if ($2 == @Bot.Logs) {
      echo -at $2 Can't Be Closed | halt
    }
  }
  else { !window $1- }
}

This didn't do anything.
So i ran out of ideas.. anyone knows the way, if there is one???
Thanks!

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
The ^ prefix must be used when halting default behavior, although I doubt stopping a window from closing is possible.

Joined: Feb 2015
Posts: 243
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
yeah you're probably right. Cause i tried that too and didn't work. Anyways thnx for replying smile


Link Copied to Clipboard