jay823001 / 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 execute said script. #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create script intended to be ran by engine.run_script() from another script.
2. Run calling script.
3.

What is the expected output? What do you see instead?
In my case my simple called test script was to send keystrokes. 
                    The script code was:keyboard.send_keys("hello party people").

While the abbreviation text for the calling script was removed the output from 
the called script was not observed.

What version of the product are you using? On what operating system?
.71.0 Ubuntu Meerkat.

Please provide any additional information below.

error output:
Traceback (most recent call last): 
  File "/usr/lib/python2.6/dist-packages/autokey/service.py", line 
404, in execute 
    exec script.code in self.scope 
  File "<string>", line 1, in <module> 
  File "/usr/lib/python2.6/dist-packages/autokey/scripting.py", line 
1041, in run_script 
    if item.description == description and isinstance(item, Script): 
NameError: global name 'Script' is not defined 

Original issue reported on code.google.com by gsrun...@gmail.com on 12 Nov 2010 at 3:01

GoogleCodeExporter commented 9 years ago

Original comment by cdekter on 18 Nov 2010 at 5:15

GoogleCodeExporter commented 9 years ago

Original comment by cdekter on 25 Jan 2011 at 7:01