• 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: Send key commands to other window...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Send key commands to other window...


  • Subject: Re: Send key commands to other window...
  • From: Philip Dow <email@hidden>
  • Date: Sat, 25 Feb 2006 17:30:22 +0100

I don't know about any cocoa or carbon frameworks, but you can use AppleScript to simulate input events in other applications, and you can use cocoa to send apple events and run apple scripts, for example to tell system events to keystroke the c and 6 keys.

-Phil

On Feb 24, 2006, at 9:32 PM, matt jaffa wrote:

Hi,

I was wondering if it were possible for my application to send commands to
another applications input. Like send a "c" or "6" as if the other
application had focus and the user pushed the key there? And where would I
find the API to do this? I have read through some emails that the
Accessibility needs to be turned on in System Preferences, this is ok. Just
need to know where to find the API to do this if the Accessibility API
allows this.


Thanks
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Send key commands to other window... (From: "matt jaffa" <email@hidden>)

  • Prev by Date: Re: Mutable/non-mutable bindings in NSTextView
  • Next by Date: How does a binding know what it gets should be treated like an NSArray or not ? (Was: How to observe and bind (KVO/KVB) to a value generated at runtime..)
  • Previous by thread: Send key commands to other window...
  • Next by thread: Progmatically Caching Objects from a CoreData SQLite Store?
  • Index(es):
    • Date
    • Thread