
Guess I don't understand how processIn works
Running Win 7 Home Premium
Hi all, I'm trying to figure out how to work with the processIn command, so that I can use it to trigger other scripts. I'll post the code for both scripts, test2 and test3, so maybe someone can tell me where I'm going wrong. TWX definitely doesn't like whatever I'm doing, it crashes with an error :
Exception EListError in module twxproxy-205.exe at 0001A726
List index out of bounds (-1).
Understand I wasn't trying to actually accomplish any work with these 2 scripts, I was just messing around with the command to try to get one script to trigger another script, and then have the controlled script trigger the controlling script. My idea with this being that I could have a controlling script trigger a secondary script, pausing it while the secondary script did it's work, and then when the secondary script finished its work it could send a trigger back to the controlling script so that it could continue on with it's work. They compiled and ran, and both of them echoed the text that was supposed to be echoed from the script. Then TWX crashed with the error message above.
test 2
Code:
# test for using processIn to trigger scripts
setTextTrigger 1 :1 "test3 executed"
processIn 1 "start test3"
pause
:1
killTrigger 1
echo "*" "passed successfully"
halt
test 3
Code:
setTextTrigger 1 :1 "start test3"
pause
:1
killTrigger 1
echo "*" "starting test 3"
processIn 1 "test3 executed"
halt
Is this happening because it isn't possible for one script to pass something to another script and then the other script to pass something back to the original controlling script? Did I get the process backwards as to what to put in each script? Or is it something else I'm doing?
Appreciate any insight anyone can give me into the process, thanks