Detecting Single Modifier Key Presses (Is HighLine Not Able?

  • Thread starter Richard Fairbanks
  • Start date
R

Richard Fairbanks

<2.33GHz MBPC2D, Running OS X 10.6.3, Ruby 1.8.7 (173)>

Greetings, folks!

Quick question: Is there any way for Ruby to return the state of any of
the keyboard modifier keys? I thought HighLine might be able to do so,
but, AFAICT, it only returns keys that would appear in text.

I just need to know if the Caps Lock, control, shift, option, command,
etc. keys are pressed as my scripts use that information to determine
what to do next. (The Caps Lock is used most often as I can just set it
and walk away as the script runs.)

Thoughts?

Thank you!

Richard Fairbanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top