mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
#160190 24/09/06 02:17 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
ah forgot to write...
dont know how to change it in alias...

those ,commas, confuse me...


IceCapped
#160191 24/09/06 05:09 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Use the alias that I gave above, and then go through your code, find every place where you have a window name, and replace it with the $winname( ) identifier. Example:

If you have:
Code:
.aline @IRCD $+ $chr(160) $+ Info $+ $chr(160) $+ ( $+ $network $+ ) $theme(logo) $network Info:


Change it to this:
Code:
.aline $winname(@IRCD Info $chr(40) $+ $network $+ $chr(41)) $theme(logo) $network Info:


Or better yet, get rid of the ()'s around the network name:
Code:
.aline $winname(@IRCD Info- $network) $theme(logo) $network Info:


You can see that the window name is much easier to read when you are looking at the code, plus without the ()'s you don't need any $+ in the window name at all.

These are the names I would use throughout your code:
$winname(@IRCD Info- $network)
$winname(@Server Info- $network)
$winname(@Network Map- $network)
$winname(@MOTD- $network)

As for the closing window alias, simply use this (assuming you use the window names above):
Code:
alias clear_server_infos {
window -c $winname(@IRCD Info- $network)
window -c $winname(@Server Info- $network)
window -c $winname(@Network Map- $network)
window -c $winname(@MOTD- $network)
}



-genius_at_work

#160192 24/09/06 06:33 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
no way to make alias close windows with brackets
type windows @IRCD Info ($network)

?


IceCapped
#160193 24/09/06 10:50 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
If you are intent on using brackets, you could make an identifier that appends the network to the end automatically.

Code:
alias winname return $replace($1- $chr(40) $+ $network $+ $chr(41),$chr(32),$chr(160))


And then throughout your code, replace the window names with something like this:

window $winname(@IRCd Info) blah blah

** Don't include the ($network) part, as it is automatically added by the $winname identifier

-genius_at_work

#160194 25/09/06 12:33 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
okay ^^ i changed windows to this:

$winname(@Server Info)
$winname(@IRCd Info)
$winname(@Map)
$winname(@MOTD)

and network with bracket nice adds to them (i like this very much, thanks)

so can you please make that alias to close them properly (if possible)

Last edited by raZOR; 25/09/06 12:34 AM.

IceCapped
#160195 25/09/06 03:25 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Try this one:
Code:
alias clear_server_infos {
window -c $winname(@IRCD Info)
window -c $winname(@Server Info)
window -c $winname(@Map)
window -c $winname(@MOTD)
}


-genius_at_work

#160196 25/09/06 02:01 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
sweet =)
thanks very much to both of you !


IceCapped
Page 2 of 2 1 2

Link Copied to Clipboard