Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Blocking Just Keyboard (Not Mouse)!


  • Please log in to reply
38 replies to this topic
MouseBlock>?
  • Guests
  • Last active:
  • Joined: --
Block Keyboard but not mouse with BlockInput/DllCall/Command Line (No external aps, links or non-permanent resources please.) All I need is a method. Then I will implement it into a GUI with buttons for blocking/restoring keyboard (and a unblock feature auto on exit) For cleaning the keyboard and such.

trik
  • Members
  • 1317 posts
  • Last active: Jun 11 2010 11:48 PM
  • Joined: 15 Jul 2007
BlockInput, Send

Religion is false. >_>

MouseBlock>?
  • Guests
  • Last active:
  • Joined: --
Does not work! My keyboards still working.

Send: The user's keyboard and mouse input is ignored while a Send or SendRaw is in progress (the traditional SendEvent mode only). This prevents the user's keystrokes from disrupting the flow of simulated keystrokes. When the Send finishes, input is re-enabled (unless still blocked by a previous use of BlockInput On).



Anything else? anyone???

trik
  • Members
  • 1317 posts
  • Last active: Jun 11 2010 11:48 PM
  • Joined: 15 Jul 2007
Loop
{ 
Input, OutputVar, L1
}
Return
Tested.
Religion is false. >_>

  • Guests
  • Last active:
  • Joined: --
But If i press keys really fast it wont block fully :(

trik
  • Members
  • 1317 posts
  • Last active: Jun 11 2010 11:48 PM
  • Joined: 15 Jul 2007
Loop

{ 

Input, OutputVar, L9999

}

Return

Religion is false. >_>

  • Guests
  • Last active:
  • Joined: --
And a way to stop this loop????

trik
  • Members
  • 1317 posts
  • Last active: Jun 11 2010 11:48 PM
  • Joined: 15 Jul 2007
Exit the app?
Religion is false. >_>

  • Guests
  • Last active:
  • Joined: --
Anything even a little more conveniant?

  • Guests
  • Last active:
  • Joined: --
Anyone?

Mustang
  • Members
  • 421 posts
  • Last active: Dec 26 2010 10:08 PM
  • Joined: 17 May 2007
Break

Andreone
  • Members
  • 257 posts
  • Last active: Mar 19 2008 05:30 PM
  • Joined: 20 Jul 2007
The following link leads you to script that blocks mouse and keyboard until a hotkey is pressed.
You just have to remove or comment the line with BlockInput MouseMove
http://www.autohotke...pic.php?t=22761

trik
  • Members
  • 1317 posts
  • Last active: Jun 11 2010 11:48 PM
  • Joined: 15 Jul 2007
Mustang,

If it breaks won't that stop the loop? And how do you propose executing this break? A hotkey?

Andreone,

I think he wants it a little more discreet then that, still.

A way you can stop it. Make another script with thr following contents:

Send, F1

Then change the script I originally gave to you to this:

Loop
{ 
Input, OutputVar
}
Return

F1::
ExitApp
Return

Not tested!
Religion is false. >_>

Mustang
  • Members
  • 421 posts
  • Last active: Dec 26 2010 10:08 PM
  • Joined: 17 May 2007

And how do you propose executing this break?

A sexy mouse gesture 8)

trik
  • Members
  • 1317 posts
  • Last active: Jun 11 2010 11:48 PM
  • Joined: 15 Jul 2007
What like

~LButton & RButton::
ExitApp

:?: :?: :?:
Religion is false. >_>