Re: Sending text to applications? (Abbreviation software).
Re: Sending text to applications? (Abbreviation software).
- Subject: Re: Sending text to applications? (Abbreviation software).
- From: Maurice Volaski <email@hidden>
- Date: Mon, 23 May 2005 12:05:09 -0400
I've been trying to do this forever :-(
Under Classic, it's trivial. You patch the OS event manager and just hand
events you want to the apps.
Under OS X, it's a nightmare.
Patching is possible, but it doesn't help because Cocoa gets events
independently from Carbon, so installing global eventhandlers for Carbon
won't work. The internal _ReceiveNextEventCommon & _DPSNextEvent , which is
used for both, sometimes dispatches events directly into Cocoa apps.
Writing a text service component also doesn't appear to work because for
some odd reason backspacing doesn't work in Cocoa apps (radar# 3753446).
The Accessibility API is a great idea, but the event posting mechanism
AXUIElementPostKeyboardEvent was poorly designed since there's no way for an
outside program to control the user event feed (e.g, a filter), and it
apparently blocks the machine from its own typing (radar #4107468).
> Hi - I am looking for information to help design abbreviation
> software for OSX. The only software presently available to do this
> is TYPEIT4ME. However, the OSX version can lose characters if you
> type too fast. Although I'm not familiar with the design of that
> software, I believe it uses the cut and paste functions to replace
> typed abbreviations with text (because of the fact that when used
> with Eudora, the Edit menu flashes when an abbreviation is expanded).
> I believe that the lost characters occur when attempting to type
> while the paste function is occurring.
>
> I know that the OSX version of TYPEIT4ME was written before
> Accessibility API was available, so I'm hoping that Accessibility API
> allows a more reliable method to expand abbreviations. I suggested
> to the author of TYPEIT4ME to look at using Accessibility API.
> However, he's not been able to find the necessary documentation and
> examples that would help him use it. Would Accessibility API solve
> the problem, and where could he find the information that he needs?
> Thanks very much. - Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden