Command Line Tool for Trapping for Modifier Keys Pressed?

Greetings, folks!

Sorry for two posts in one day!, but does anyone know of any command line tool (bash, ruby, etc.) that can trap for keyboard modifier keys pressed (caps lock, command, shift, etc.)? I have been using Extra Suites for years, but it hasn’t been updated in almost eight years and I am concerned as some functions no longer work.

Thoughts?

Thanks!

Richard Fairbanks

Model: 2.33GHz MBPC2D
Browser: Google Chrome 7.0.517.41
Operating System: Mac OS X (10.6.4)

Hi,

look at this post

You are SUCH a saint, Stefan!

GOD BLESS YOU!!

(I’m guessing that I can just take the result and calculate which keys were pressed.)

return (do shell script "/usr/local/bin/checkModifierKeys")

(*
cmd = 256
shift = 512
caps lock = 1024
opt = 2048
control = 4096
*)

Thank you, Stefan, I’ve been wanting this for years! BLESS YOU!!!

Richard Fairbanks