Re: [Sikuli-driver] [Question #296141]: hasWindow always returns False
Question #296141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/296141 larryli proposed the following answer: Now, I use 2.0.2 windows environemnt, make one test myApp = App("C:\\Windows\\system32\\Notepad.exe") myApp.open() sleep(5) print myApp.hasWindow() it always false, notepad already opened. which part has problem? thanks -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #296141]: hasWindow always returns False
Question #296141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/296141 Status: Open => Answered masuo proposed the following answer: If the first started process has been completed after a few seconds and another process is running, such a phenomenon occurs . It is necessary to confirm whether this phenomenon occurs regardless of hasWindow. [example:] calc = App("myApp") calc.open() sleep(5) print 'Running: ' + str(calc.isRunning()) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #296141]: hasWindow always returns False
Question #296141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/296141 Status: Needs information => Open Michael gave more information on the question: Changing status to information provided. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #296141]: hasWindow always returns False
Question #296141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/296141 Michael posted a new comment: I downloaded version 1.1.1 and got the same problematic result. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #296141]: hasWindow always returns False
Question #296141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/296141 Michael posted a new comment: Ok, I will try it as soon as I can and report back to you. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #296141]: hasWindow always returns False
Question #296141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/296141 RaiMan requested more information: possible to check the situation with latest 1.1.1? -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #296141]: hasWindow always returns False
Question #296141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/296141 Michael posted a new comment: I'm using Linux and SikuliX version 1.1.0. I checked some source files on git and realized that hasWindow() returns false because getWindow() returns "". I think? I still don't understand why getPID() returns -1 and isRunning() returns False though. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #296141]: hasWindow always returns False
Question #296141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/296141 Status: Open => Needs information RaiMan requested more information: SikuliX version? System version? -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #296141]: hasWindow always returns False
New question #296141 on Sikuli: https://answers.launchpad.net/sikuli/+question/296141 Hi! I am writing a basic script and want to print some information about my app, like isRunning(), getPID() etc. Everything works fine until hasWindow() is run, after that getPID returns -1 and isRunning() returns False. Here's my code and the output: calc = App("myApp") calc.open() print 'Running: ' + str(calc.isRunning()) print 'Window title: ' + str(calc.getWindow()) print 'PID: ' + str(calc.getPID()) print 'Name: ' + calc.getName() print 'Has window: ' + str(calc.hasWindow()) print 'Running: ' + str(calc.isRunning()) print 'Window title: ' + str(calc.getWindow()) print 'PID: ' + str(calc.getPID()) print 'Name: ' + calc.getName() Output: [log] App.open [23902:myApp] Running: True Window title: PID: 23902 Name: myApp Has window: False Running: False Window title: PID: -1 Name: myApp What causes this problem? Is something wrong with hasWindow()? -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp