How to get the key stroke

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • visweswaran2830
    New Member
    • Nov 2009
    • 92

    How to get the key stroke

    I want to get the key what I have pressed. I got it through keypressed and keyup events. but i need to get through window procedure. can you help me....
  • MrMancunian
    Recognized Expert Contributor
    • Jul 2008
    • 569

    #2
    i need to get through window procedure.
    Huh? Please elaborate on your problem and post the relevant code that you already have.

    Steven

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Not sure what the problem is....
      You already seem to know that you can use the Control.KeyUp event...

      -Frinny

      Comment

      • !NoItAll
        Contributor
        • May 2006
        • 297

        #4
        My "guess" is that you want to hook keystrokes outside of all applications running in Windows, i.e. setup a hot key that will tell Windows to do something (like launch a program). To do this you will need to use windows API code which involves API declarations and marshalling unmanaged code. Doing this is not scary, but is not for anyone who can not supply, at least, some basic starting code and a full and clear explanation of what you want to do.
        Honestly, you could be writing a keystroke logger - and no one on this forum would be very excited about helping ANYBODY (who would likely be low-level scum) do that.

        Comment

        Working...