How would you make Python press a button? What would you have to type to get the program to "activate" a keyboard button.
like
if input()=='y':
output()= press key (g)
or something like that although obviously the ouput() parts don't exist in Python. Also on that ntoe does anyone know any Python simple syntax dictionaries, IDLE's built in one kinda sucks.
>>1
Your request makes no sense. You have to rephrase it in a way that makes sense before I can answer you.
The closest I can get is that you want key "B" to do something, but then you want key "A" to do the same thing key "B" does and maybe something of its own.
Name:
Anonymous2011-01-03 1:59
Ok lets say I'm playing a game and to beat that game I have to press G a lot. As in physically click on 'G'. Now I want to create a simple program that would allow me to just activate it (WITH 'Y'/By clicking Y once) and then it be like I am rapidly clicking on G.
Program an Arduino robot with servos to press that button for you!
If you add two more servos, two rails, and a map of keyboard, you can make it press any button you want, any at all, not just ``g''!!
>>1
Eh, so it would have to send a message (or something like that, a call) to the OS to send out to all of the processes that the button 'G' has been pressed?