Re: Best Way to Simulate Keyboard
Re: Best Way to Simulate Keyboard
- Subject: Re: Best Way to Simulate Keyboard
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 22 Aug 2009 12:46:19 -0400
On Aug 22, 2009, at 10:24 AM, Joe Turner wrote:
That works well, until I add modifiers. To do my modifiers i put the
modifier keys down before the character part, but this doesn't seem
to work when the command key is down or something :/
Is there any way to supply modifiers into a single CGEvent?
There's an example somewhere in the docs. Basically, you send, for
example, a command-key down event, then the character key down event,
then the character key up event, then the command-key up event.
Tedious but straightforward.
--
Bill Cheeseman
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden