Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LowLevel Mouse and Keyboard Events



Thank you!
There are two things i wanna do.
1. Get informed when the lower level m/k input gets into the os before it is dispatched to different applications. Let my application decide whether or not pass it to the event loop.
2. Determine if an input from (1) is from an actual mouse/keyboard event, or it's generated by the other user's appliaction.

Looking forward to your reply.
-Hao

On Nov 26, 2007 12:59 PM, John Stiles < email@hidden> wrote:
We can probably help you better if you give a higher-level description of what you are trying to do.
The low-level design of Windows and Mac isn't  the same, and while you probably won't find an equivalent to mouse hooks on Mac OS, if we knew what your app needs to do, we can probably find a way to do it.


Hao Jiang wrote:
Guys,

I am experiencing difficulties in coding Carbon event handlers.
My goal is to intercept a mouse/keyboard event and prevent it from happening across all processes.
Yet, the GetEventMonitorTarget() just dupicates the event, the original one is also sent to the process.
It is sort of like Windows' LowLevel Mouse Hook, but I just could not find a proper method to do that?
Any ideas?

Thanks,
-Hao

_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >LowLevel Mouse and Keyboard Events (From: "Hao Jiang" <email@hidden>)
 >Re: LowLevel Mouse and Keyboard Events (From: John Stiles <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.