[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patching the menu manager
In article <BzGv1o.1zC@CAM.ORG> vandry@CAM.ORG (Phillip Vandry) writes:
>mattd@apple.com (Matt Deatherage) writes:
>
>>In article <BzD8FB.FJE@CAM.ORG>, vandry@CAM.ORG (Phillip Vandry) wrote:
>>> For a program I am writing I need to patch the MenuSelect call in the Menu
>>> Manager.
>>
>>As was stated in an earlier post by me, you may just _think_ you need to
>>patch MenuSelect to do what you want to do.
>>
>>So tell us what it is you want to do, and maybe we can tell you how to do
>>it in a way that will be finished before Dick Clark ages.
>>
>
>Okay. I want to write some sort of accessory (either an Init or an NDA) so
>menus can be accessed without using the mouse, in a manner similar to
>MicroSoft's (on the IBM) or ProTerm (but on the desktop).
>
One alternative might be a patch to SystemEvent, which processes events
and reports whether they were handled by a DA or should be sent to the
application. The patch should look at the event record information
passed to SystemEvent and determine if it wants to handle that event
or pass it on. If the event has the appropriate type, perform your
action and return TRUE (signifying the event was processed by a DA).
Otherwise, call the real SystemEvent.
Jason Simmons