Catching keyboard and mouse events

Discussion in 'Mac Programming' started by damned, Apr 12, 2010.

  1. damned macrumors newbie

    Joined:
    Apr 9, 2010
    #1
    Hi.
    Please , give me a hint, what I should use to catch keyboard and mouse events?
    For example, the program is in the tray (or not active) and simply counts keystrokes and mouse clicks. I'll be gratefull for any help.
     
  2. lloyddean macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #2
    A Windows programmer, or user, I presume? I make that assumption based upon your terminology which is making it difficult for non Windows oriented programmers to understand and thus answer your question.

    Perhaps a longer description of what you're trying to accomplish would help. If possible using word describing elements of the Macintosh User Interface instead of the those found under Windows.

    No this is not meant to be snarky. It really is meant to help you communicate with this audience
     
  3. damned thread starter macrumors newbie

    Joined:
    Apr 9, 2010
    #3
    Yes, you are right. I am Windows programmer! But, I need to write a program for Mac.
     
  4. lloyddean macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #4
    Are you talking about your applications Keyboard and Mouse Events or System wide?
     
  5. damned thread starter macrumors newbie

    Joined:
    Apr 9, 2010
    #5
    System. I should do something like KeyLogger, but I just need to count the number of keystrokes and mouse clicks.
     

Share This Page