App instance changed in 1.1.4 compared to 1.1.2?

Asked by Shawn Robertson

i have been using nightly 1.1.2 since march 2018. I decided to try downloading and using the 1.1.4 Snapshot nightly (2019-01-30_21:31)

when my script that contains an app instance like this:

procedit = App(os.path.join(r"C:\tssmoketest", "2020", "procedit.exe"))

and I call it like this

procedit.open()

it launches the application however there is a modal dialog that launches for that application that you have yo click continue ot stop. that dialog falls behind my application causing the script to fail because im looking for that dialog with a saved image to click continue or stop.

also there is nothing in the LOG/Message area at the bottom of the IDE either.

in the older 1.1.2 March nightly I was using, it does not happen like this AND it always shows:

[log] App.open [824:ProcEdit.exe]

in the message area at the bottom.

im on windows 10 latest build fall creators edition etc etc version 1803 (build 17134.523)
Java 7 and 8 are both installed

is there anything else i should be including? please let me know, thank you!

Shawn

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

Yes, the App class is completely revised and still under development.

Your problem might come from the fact, that now the open() waits for the app to be running and then issues a focus().

So you either have to stick with 1.1.2 or find a way, to get the dialog back to front.

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

The logs of the App features are now hidden by default.

use
print procedit

or
App.logOn() # switch on
....
App.logOff() # off again

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

I can't find App.logOn() in the documentation. Can you suggest where we should look for details?

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

not in the docs yet ;-)

just try it out.

Can you help with this problem?

Provide an answer of your own, or ask Shawn Robertson for more information if necessary.

To post a message you must log in.