Mouse actions are blocked generally or by the frontmost application.

Asked by Vrushabh

Facing below error in Eclipse IDE -
[error] RobotDesktop: checkMousePosition: should be L(998,767)@S(0)[0,0 1920x1080]
but after move is L(571,473)@S(0)[0,0 1920x1080]
Possible cause in case you did not touch the mouse while script was running:
 Mouse actions are blocked generally or by the frontmost application.
You might try to run the SikuliX stuff as admin.

When I click on some button of my Desktop application, it opens another window which is another windows application. I tried all the possible iteration using APP class and mouse/keyboard events but unable to fix it.

Can you please help me to fix this issue. As this is blocking our progress.

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
Vrushabh (vrushabhh) said :
#1

Even I tried the same flow using SikuliX - IDE as well and same issue I'm facing. Any help will be appreciated. Awaiting your early response.

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

This usually happens on Windows systems, where the target GUI blocks mouse actions.

Often it is a solution to run the stuff from an admin commandline.

Revision history for this message
Vrushabh (vrushabhh) said :
#3

I have tried running as admin from command line but doesn’t workout. Same issue I’m facing. Please help me to overcome this problem.

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

--- I have tried running as admin from command line
... hope you did it right: you have to open an admin-commandline with the appropriate context-menu. Just being an admin account in a commandline window is not enough.

If this really does not help:
I do not know your targeted app, but it seems, that it blocks Java Robot generated mouse actions.

Since you use Eclipse, I guess you use Java.
If yes, try with a small test app to use Java Robot to move the mouse and do a click.

Can you help with this problem?

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

To post a message you must log in.