PDA

View Full Version : Python: have a program run silently/invisable and listen for keys which activate it



dracule
October 1st, 2008, 03:06 AM
I am currently writing a program which I need one thing for full functionality of what i want it to do.

I want it to run silently in the background (not in taskbar), until a user presses a set of keys to activate it and bring it to the front of the screen.

dwhitney67
October 1st, 2008, 03:10 AM
Sounds interesting! Have you attempted to write any code for this yet? Or are you hoping that someone else will do it for you?

On the surface, it seems that you want to develop a key-logger application. Maybe you can Google for some advice on that topic.

dracule
October 1st, 2008, 03:59 AM
Sounds interesting! Have you attempted to write any code for this yet? Or are you hoping that someone else will do it for you?

On the surface, it seems that you want to develop a key-logger application. Maybe you can Google for some advice on that topic.

The only thing that I found was pyglet being able to lock out the mouse. most things i have found generally only logs the current window's key strokes.

I think that this might have to be written in C, but I dont know C.

dracule
October 1st, 2008, 05:18 AM
thanks for using the word "keylogger"

i would have never associated it with that, but doing a google search for "python keylogger" led me to "pyhook" which looks like it should work.