Hey, I'm trying to write a very basic macro (15 lines of code at most) which may grow to new tasks in the future.
After ~1 hour of google searches I concluded that there is no documentation for python-virtkey. I did find the source code, but I don't know C so it wasn't very helpful, can anyone tell me how to get the virtkey module to emulate a keypress? I need it to do spacebar, return, and the letters/numbers
here's the code for the virtkey module: http://codebrowse.launchpad.net/~onb...b3gyq5x17b53-3
Here's the python I've written so far:
Thanks in advance for your help!Code:import virtkey
import time
keypress=virtkey.virtkey
time.sleep(2)
for i in range (1,100,1):
print "loop " + str(i)
time.sleep(1)
keypress(" ") # <-- doesn't work, but doesn't return an error either