Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

Accessing the message Queue??

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
ross_nolan
Asked:
ross_nolan
  • 4
  • 3
1 Solution
 
gulliverCommented:
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
 
ross_nolanAuthor Commented:
How can I trap the messages in Spy++ in VC??
0
 
gulliverCommented:
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
ross_nolanAuthor Commented:
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
 
gulliverCommented:
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
 
ross_nolanAuthor Commented:
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
 
ross_nolanAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now