[Sikuli-driver] [Question #176507]: Imported script cannot resolve 'Key' constant

2011-10-27 Thread Chris at Aviary
New question #176507 on Sikuli: https://answers.launchpad.net/sikuli/+question/176507 I have an imported script called blur.sikuli. When I run this on its own, I have no problems. there is a line: type(Key.F5) That I use to refresh the page. If I import this script from another script

Re: [Sikuli-driver] [Question #176507]: Imported script cannot resolve 'Key' constant --- needs: from sikuli import *

2011-10-27 Thread RaiMan
Question #176507 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/176507 Summary changed to: Imported script cannot resolve 'Key' constant --- needs: from sikuli import * -- You received this question notification because you are a member of Sikuli Drivers, which is an answer

Re: [Sikuli-driver] [Question #176507]: Imported script cannot resolve 'Key' constant

2011-10-27 Thread RaiMan
Question #176507 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/176507 Status: Open = Answered RaiMan proposed the following answer: imported Sikuli scripts need an from sikuli import * at the beginning. (... as mentioned in the docs ;-) -- You received this question

Re: [Sikuli-driver] [Question #176507]: Imported script cannot resolve 'Key' constant --- needs: from sikuli import *

2011-10-27 Thread Chris at Aviary
Question #176507 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/176507 Chris at Aviary confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer

Re: [Sikuli-driver] [Question #176507]: Imported script cannot resolve 'Key' constant --- needs: from sikuli import *

2011-10-27 Thread Chris at Aviary
Question #176507 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/176507 Status: Answered = Solved Chris at Aviary confirmed that the question is solved: Thanks for the response. I had tried that and it didn't seem to have an effect. Shutting down the IDE and restarting it