emulate a key press

B

Bart Nessux

This probaly isn't possible with Python, but I thought I'd ask.

I want to emulate a key press programatically. I want the computer (G5
running Mac OSX 10.3) to think that the user has pressed the space bar on
the keyboard. Any module in Python that makes this easy? If not, I'll do
something in C.
 
B

Bob Ippolito

This probaly isn't possible with Python, but I thought I'd ask.

I want to emulate a key press programatically. I want the computer (G5
running Mac OSX 10.3) to think that the user has pressed the space bar on
the keyboard. Any module in Python that makes this easy? If not, I'll do
something in C.

I'm pretty sure you'll have to do that in C, I don't believe the API is
wrapped. An even easier way would be to use Pyrex to create a Python
extension for what you are trying to do.

-bob
 
B

Bob Ippolito

I'm pretty sure you'll have to do that in C, I don't believe the API is
wrapped. An even easier way would be to use Pyrex to create a Python
extension for what you are trying to do.

Oh, and a better place to ask this question would probably be the
pythonmac-sig list.

-bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,967
Members
47,520
Latest member
KrisMacono

Latest Threads

Top