Interrupting and modifying Windows messages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vdraceil
    New Member
    • Jul 2007
    • 236

    Interrupting and modifying Windows messages

    Hi experts,i know that it is possible to intercept windows messages(keyboa rd events,mouse events etc).is it possible to stop those messages from reaching windows and modify them?
    I mean can we intercept keystroke(say 'A' key) and change it to another keystroke(say 'B' key),with key 'A' being pressed not noticed by windows?--i.e.,if the user presses 'A',windows must sense it as 'B'.

    hope i'm clear..
    is this possible with VB6(using any API calls)?
  • leoce7
    New Member
    • Aug 2008
    • 8

    #2
    Refer to KeyPress, KeyDown & KeyUp events ........ lots of info for these and fairly straight forward. I would make a function for the event and pass in as a parameter which key was pressed and then utilize a "Select Case" structure followed by ASCII code identifiers to process which keys were pressed and how to proceed.

    Comment

    • vdraceil
      New Member
      • Jul 2007
      • 236

      #3
      Originally posted by leoce7
      Refer to KeyPress, KeyDown & KeyUp events ........ lots of info for these and fairly straight forward. I would make a function for the event and pass in as a parameter which key was pressed and then utilize a "Select Case" structure followed by ASCII code identifiers to process which keys were pressed and how to proceed.
      I dont think u got my point,i know how to handle those events-those events will occur only when ur form has the focus!!...what i want to do is to create an application that runs in the background and intercepts and modify all win messages like keystokes and mouse clicks.
      intercepting is quite easy with a few API calls..modifyin g is what i'm unable to do

      Comment

      Working...