I am downloaded sikulix 1.1.1 on ubuntu 16.04, openJDK8 (I traied also Oracle java 8) and with some example scripts it seems work.
Strange things appened when I used the methods window(), getWindow(), hasWindow(), isRunning... of the App class. I tried the below code:
`
myapp = App.open('gedit')
wait(5)
print myapp.getName()
print myapp.getPID()
print myapp.getWindow()
print myapp.hasWindow()
print myapp.window()
print myapp.isRunning()
The script opens the window with gedit correctly but prints the below output:
[debug] App.immediate: gedit
[debug] App.create: [-1:gedit]
[debug] App.open [12630:gedit]
gedit
12630
False
None
False
`
Some methods does not return what I expect:
getWindow() returns a empty line
hasWindow() returns False instead of True
window() returns None
isRunning() retunrs False instead of True
Could someone give me an explaination about?
Am I using the api in a wrong way?
I am downloaded sikulix 1.1.1 on ubuntu 16.04, openJDK8 (I traied also Oracle java 8) and with some example scripts it seems work. Strange things appened when I used the methods window(), getWindow(), hasWindow(), isRunning... of the App class. I tried the below code:
` myapp = App.open('gedit') wait(5)
print myapp.getName() print myapp.getPID() print myapp.getWindow() print myapp.hasWindow() print myapp.window() print myapp.isRunning()
The script opens the window with gedit correctly but prints the below output:
[debug] App.immediate: gedit [debug] App.create: [-1:gedit] [debug] App.open [12630:gedit] gedit 12630False None False ` Some methods does not return what I expect:
Could someone give me an explaination about? Am I using the api in a wrong way?
Thanks