Re: Key Press php-gtk1 592-576

From: Date: Fri, 19 Feb 2010 14:33:09 +0000
Subject: Re: Key Press php-gtk1 592-576
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-8477@lists.php.net to get a copy of this message
Hi Brian, Just a thought here. You said "you must choose two keys on the keyboard that cannot be pressed using only one hand." If detecting two keys requires a lot of coding, how about detecting one keypress + one mouse click? It's much easier (less than 10 lines of coding), and I think people will need to use two hands to press a key and do a mouse click (unless they pick up the mouse with one hand, press the left mouse button, and then use the mouse to hit the keyboard)... Regards, /kksou Brian Stumm wrote: > > On Mon, Feb 15, 2010 at 6:01 AM, Brian Stumm > <bstumm@energytechnologysystems.com> wrote: >> First, I am still using php-gtk1. I'd like to make the move to v2 but >> do not have the luxury right now. >> >> I am looking to detect when keys are pressed (and held down) in >> php-gtk version 1. This is for a "two hand, no tie down" safety >> feature on our machines. Access to our machines is made possible by >> lifting the top of the machine using air cylinders. The air cylinders >> are controlled via an electric valve. To lower the top I need to >> require the user to press two keys on opposite sides of the keyboard >> and keep them depressed until the top closes completely. If they >> release before the top closes completely the top should go back up. >> >> Is there a way I can monitor key press and key release in version 1 of >> php-gtk? >> >> -- >> Brian Stumm >> ETS Energy Technology Systems, Inc. >> http://EnergyTechnologySystems.com >> bstumm@EnergyTechnologySystems.com >> 509-276-2015 (PH) >> 509-276-2016 (FX) >> > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- View this message in context: http://old.nabble.com/Re%3A-Key-Press-php-gtk1-592-576-tp27594343p27652986.html Sent from the Php - GTK - General mailing list archive at Nabble.com.

« previous php.gtk.general (#8477) next »