Thank you very much for helping, Flannel!
When I tried your aliases I got this error message:
Quote: Execution of line 3 column 1
Wrong number of arguments or invalid property assignment: 'getvariable'
Line in error:
So then I changed the aliases to:
Quote: <alias
match="^pause$"
enabled="y"
echo_alias="y"
regexp="y"
send_to="12"
ignore_case="y"
sequence="100"
>
<send>dim speedwalkQueue
dim iCount
dim NewQueue
newQueue = ""
speedwalkQueue = World.GetQueue
If Not IsEmpty (speedwalkQueue) Then
for iCount = lbound (speedwalkQueue) to ubound (speedwalkQueue)
newQueue = newQueue & speedwalkQueue(iCount) & VBCrLf
world.DeleteVariable "QueueTemp"
setvariable "QueueTemp", newQueue
world.discardqueue
next
End If
enablealias "speedwalkresume", 1</send>
</alias>
<alias
name="SpeedwalkResume"
match="^resume$"
enabled="y"
echo_alias="y"
regexp="y"
send_to="12"
ignore_case="y"
sequence="100"
>
<send>dim speedwalkQueue2
speedwalkQueue2 = world.GetVariable ("QueueTemp")
world.addalias "SpeedwalkResume2", "resume2", speedwalkQueue2, 5121, ""
world.Execute "resume2" '</send>
</alias>
My 'resume' alias might not be pretty, but it actually seems to work. |