views:

65

answers:

1

Basically looking for a small program that will do nothing but activate the F6 key every x seconds for the active window, x being whatever number I enter, and the program stops with the hit of like ctrl+z or something. What would be a good way to do this?

+2  A: 

Looks like this might do what you need: http://www.rutherfurd.net/python/sendkeys/

I haven't tried to personally and my initial response was going to be that you're most likely going to need to look into Win32 APIs, but a quick google search turned that up.

Davy8
That might be the one I need, just have to stick an infinite loop around it, I think. Should the sent key be interpreted by the system as an actual keypress, if its looping while a different app is active?
Matthew