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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top