toprekt2 / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

engine.run_script does not wait for subscript to end #175

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by ms.tau...@gmail.com on 19 Feb 2012 at 11:17

GoogleCodeExporter commented 8 years ago
It'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.

Original comment by cdekter on 21 Feb 2012 at 8:41

GoogleCodeExporter commented 8 years ago
Resolved for next release

Original comment by cdekter on 1 Mar 2012 at 3:58