mIRC Home    About    Download    Register    News    Help

Print Thread
#92146 29/07/04 05:39 PM
Joined: Apr 2004
Posts: 73
Z
Babel fish
OP Offline
Babel fish
Z
Joined: Apr 2004
Posts: 73
Hey everyone,

I'd like to see a way for $titlebar to return the entire titlebar, which you could do like $titlebar.all or something.

-Zelda4ever
aka "The Big 'Z'"


/tokenize 32 $gettok($1-,1-,32)
#92147 29/07/04 10:44 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
$titlebar returns the contents added via /titlebar, if you want to return the entire title, including the statistics added by mIRC a simple very basic script can be used since mIRC just gathers the information from elsewhere.. i.e.

alias titlebar.all {
if ($active == Status Window) {
if (!$server) {
%tc = [Status: not connected ( $+ $me $+ $iif($eval($+(%,titlebar.,$network),2),$chr(44) $eval($+(%,titlebar.,$network),2)) $+ )]
}
else {
%tc = [Status: $me $iif($usermode,[[ $+ $usermode $+ ]]) on $network ( $+ $server $+ : $+ $port $+ ) $iif($online,$chr(40) $+ $gettok($duration($online,3),1-2,58) $+ $chr(41)) $+ ]
}
}
elseif ($active ischan) {
%tc = [[ $+ # [[ $+ $nick(#,0) $+ ]] [[ $+ $chan(#).mode $+ ]: $chan(#).topic
}
elseif ($query($active)) {
%tc = [[ $+ $active $+ $iif($address($active,5), $chr(32) $+ $chr(40) $+ $gettok($ifmatch,2-,33) $+ $chr(41)) $+ ]]
}
return $iif($titlebar,$ifmatch -) %tc
}

On *:DISCONNECT:{ set $+(%,titlebar.,$network) $server }
On *:START:{ unset $+(%,titlebar.,*) }


Eamonn.

#92148 30/07/04 04:43 AM
Joined: Apr 2004
Posts: 73
Z
Babel fish
OP Offline
Babel fish
Z
Joined: Apr 2004
Posts: 73
Hey,

Thx for the work-around!

-Zelda4ever
aka "The Big 'Z'"


/tokenize 32 $gettok($1-,1-,32)

Link Copied to Clipboard