I want to have repeat commands nested, pls. see my sript:
I have 2 aliases, Onrepeat & rerepeat
onrepeat: #(\d+)[ ](.*)---script Onrepeat
rerepeat: #(\d+){(.*)}$---script rerepeat
2 functions:
function OnRepeat (strAliasName, strOutput, wildcardsVB)
{
wildcards = VBArray(wildcardsVB).toArray();
for (i = 1; i <= wildcards [0]; i++)
// world.note(wildcards[1]);
world.execute (wildcards [1]);
} // end of OnRepeat
function rerepeat(rname, rstr, wildcardsVB)
{
_var_ = VBArray(wildcardsVB).toArray();
var tt1,tt2,tt3;
tt1=_var_[0];
tt2=_var_[1];
for(i=0;i<tt1;i++){
world.execute(tt2);
}
}
when I key in #3{#3 xixi}, it only execute 3 times.
I have 2 aliases, Onrepeat & rerepeat
onrepeat: #(\d+)[ ](.*)---script Onrepeat
rerepeat: #(\d+){(.*)}$---script rerepeat
2 functions:
function OnRepeat (strAliasName, strOutput, wildcardsVB)
{
wildcards = VBArray(wildcardsVB).toArray();
for (i = 1; i <= wildcards [0]; i++)
// world.note(wildcards[1]);
world.execute (wildcards [1]);
} // end of OnRepeat
function rerepeat(rname, rstr, wildcardsVB)
{
_var_ = VBArray(wildcardsVB).toArray();
var tt1,tt2,tt3;
tt1=_var_[0];
tt2=_var_[1];
for(i=0;i<tt1;i++){
world.execute(tt2);
}
}
when I key in #3{#3 xixi}, it only execute 3 times.