PDA

View Full Version : Catch Global Events




Togo
May 15, 2012, 08:48 AM
Hi,

i have a idea for a program. I want to catch all actions from the users. If the user performed this action with the mouse, i wanna show him a notification with the shortcut of this actions. For example: The user open with the mouse a new tab in Safari the program recognize this and show him a message "Hey you can do this with: Apple + T".

I played around with the

addGlobalMonitorForEventsMatchingMask:NSLeftMouseDownMask

but i can't find a connection to the Event that has been performed.

Is there anybody with a idea how i can do this with build in classes from Cocoa/Objective-c?

Thank in advance for your help

Greetings from Germany :D

Tobi



Togo
Jun 2, 2012, 05:07 AM
Nobody a idea?

This is a push message :)