• 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: Stuffing characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stuffing characters


  • Subject: Re: Stuffing characters
  • From: Matthew Smith <email@hidden>
  • Date: Sun, 26 Jan 2003 15:14:55 +1100

on 26/01/2003 14:56, Jeffrey Mattox at email@hidden wrote:

> How do I stuff characters into the keyboard stream? My application
> (which will not be the active application) needs to output a string
> as if it were typed on the keyboard and the string needs to be
> received and processed by the active application.

It requires the Beta version of System Events, which is downloadable from
the Apple Developer web site. It also requires that "Enable access for
assistive devices" also be turned on in the Universal Access System
Preferences.

eg.
tell application "TextEdit" to activate
tell application "System Events"
tell process "Text Edit"
keystroke "A"
keystroke "B"
end tell
end tell

--
Matthew Smith
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Stuffing characters (From: Jeffrey Mattox <email@hidden>)

  • Prev by Date: Stuffing characters
  • Next by Date: Re: Stuffing characters
  • Previous by thread: Stuffing characters
  • Next by thread: Re: Stuffing characters
  • Index(es):
    • Date
    • Thread