Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. tracing keystrokes using c#

tracing keystrokes using c#

Scheduled Pinned Locked Moved C#
csharpdebuggingquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amal_pro83
    wrote on last edited by
    #1

    hello dave, remeber me?? today i am asking about keystrokes in every applications...i want to trace keystrokes and specify in which application were they typed..wait ur reply...give me hint in which way to search..thanks in advance

    A D 2 Replies Last reply
    0
    • A amal_pro83

      hello dave, remeber me?? today i am asking about keystrokes in every applications...i want to trace keystrokes and specify in which application were they typed..wait ur reply...give me hint in which way to search..thanks in advance

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      C# Keystroke logger? ^^

      1 Reply Last reply
      0
      • A amal_pro83

        hello dave, remeber me?? today i am asking about keystrokes in every applications...i want to trace keystrokes and specify in which application were they typed..wait ur reply...give me hint in which way to search..thanks in advance

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        You talking about capturing keystroke and logging what is typed and in which application they are typed? Since your requirements include loggin WHICH application recieves the keyboard message, you've added a new layer of complexity to your app. You can't simply use just the keyboard hooks function anymore since you will never receive any notification of where the message is going. To get that, you also have to use the CBTProc callback function (or hook) to keep track of the window that's currently activated. You have to get the name of the window using the window handle that's passed in during certain events that get sent through your CBTProc procedure. RageInTheMachine9532

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups