trap keyboard events using API

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    #1

    trap keyboard events using API

    Hi, I'm developing a testing application where i have to trap every
    keyboard press event. Which windows API can i use to trap all keyboard
    events. Thanks in advance - Dave
  • The Grim Reaper

    #2
    Re: trap keyboard events using API

    I've got a section of code.... but it's very long and complicated...
    Try searching www.planetsourcecode.com for "Keyboard Hook"
    _______________ _______________ __________
    The Grim Reaper

    "Dave" <st_group@yahoo .com> wrote in message
    news:22e80074.0 406140952.6f15e b61@posting.goo gle.com...[color=blue]
    > Hi, I'm developing a testing application where i have to trap every
    > keyboard press event. Which windows API can i use to trap all keyboard
    > events. Thanks in advance - Dave[/color]


    Comment

    • Lapointe

      #3
      Re: trap keyboard events using API

      Im not sure that work but you can try that,

      you can try to use the keypress option and write it in a dat files

      Private Sub Text1_KeyPress( KeyAscii As Integer)
      Open App.Path & "/teste.dat" For Append As #1
      Write #1, KeyAscii
      Close #1

      End Sub


      "The Grim Reaper" <grim_reaper@bt openworld.com> a écrit dans le message
      news: cankh2$msp$1@ti tan.btinternet. com...[color=blue]
      > I've got a section of code.... but it's very long and complicated...
      > Try searching www.planetsourcecode.com for "Keyboard Hook"
      > _______________ _______________ __________
      > The Grim Reaper
      >
      > "Dave" <st_group@yahoo .com> wrote in message
      > news:22e80074.0 406140952.6f15e b61@posting.goo gle.com...[color=green]
      > > Hi, I'm developing a testing application where i have to trap every
      > > keyboard press event. Which windows API can i use to trap all keyboard
      > > events. Thanks in advance - Dave[/color]
      >
      >[/color]


      Comment

      Working...