473,395 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Interrupting and modifying Windows messages

vdraceil
236 100+
Hi experts,i know that it is possible to intercept windows messages(keyboard 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)?
Aug 13 '08 #1
2 939
leoce7
8
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.
Aug 21 '08 #2
vdraceil
236 100+
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..modifying is what i'm unable to do
Aug 23 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: J. W. McCall | last post by:
I'm working on a MUD server and I have a thread that gets keyboard input so that you can enter commands from the command line while it's in its main server loop. Everything works fine except that...
0
by: piyush | last post by:
Sorry for repeated posting but I couldnt get things right/completely in the first post. I am in the process of deciding the IPC mechanisms to use for communication between 1) An application...
0
by: piyush | last post by:
Sorry for repeated posts, I couldnt get things right and complete in the previous post. I am in the process of deciding the IPC mechanisms to use for communication between 1) An application...
14
by: Brian Keating EI9FXB | last post by:
I wonder can anyone reccomment a solution to this problem. Let me explain, I've services running on my system, my application receives diagnostic messages from these services, what i want to do...
8
by: Brian Keating EI9FXB | last post by:
Would I be correct in saying that the only way to get a user message into a Windows form would be to use P/Invoke with Message? Of is there some part of the .NET API that I am totally un aware...
2
by: Randall Powell | last post by:
I am in the process of developing a Windows Service which will: (1) monitor multiple network shares; (2) marshal text file transfers into an SQL Server 2000 instance; and (3) provide messaging...
2
by: writeOnceDebugEverywhere() | last post by:
- I believe it is a simple question: my onclick event for the button looks as follows: ...... // reference to the <div id="messages" : var mDiv=document.getElementById('messages');...
8
by: andreas | last post by:
When I do a long calculation is there a possibility to interrupt this calculation properly? For i as integer = 1 to 100000000 do something next and retrieve the i at the moment of the...
13
by: michael sorens | last post by:
I have a lengthy sequence of operations that are executed and reported on in a status window in a Windows Form application. Some work is done by background threads but other work is not. I am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.