disable Keyboard

May 6, 2010 at 8:25pm

disable Keyboard

Hi all,

It might be the first time i don’t find the way to accomplish something in Max… and i think it might be very useful to many people.

I would like to lock/disable the keyboard (not responding to anything) with a combo keys, lets say CMD+ALT+SHIFT+B (something not usual to type). And i would like to be able to unlock the keyboard using the same combination.

I use popupdate to lock the mouse but i can’t find any similar for the keyboard.

I’ve been looking around and i did not find an easy answer, not even in command line..

Any tips?

Thanks in advance!
j

#50234
May 7, 2010 at 5:10pm

Using/locking the keyboard just for Max commands?
If so, just use [key] –> [sel #]
(where # represents the very unusual keyboard combination)
…this one will bang a toggle, opening and closing a gate that lets all the OTHER keypresses through for normal use in your patches. Maybe have all the [key] stuff happen in one place, then use sends for your actions.

I also like [sprintf %c] after [key], so you can use [sel a b c d e] rather than the ASCII numbers. However, this won’t work for the non-printing chars like tab, space, return, etc.

#180291
May 8, 2010 at 10:40pm

Thanks but I already know sel, sprintf…. I was looking for something to entirely lock the keyboard so that CMD+Q will not quit the application. The keyboard should NOT respond to anything (non-printing chars included), so no tabs, spaces nor CMD+ALT+ESC should respond.

I guess there is no such an 3party object / feature for that.

too bad :(

#180292
Aug 8, 2011 at 8:45pm

I also need to selectively disable keyboard commands for an installation and found this link useful (for Windows):

http://msdn.microsoft.com/en-us/library/aa460734(v=winembedded.5).aspx

#180293

You must be logged in to reply to this topic.