Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Keyboard hook in linux

Reply
Thread Tools

Re: Keyboard hook in linux

 
 
Michael Torrie
Guest
Posts: n/a
 
      01-13-2013
On 01/13/2013 09:13 AM, K. Elo wrote:
> I have searched in the Web and in several tutorials (e.g. "Programming
> python"), but this seems to be a tricky one. The 'pyHook' library seems
> to offer a keyboard hook manager, but 'pyHook' is not available for
> linux IMHO, the 'curses' library offers no (direct) solution to this...


You're wrong. curses does offer a direct solution to this. Check the
docs. Also here's a nice intro document for Python 3:
http://docs.python.org/dev/howto/curses.html

You can check to see if a keystroke is waiting, grab it and then do
something useful. curses can even grab keys like page up or page down.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Keyboard hook in linux garabik-news-2005-05@kassiopeia.juls.savba.sk Python 0 01-13-2013 06:11 PM
Re: Keyboard hook in linux K. Elo Python 0 01-13-2013 06:10 PM
Windows Keyboard Hook via JNI Luc The Perverse Java 13 11-09-2006 07:39 AM
Keyboard error or no keyboard present??? Bud Light Computer Support 2 01-22-2005 04:00 AM
Keyboard Hook Problem (seems verbally unsolvable) Daniel von Fersen C++ 1 05-02-2004 01:53 AM



Advertisments