From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Messages in LabView

Hello, has anyone ever tried using
Windows Messages under LabView.
I need to exchange Messages with
another application.

Urgent!!!!
Thanks,
Yuval Yohai
0 Kudos
Message 1 of 2
(2,654 Views)
"Yuval Yohai" wrote:
>
>Hello, has anyone ever tried using
>Windows Messages under LabView.
>I need to exchange Messages with
>another application.
>
>Urgent!!!!

To send a window message to another
application is easy. Just use "Send
Message" (WinAPI). If you don't know
how to use WinAPI, you can use my
"Send Message.vi" (included in G
Toolbox). Download it from my site.

However, if you want to intercept
the message which is sent to LabVIEW,
it's a little bit complicated. Basiclly,
you have to set a hook. There is an
example at NI site, "Window Message
Queue", which does this.


George Zou
http://gtoolbox.topcool.net
http://rtprint.yeah.net
0 Kudos
Message 2 of 2
(2,654 Views)