Global keypress detection

Discussion in 'Mac Programming' started by paintstripper, Mar 13, 2010.

  1. paintstripper macrumors newbie

    Joined:
    Mar 13, 2010
    #1
    I am writing software that charts efficiency and activity over the course of the day. Is it possible to count the number of global key presses for just the alpha numeric characters?

    A solution in c or c++ would be awesome, but at this point I will take anything. Thanks guys!

    Thanks,
    paintstripper
     
  2. fernandovalente macrumors 6502

    fernandovalente

    Joined:
    Aug 29, 2008
    Location:
    Third world **** hole, I mean, Brazil
    #2
    If I understood what you wanna do, I suggest you to use:

    Code:
     - (void)keyDown:(NSEvent *)theEven
    This way you can detect when a key is pressed.
     
  3. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    Please search before asking questions. This has been covered. See this thread for some solutions.
     
  4. lloyddean macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #4
    Searches need "useful" keywords in order to produce relevant results thus questions like the one asked.
     

Share This Page