What steps will reproduce the problem? 1. create script "test1": retCode, X = dialog.input_dialog(message="X= ?") 2. create script "test2": engine.run_script("test1") keyboard.send_keys("X=" + X) 3. run "test2"
What is the expected output? What do you see instead? In my opinion the script should ask the user to enter a value for "X" and then display that value.
This worked fine in earlier versions of Autoscript (sorry, I do not know exactly what version, but the behavior changed approx. 2-3 months ago).
Now (version 0.81.4) the main script (test2) does not wait until the user entered a value: "X=" is displayed immediatly after the input dialog is opened. One can enter a value there, but the script is already ended and it has no effect any more on what is displayed. So it is not possible to create any variables in sub-scripts and use them in the main script.
What version of the product are you using? On what operating system? Autokey 0.81,4, Ubuntu 10.04 LTS
Please provide any additional information below.
Comment #1
Posted on Feb 21, 2012 by Swift BirdIt's more a feature than a defect - it was introduced by architectural change in the script engine. At the moment there is no simple way to fix it without introducing deadlocks. Still, it's worth keeping on the list for future repairs.
Comment #2
Posted on Mar 1, 2012 by Swift BirdResolved for next release
Status: Fixed
Labels:
Type-Defect
Priority-Medium