dejaqkl Newbie
Joined: 07 May 2003 Posts: 5 Location: USA
|
Posted: Tue Aug 19, 2003 8:23 pm
need to make variables to do certain commands |
not sure how appropriate it is for me to post here I dont use zmud I have a slow slow little computer and zmud laggs it so I use alclient which pales in comparison to zmud, it doesnt have #capture, #math, #write, #loopor #select commands, Im stuck using #variable, #if, #elseif, #while etc for my needs, anyways Im trying to find a way to write a variable that would emulate #loop and #capture also im trying to rewrite the following wintin script into alclient format
#alias {port} {selectport %1; portcurrent}
#alias {portcurrent} {channel 'travel' $currentport}
#alias {portdesc} {#loop {$portcodedesc} {#showme %0}}
#alias {nameport} {#push {portcodedesc} {%%0}}
#alias {resetcodes} {#var {portnum} {1};#var {portcodelist} {0};#var {portcodedesc} {-----------};#showme Port codes all reset;#showme}
#alias {selectport} {#var {currentportnum} {%%1};#select {portcodelist, next, $currentportnum} {#var currentport %0};showcurrentport}
#alias {writefile} {resetcodes;#write mira}
#action {%0 - %1 - [%2] - somewhere} {#push portcodelist {%%1}; #push portcodelist {%%2}; #math {portnum} {$portnum + 1}} {5}
#substitute {%0 - [%1] - somewhere} {%0 - $portnum - [ %1 %r}
#variable {currentport} {UVplcSAwIDU2YWU4ZDUzYmQgMTg=}
#variable {currentportnum} {108}
#variable {portcodedesc} {-----------}
#variable {portcodelist} {0}
#variable {portnum} {1}
and this zmud script into alclient also
#ALIAS tg {#fo @GroupMembers {diag %i}}
#ALIAS tg {#fo @GroupMembers {tell %i %-1}}
#TRIGGER {Your group consists of:} {#t+ Group}
#CLASS {Group} {disable}
#TRIGGER {^{o|*} * - (*): * > } {#t- Group}
#TRIGGER {^(%w) ~(Head of group~)} {#unvar GroupMembers;#additem GroupMembers %1}
#TRIGGER {^(%w)$} {#additem GroupMembers %1}
#CLASS 0
any help would be so much appreciated :) |
|