Jump to content

Windows Messaging 'Register' and 'Capture'


alukindo

Recommended Posts

Hi:

NI Website has VIs for registering Standard WIndows Messages and capturing them via polling a Message Queue Loop. Messages such as Mouse Move, Mouse Down etc are converted to thier known integer equivalents. Then a windows message queue is pollled to read those messages when broadcast by another application.

In my case I need to regsiter 'Custom Messages' and listen or poll them in the same manner in LabVIEW. The challenge is how to derive the message unique integer values.

Does anyone have a warpper for this?

I am not a C++ programmer by any stretch and can only use LabVIEW.

Here is the link to the LabVIEW VIs for windows message registration an polling but only for standard windows messages.

http://zone.ni.com/devzone/cda/epd/p/id/4394

Regards

Anthony L.

Link to comment

OK:

I researched further and determined that the user32.dll has the function to assign Message Register integers for listening-to. I have attached a tip doc on how this can be done.

Perhaps this will benefit others looking on how to register custom window messages for listening via the Windows Message queue VIs.

Anthony L.

post-1804-0-91261300-1355598406_thumb.pn

Edited by alukindo
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.