Jump to content

how to set up VI to receive Window Message sent by another software


Recommended Posts

Hello, everyone. I am just starting to use Labview and programme with Window Message.

I'd like to write a VI which can receive WM_USER sent by another software. So I download a library: Windows Message Queue and a DLL file: Windows Messages for LabVIEW. If WM is something like WM_LBUTTONDOWN, the VI works. However, I still cannot receive WM from 3rd party software, though I can see the WM using Microsoft Spy++. Then I modify the subVI in the library - Create Windows Message Queue.vi as follows: give the name of the 3rd party software to the "VI Name" in the front panel. But the VI find undefined errors when I run it.

Thanks for your help!

windows_messaging_que.zip

Communication Test.vi

Link to comment

I'm not an expert on Windows messages, but I have successfully used this library to receive messages from another program. In my case, I had to provide the third-party application with the Window Handle of my VI (through an ActiveX call) so that it would know where to send the messages. It sounds like you need to do something similar - find a way to tell your third-party application where to send events. You should not need to modify the windows message library. If you're trying to intercept events that would normally go to the third-party application, I have no idea how you could do that.

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.