Re: [Sikuli-driver] [Question #673806]: NameError ( name "logout" is not defined) - strange?

2018-09-14 Thread BrazilMac
Question #673806 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/673806 Status: Answered => Solved BrazilMac confirmed that the question is solved: Thanks RaiMan, that answers my question! -- You received this question notification because your team Sikuli Drivers is an

Re: [Sikuli-driver] [Question #673806]: NameError ( name "logout" is not defined) - strange?

2018-09-14 Thread RaiMan
Question #673806 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/673806 RaiMan proposed the following answer: Masuo's answer is correct: the function-def logout has to be moved to the top. The symptoms you tell about can only happen inside the IDE, where you run the same script

Re: [Sikuli-driver] [Question #673806]: NameError ( name "logout" is not defined) - strange?

2018-09-13 Thread BrazilMac
Question #673806 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/673806 BrazilMac posted a new comment: HI masuo thanks for your reply. It has worked before, so thats why Im puzzled...on osx environment it works fine, when defined at the end of file. On linux, there are times

Re: [Sikuli-driver] [Question #673806]: NameError ( name "logout" is not defined) - strange?

2018-09-13 Thread masuo
Question #673806 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/673806 Status: Open => Answered masuo proposed the following answer: Function logout() should be defined before logout() is called. Your codes is similar to code1. Change code1 to like code2 or code3, it will

Re: [Sikuli-driver] [Question #673806]: NameError ( name "logout" is not defined) - strange?

2018-09-13 Thread BrazilMac
Question #673806 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/673806 BrazilMac gave more information on the question: If it helps, Im developing this on OSX, and testing on a linux machine on mac, the error does not come up and the function logout() executes as it should --

[Sikuli-driver] [Question #673806]: NameError ( name "logout" is not defined) - strange?

2018-09-13 Thread BrazilMac
New question #673806 on Sikuli: https://answers.launchpad.net/sikuli/+question/673806 Here is my script: wait("1536669464524.png") click("1536669473041.png") click("1536669473041.png") wait("1536669757342.png",30) if find("1536669757342.png"): #Use pre-defined