Solved

Accessing the message Queue??

Posted on 1998-12-02
7
184 Views
Last Modified: 2013-11-20
I want to access the message queue in windows95 so that I can see when:
1) the screen image has been updated
2) a mouse action has been performed
3) a keyboard action has been performed

and perform specific actions depending on the item in the message queue

Any ideas???
0
Comment
Question by:ross_nolan
  • 4
  • 3
7 Comments
 

Accepted Solution

by:
gulliver earned 60 total points
Comment Utility
Very simple, if you use Visual C++ you have a very usefull tool which is called "Spy++" and you can see all the messages of Windows95 on any window.

After you can trap all this messages with the "PretransalteMessage" of your app.

Good luck
0
 

Author Comment

by:ross_nolan
Comment Utility
How can I trap the messages in Spy++ in VC??
0
 

Expert Comment

by:gulliver
Comment Utility
Very simple,In the menu Spy, you have the option MessagesIn the dialog window take the circle with your mouse and put it on the window you want to trap Messages.After you can filter the messages you show
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:ross_nolan
Comment Utility
while you are going in the right direction I am not sure you understand what exactly I am looking to do.

What I am proposing to do is to Capture certain messages in the queue in an MFC application and perform actions based on these messages.

Any further help would be appriciated

cheers
0
 

Expert Comment

by:gulliver
Comment Utility
OK,

In your class Wizzard select the Class and Add the PreTranslateMessage Function
After you can test every message like this,
if (pMsg->Message==WM_KEYDOWN)
{

}
Is it OK ?

0
 

Author Comment

by:ross_nolan
Comment Utility
My problem is "how do I make pMsg point to all the messages generated by the computer", so that I can see when the screen has been changed or the mouse used, by an MFC application running in the background.
0
 

Author Comment

by:ross_nolan
Comment Utility
I will give you the points because the first answer you gave me pointed me in the right direction for what I wanted to do.
Which is by the way:

create a Hook DLL that will watch all the system messages and any that I wish to process will be sent to appropriate in my program.

all the best
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now