Making a mixture of Alias and trigger??

Posted by Rivius on Mon 05 Apr 2010 02:51 PM — 2 posts, 14,232 views.

#0
I currently have an alias called cbash *

require "wait"
wait.make (function ()

Send ("swing %1")
Send ("swing %1")
wait.time (7)
Send ("STAND")
Send ("evoke pentagram")
Send ("clot")
Send ("clot")
Send ("clot")
Send ("clot")

Note ("@@@@@@@Check shield. Sip or sleep/med if needed.@@@@@@@@")

end)

However, instead of waiting, I would much much rather just wait until a certain line is sent before continuing the rest of the script.

For example, in pseudocode:

send swing
send swing

if I get message "You have recovered balance"

send swing
send swing


Is this possible?
Australia Forum Administrator #1
Template:post=4957
Please see the forum thread: http://gammon.com.au/forum/?id=4957.