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

Bug #614456 reported by Dantel D on 2010-08-06
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sikuli
Medium
RaiMan

Bug Description

Update 2016-10-18 *********************************

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?

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

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) on 2011-01-12
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) on 2011-01-12
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) on 2013-02-21
Changed in sikuli:
status: Triaged → In Progress
assignee: nobody → RaiMan (raimund-hocke)
tags: added: fkt-region
RaiMan (raimund-hocke) on 2013-05-06
Changed in sikuli:
importance: Wishlist → High
milestone: none → x1.1
RaiMan (raimund-hocke) on 2014-01-12
Changed in sikuli:
status: In Progress → Fix Committed
RaiMan (raimund-hocke) on 2014-09-17
Changed in sikuli:
milestone: 1.1.0 → 1.2.0
description: updated
Nidere (nidere) wrote :

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

RaiMan (raimund-hocke) on 2016-10-18
Changed in sikuli:
status: Fix Committed → Won't Fix
importance: High → Undecided
milestone: 2.0.0 → none
RaiMan (raimund-hocke) on 2016-10-18
Changed in sikuli:
status: Won't Fix → In Progress
importance: Undecided → Medium
milestone: none → 2.0.0
description: updated
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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions