• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: sending key presses to another app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >sending key presses to another app (From: justin webster <email@hidden>)

  • Prev by Date: Re: Cocoa Bindings Issue: Help Needed.
  • Next by Date: Re: Bug in NSCalendarDate?
  • Previous by thread: sending key presses to another app
  • Next by thread: Re: sending key presses to another app
  • Index(es):
    • Date
    • Thread