Lock Out Mouse & Keyboard Interference

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
MikeOrlando
Posts: 22
Joined: 05 Jun 2017, 08:18

Lock Out Mouse & Keyboard Interference

07 Jul 2018, 14:53

Hello,

I have a lengthy script that relies on mouse movement. Users occasionally move the mouse accidently and mess this up. I see you can lockout input from the mouse and keyboard (I would want to allow the escape key). Is there a way to put a popup on the screen that input is locked while the script is running and if you want to break out of it what key to hit? Or must you presume the user can remember the ESC is the way out of the script?

Thanks!
Shade4Real
Posts: 16
Joined: 16 Jun 2018, 00:54

Re: Lock Out Mouse & Keyboard Interference

14 Jul 2018, 21:20

Blockinput, on
-script-
Blockinput, off

(Must have Administrator priv)
LAPIII
Posts: 669
Joined: 01 Aug 2021, 06:01

Re: Lock Out Mouse & Keyboard Interference

24 Jun 2022, 15:45

I'm not sure what BlockInput, MouseMove does. Is it to BlockInput, Mouse, which only blocks mouse input?
User avatar
mikeyww
Posts: 27082
Joined: 09 Sep 2014, 18:38

Re: Lock Out Mouse & Keyboard Interference

25 Jun 2022, 05:28

Code: Select all

Gui, -Caption +Border
Gui, Font, s10
Gui, Color, FFFFE9
Gui, Add, Text,, Message
Gui, Show
Sleep, 1000
Gui, Hide
AutoHotkey comes with robust documentation that includes detailed descriptions & examples for every command & function.
:arrow: BlockInput
LAPIII
Posts: 669
Joined: 01 Aug 2021, 06:01

Re: Lock Out Mouse & Keyboard Interference

25 Jun 2022, 05:44

I had read the page and I'm just not sure of the difference.
User avatar
mikeyww
Posts: 27082
Joined: 09 Sep 2014, 18:38

Re: Lock Out Mouse & Keyboard Interference

25 Jun 2022, 05:58

Mouse: The user's keyboard and mouse input is ignored while a Click, MouseMove, MouseClick, or MouseClickDrag is in progress.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 259 guests