Re: Stuffing characters
Re: Stuffing characters
- Subject: Re: Stuffing characters
- From: Jeffrey Mattox <email@hidden>
- Date: Sat, 25 Jan 2003 23:32:58 -0600
Thank you to all who suggested using system events, which is one
solution. But,is there a Cocoa method (methodology) I could use to
stuff keyboard events that does not require Accessibility to be
turned on?
Jeff
----
http://www.apple.com/applescript/GUI/
> 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.