[request] option to lock mouse movement+click to prevent user from interrupting

Bug #614456 reported by Dantel D
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
SikuliX
Confirmed
Undecided
RaiMan

Bug Description

Update 2020-03-01 *** tracked on Github: https://github.com/RaiMan/SikuliX1/issues/327

There will never be such an absolute solution available (block user actions).

Only some filter and detection for user actions will be available maybe with user callbacks, to be at least be able to ignore actions initiated by the real mouse and real keyboard.

based on: https://github.com/kwhat/jnativehook

---------------------------------------------------

Hallo. Sikuli is a great project and it is fun working with it but there is something that bothers me and I wonder why noone else ever asked this question bevore (at least I couldnt find something similar over the search function).

Sikuli works pretty good but there is a big disadvantage making it pretty unstable for proper scripts: The mouse doesnt lock up when a script is running - so it is possible that the user will move the mouse during a critical period causing the whole script to "crash". So my question is - is there a way to lock up the mouse/keyboard during the execution of a script so the user cannot cause trouble by moving the mouse or other input?

If there is no standart for it in Sikuli - any suggestions to solve this matter?

+@developers It there is no general option for that - would it be possible to implement one?

Tags: fkt-region
Revision history for this message
niknah (hankin0) wrote :

I have a similar problem. But I don't want to hijack the user's screen. Sometimes I have scripts that I want to run as fast as possible but this means the script is controlling the mouse almost always and the user is unable to do anything.

Here's a patch to pause the script's mouse moves when someone moves the mouse, when the user stops moving the mouse for 15 seconds the script will continue again.

You can change the number of milliseconds to wait after the user stops moving the mouse in edu.mit.csail.uid.Settings.WaitUntilMouseIdle

Revision history for this message
Tsung-Hsiang Chang (vgod) wrote :

@niknah, thanks for the patch. Your idea is really interesting.
Maybe we should provide a new function to yield/resume the control of the mouse and keyboard.

Changed in sikuli:
importance: Undecided → Wishlist
status: New → Triaged
RaiMan (raimund-hocke)
summary: - No option to lock mouse movement+click to prevent user from interrupting
+ [Request] option to lock mouse movement+click to prevent user from
+ interrupting
RaiMan (raimund-hocke)
summary: - [Request] option to lock mouse movement+click to prevent user from
+ [request] option to lock mouse movement+click to prevent user from
interrupting
RaiMan (raimund-hocke)
Changed in sikuli:
status: Triaged → In Progress
assignee: nobody → RaiMan (raimund-hocke)
tags: added: fkt-region
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Wishlist → High
milestone: none → x1.1
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Committed
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 1.1.0 → 1.2.0
description: updated
Revision history for this message
Nidere (nidere) wrote :

Hey, RaiMan!
Has the option been implemented since then?

RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Won't Fix
importance: High → Undecided
milestone: 2.0.0 → none
RaiMan (raimund-hocke)
Changed in sikuli:
status: Won't Fix → In Progress
importance: Undecided → Medium
milestone: none → 2.0.0
description: updated
Revision history for this message
Alex (alexboost) wrote :

Hi,

This functionality is really important for me.
Do you have any idea when you will implement it ?
If not, do you have an alternative ?

thanks.

RaiMan (raimund-hocke)
Changed in sikuli:
importance: Medium → Wishlist
milestone: 2.0.0 → 2.1.0
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Wishlist → Medium
Revision history for this message
Eric G (gamemaster181) wrote :

Any progress or workaround?

Revision history for this message
RaiMan (raimund-hocke) wrote :

sorry no.

It is planned to be available in 2.1.0, but not yet started.

RaiMan (raimund-hocke)
description: updated
Changed in sikuli:
status: In Progress → Confirmed
importance: Medium → Undecided
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.