Hi Sean,

two I can think of:

use onKeyUp and onKeyDown to intercept all keys, and check to see if your
program is active and the mode is the limited one or not.  If not, just let
the key through.

Or, when the mode becomes active, define your keys as hotkeys, and when it
expires, unregister them.  

hth,

Chip

-----Original Message-----
From: Sean Farrow [mailto:[email protected]] 
Sent: Sunday, May 08, 2011 9:33 AM
To: [email protected]
Subject: layered keyboard commands

Hi:

I'm currently scripting an application and I would like to use a concept of
layered keys.

If I press one key, I'd then like the keyboard to freeze and only allow
certain other keys through within a specific time period (5 seconds I'm
thinking). If a key is press within this time the function that key is tied
to is executed, if not the keyboard is unfrozen after the time has expired.

If there an easy way of doing this in scripting? 

Regards

Sean.


Reply via email to