[1.1.4] Ubuntu: switchApp() is no longer functional

Asked by Renke He

Yesterday I updated my SikuliX 1.14 to the latest build #211, my previous one was 2018-10-20_9:35 . I find the switchApp() is no longer functional. It use to works well but now it just won't do anything. Please help.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

what system? what Java?

Revision history for this message
Mike (maestro+++) said :
#2

On Windows 10 Build #211, with a copy of calc.exe in the Sikuli directory, the following code starts the calc application:

switchApp("calc.exe")

or

a1 = openApp("calc.exe")

or

myApp = App("calc.exe")

Revision history for this message
Renke He (hrk885312) said :
#3

Thanks Mike. But unfortunately my OS is Ubuntu 14.04 and may java is java 8.

Revision history for this message
Renke He (hrk885312) said :
#4

Sorry for the typo. My java is java 8. And when I print the return of switchApp it gives me "[-1:myApp()]myApp". Is that normal?

Revision history for this message
RaiMan (raimund-hocke) said :
#5

how exactly are you using switchApp()?

already tried openApp()?

The App class internally is heavily revised for Windows/macOS, but not tested yet against Linux.
So there might well be problems.

Revision history for this message
Renke He (hrk885312) said :
#6

When I run my script I need to make sure myApp's GUI should be at the front cause there are many terminals running on my desktop. So I use switchApp() to switch the focus to myApp. I try to read through the docs but it seems this is only way I can do in Ubuntu.And I tried openApp(), still not working though.

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
RaiMan (raimund-hocke) said :
#8

should stay open - has to be checked

Can you help with this problem?

Provide an answer of your own, or ask Renke He for more information if necessary.

To post a message you must log in.