Windows: Another program locked mouse actions

Asked by Tomáš Hák on 2018-02-07

Hi everyone,
I have installed Sikuli on Win 7. For many programs it works perfectly.
When I start another program then the program locks mouse ations in windows.
Is it possible to unlock it some way?

Thank you,
Tomhaus ;-)

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Solved by:
Tomáš Hák
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

Not sure what you mean.

... but SikuliX scripts need exclusive use of screen, mouse and keyboard while running. One cannot work in parallel.

Tomáš Hák (tomhaus) said : #2

I mean this:
"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."

I know that the "frontmost application" exists and do this problem. But I want to know if it is possible to unlock mouse actions.

Thank you for your commnet ;-)

RaiMan (raimund-hocke) said : #3

Windows 10?

Tomáš Hák (tomhaus) said : #4

Win 7

RaiMan (raimund-hocke) said : #5

Sorry for the unnecessary question about Windows version, you mentioned it already :-(

So your frontmost app moves the mouse, while SikuliX is running a script.

If this is by intention, simply ignore the warning, if it does not interfere with your script.

If it does, then you have to find measures, to coordinate mouse usage between the two candidates.

Tomáš Hák (tomhaus) said : #6

Yes the other program blockes mouse actions generally. But I want to know if it is possible to unblock.

RaiMan (raimund-hocke) said : #7

Try to run the script from a commandline you have opened as admin (context menu of command line open button).

If this does not help: some games have measures to block such mouse actions as generated by SikuliX. Then you do not have any chance.

Tomáš Hák (tomhaus) said : #8

Yes, that is the problem. Game blocks mouse actions. But I think if the game blocks mouse action from SikuliX then I can write code from scratch and it will not recognize it like mouse actions.