I have the following alias:
alias netret {
if ($1 != $null) return $1
elseif ($2 != $null) return $2
else return Unknown-Network
}
This alias gets the network name as $1 and the server as $2
I have a configuration window which I can set a delay so after than period it will put me in Away mode.
I'm connected to several networks, so what I did it saving the delay inside a INI, and when I start the timer, it reads the delay and set a timer to each network. I'm trying to use scon
The problem is that I use the following command:
scon -at1 .timerAway. $+ retnet($network,$server) 1 $readini(" $+ $scriptdir\config.ini",config,away) imaway
The problem is that the away timer is only set on the network that I started the command on (Using a dialog).
So if I'm connected to DalNet, then I will only get timerAway.DalNet
I know that I can use "!" to make it evalute the indentifiers on the right connection ID, but it doesn't work.
I tried using $!retnet($network,$server), and even $retnet($!network,$!server), but if I put the "!", then the timer name is like away.$network, or like away.$retnet($network,$server).
I use the retnet, cause some networks doesn't sends it Network name, so I get NULL (so ther is a chance that few networks will have the same timers).
How do I solve this??
Thanks