From: Thomas Wilson Date: 2010-04-14T05:25:16+09:00 Subject: Detect whether a key is being held before script execution? Hi All! I am looking for a way to have a script detect whether or not a key is pressed and held down before it runs. Basically, I want the script to execute one way if the key is pressed and another if it is not pressed. I plan on having the script launched automatically at startup and will need to have the key pressed before it runs. Can anybody point me in the right direction to achieve this? Thanks in advance! WPPK -- Posted via http://www.ruby-forum.com/.