I am having an issue with a timing on an alias with a variable.
Explaination
I have an alias which says.
<aliases>
<alias
match="pt"
enabled="y"
send_to="12"
sequence="100"
>
<send>Send("open door")
DoAfter (1, "turn on light")
DoAfter (2, "kill %1")</send>
</alias>
</aliases>
I thought that %1 told it to accept the variable from the commandline as in.
pt monster
The alias seems to fail when I do pt wizard
If I do pt on its own the alias executes but because it has no target, it fails.
How can I correct this?
If I have more commands in the alias list as in more DoAfter statements will the %variablenumber I use change?
Explaination
I have an alias which says.
<aliases>
<alias
match="pt"
enabled="y"
send_to="12"
sequence="100"
>
<send>Send("open door")
DoAfter (1, "turn on light")
DoAfter (2, "kill %1")</send>
</alias>
</aliases>
I thought that %1 told it to accept the variable from the commandline as in.
pt monster
The alias seems to fail when I do pt wizard
If I do pt on its own the alias executes but because it has no target, it fails.
How can I correct this?
If I have more commands in the alias list as in more DoAfter statements will the %variablenumber I use change?