Re: Monitor key presses in Python?

2013-09-14 Thread Dave Angel
On 14/9/2013 14:10, eamonn...@gmail.com wrote: > I didnt wanna say that, in case people threw a fit and stuff. > > So yeah, how would I monitor the key presses? There's a huge difference between monitoring key presses within your own process, and intercepting them system-wide. if you need to see

Re: Monitor key presses in Python?

2013-09-14 Thread Paul Rubin
eamonn...@gmail.com writes: > I'd need this to run without the user knowing. You are asking for programming advice when you should probably be asking for legal advice instead, about interception of electronic communications. We are not qualified to give legal advice here. -- https://mail.python.

Re: Monitor key presses in Python?

2013-09-14 Thread eamonnrea
I didnt wanna say that, in case people threw a fit and stuff. So yeah, how would I monitor the key presses? -- https://mail.python.org/mailman/listinfo/python-list

Re: Monitor key presses in Python?

2013-09-14 Thread Roy Smith
In article <5c59400c-45ca-40f0-846c-05bef3eb0...@googlegroups.com>, eamonn...@gmail.com wrote: > It might sound strange, but I'd need this to run without the user knowing. It's called a keylogger. And after all the revelations about the NSA over the past few weeks, it doesn't sound strange at

Re: Monitor key presses in Python?

2013-09-14 Thread eamonnrea
It might sound strange, but I'd need this to run without the user knowing.I believe I can do this by making the file a .pyw file, and use a GUI library to monitor the key presses. I think I could use PyGame, PyGlet and/or Cocos2d as well. -- https://mail.python.org/mailman/listinfo/python-list

Re: Monitor key presses in Python?

2013-09-10 Thread Grant Edwards
On 2013-09-09, eamonn...@gmail.com wrote: > Is there a way to detect if the user presses a key in Python that > works on most OS's? No. Unless by "most OSes" you mean "most Unixes" or "most Windows". > I've only seen 1 method, and that only works in > Python 2.6 and less. > If you get the key

Re: Monitor key presses in Python?

2013-09-09 Thread Michael Torrie
On 09/09/2013 11:39 AM, eamonn...@gmail.com wrote: > Is there a way to detect if the user presses a key in Python that > works on most OS's? I've only seen 1 method, and that only works in > Python 2.6 and less. If you get the key, can you store it in a > variable? > > Also, is there a way to cre

Re: Monitor key presses in Python?

2013-09-09 Thread Nobody
On Mon, 09 Sep 2013 10:39:43 -0700, eamonnrea wrote: > Is there a way to detect if the user presses a key in Python that works on > most OS's? I've only seen 1 method, and that only works in Python 2.6 and > less. There's no "generic" solution to this. At a minimum, there's getting "key presses"

Re: Monitor key presses in Python?

2013-09-09 Thread Steven D'Aprano
On Mon, 09 Sep 2013 10:39:43 -0700, eamonnrea wrote: > Is there a way to detect if the user presses a key in Python that works > on most OS's? I've only seen 1 method, and that only works in Python 2.6 > and less. http://code.activestate.com/recipes/577977 I have just tried the above under Linux

Re: Monitor key presses in Python?

2013-09-09 Thread John Gordon
In <57051d11-abd9-4621-9618-1574cd375...@googlegroups.com> eamonn...@gmail.com writes: > Is there a way to detect if the user presses a key in Python that works on > most OS's? That depends on what you're really asking; your question is somewhat vague. Are you asking for a function that waits f

Re: Monitor key presses in Python?

2013-09-09 Thread Dave Angel
On 9/9/2013 13:39, eamonn...@gmail.com wrote: > Is there a way to detect if the user presses a key in Python that works on > most OS's? I've only seen 1 method, and that only works in Python 2.6 and > less. If you get the key, can you store it in a variable? > > Also, is there a way to create a

Monitor key presses in Python?

2013-09-09 Thread eamonnrea
Is there a way to detect if the user presses a key in Python that works on most OS's? I've only seen 1 method, and that only works in Python 2.6 and less. If you get the key, can you store it in a variable? Also, is there a way to create a callback in Python? -- https://mail.python.org/mailman