mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2009
Posts: 101
V
Vogon poet
OP Offline
Vogon poet
V
Joined: Jun 2009
Posts: 101
when you do some command or change settings (non server side)
and you get error from mirc or info from mirc
like:

Quote
* /drek: not connected to server
or
Quote
* Fast Send is off

(mind you Debug does NOT catch these)

how can i "catch" that output ?
so i can relay it to script as value or something

Joined: Jul 2006
Posts: 4,023
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,023
Scripting errors can be caught with the :error goto label

alias testerror {
if ( { }
:error
if ($error) {
echo -sg custom : $v1
}
}
You can and should use /reseterror as soon as possible otherwise mIRC is in an error state and some features will stop working, you cannot just keep executing any code.



* Fast send is off cannot be caught by some kind of event, the only way to workaround this is to override the command name with a custom alias and handle everything from inside the alias by using <!command> to force a built-in command call from the alias. /Timer command are impossible to handle properly in this way.

alias fsend {
if ($show) { echo -sg custom /fsend call }
!fsend $1-
}


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

Link Copied to Clipboard