Sikuli not clicking on image(Win 8.1)

Asked by Robin Siebler

I have a script that works on WinXP - Win 8. However, Win 8.1 seems to have botched everything up.

I have a very simple code snippet:

if exists(image):
    print "Found image")
    click(image)

When I run the code, I get the print statement, but the image is not clicked on. Once again, this is only failing on Win 8.1

Question information

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

if both <image> are the same image files, then this is in dead weird.

If not, I think it is a problem of different rendering or font difference, if text is contained in the image.

Revision history for this message
Robin Siebler (robinsiebler-dslextreme) said :
#2

If I open the image inside Sikuli Edit, it -walways- finds the image. Recognition is set to the default 70%.

Revision history for this message
Oliver Beine (oliverbeine) said :
#3

I've got the same - or a very similar - problem running my script in Windows 8.1 Pro, 64Bit (script works fine on Win7) using older and at least sikulis version 1.1:
Starting my application using the "doubleClick"-statement works fine but after the application got started by doubleClick(ing) the file on windows-desktop no sikuli-command seems to work within the application-window.
I tried the above mentioned "click"-statement as well as "Key.ENTER", combined with the adequate "wait"-statement for beeing shure the window is already loaded and visible, but within the installer(-application)-window no command seems to have any effect.

May there be a relation to the new design of Win8 and the restriction for Java running only in Desktop screen ("tips for using Java on Windows 8", http://www.java.com/en/download/faq/win8_faq.xml: "Java will only be supported in Desktop screen. Java will not run in the Start screen. ")?

Revision history for this message
Oliver Beine (oliverbeine) said :
#4

It does not seem to be a general problem with Windows 8.1: Within another full screen application my sikuli-script works fine!

Just that one application seems to be a problem for my script in Win8.1, maybe because it's not running in full screen mode?
The same installer doesn't cause any problems for my sikuli-script running in Windows 7.

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

I made it a bug

Revision history for this message
Kevin Ton (kevinton43) said :
#6

I have a similar issue. All my scripts run fine on Windows 7 but not on Windows 8.1 Enterprise. Sikuli can find the images but it does not click on any of them. The mouse does not seem to move. Running as admin does not help either.

Thanks,

Kevin

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

@Kevin
please use the related bug, to document your experiences.