Re: sending key presses to another app
Re: sending key presses to another app
- Subject: Re: sending key presses to another app
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 03 May 2004 11:37:11 -0400
on 2004-05-03 12:53 AM, justin webster at email@hidden wrote:
>
I have found references to CGPostKeyboardEvent but I'm not sure how to
>
implement it.
>
How do I specify the application I'm sending to.
>
How do I find the values for the particular keys I want to press?
You can use the Accessibility API to send keystrokes to other applications.
Read the Assistive API preliminary documentation at
/Developer/Documentation/ReleaseNotes/Accessibility/AssistiveAPI.html. There
is quite a learning curve and you'll still have to learn about keycodes,
however, for which somebody else gave you a reference.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.