hasWindow always returns False
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.
print 'Window title: ' + str(calc.
print 'PID: ' + str(calc.getPID())
print 'Name: ' + calc.getName()
print 'Has window: ' + str(calc.
print 'Running: ' + str(calc.
print 'Window title: ' + str(calc.
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()?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Michael for more information if necessary.