[1.0.1] Sikuli having hard time with GUI elements in Windows 8

Asked by Shawn Robertson

I have Sikuli r930 as well as the latest Sikuli 1.0.1 and both have the same problem.

I have a piece of code in a main script that says this:

rightClick("Expense-4.png")

sometimes it finds it but most of the time it fails.

i have no issues in windows 7. my windows 8 machine matches my windows 7 machine in regards to specs display driver, resolution and DPI settings.

if i take that code and put it in an empty script and run it it runs fine.

try to run the main script with that code and it fails on that line.. I then click on the picture and open it up and look at the accuracy tab and it shows up in red (so im thinking what the heck why does it fail)

it makes no sense why i have such a low success rate with UI elements in windows 8 versus Windows 7.

any ideas?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
RaiMan Edit question
Last query:
Last reply:
Revision history for this message
Shawn Robertson (shawn-robertson) said :
#1

and yes there is a proper wait of 1 second between the previous line and the rightClick line it fails on. i even tried waiting 5 seconds.. its not a timing issue that I can see.

The error message simply says it can not find the file on the screen.

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

Looks like a more general problem on Windows 8.

I am sorry for that, but currently I have no possibility to test (no Windows 8 available).

If this problem is reproducible you could do the following with version 1.0.1
run your script from command line
runIDE -d 3 -c >log.txt

and send me the log.txt silently to my mail at https://launchpad.net/~raimund-hocke

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.