LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the name of the window under the mouse cursor

Hello All
Is there a way to receive a window name of the window under the mouse cursor? All windows in interest are LV windows, and all of them works separatelly. After the mouse click I would like to get the window name.

The reaso nfor asking is that I have a sequence of setting of different windows. I need to create a doccumentation and I need all windows front panels send to MS Word.

I thought that my application can read the window names and by using the LVwutil32 get the front pannels of the windows and send them to MS Word.

Problem is that in the library I do not have a function like "Window on Top.vi" or something like that.

Anyways, the problem for me now is how to get an active (most top) window
name?

thanks
Pawel
0 Kudos
Message 1 of 6
(3,499 Views)
Hi Pawel,

I found the following VI in my "trunk" that I made a while ago (written in LV6.0.2). It returns the active VI (and thereby) the Window name. Mayby you have some use of it, but I believe this is what you want. Only works for Windows though.

Regards,

Mattias Ericsson
Endevo, Sweden
0 Kudos
Message 2 of 6
(3,498 Views)
Hi Mattias
Thanks a lot, that was 100% what I wanted.
BTW, Endevo is the company who made GOOP, write? I can tell one thing, it saved my life. I simply fall in love with GOOP. I have some remarks, though, but generally, this software needs award.
Is there a newer version that 2.0?

regards
Pawel
0 Kudos
Message 3 of 6
(3,497 Views)
Hi,

Yes, Endevo is the developer of GOOP. This is just recently a new GOOP release called GOOP2 which includes inheritance (attributes and methods). It is a totally new implementation of GOOP. Last year Endevo launched the GOOP Wizard 2.0, but this was only a new tool for editing "old" GOOP 1, classes. The product called "GOOP Inheritance Toolkit" consist of the new GOOP2 and GOOP Wizard 3.0. The new Wizard 3.0 may still edit and create "old" GOOP1 classes as well. An application may very well consist of GOOP1 and GOOP2 classes mixed.

Please visit http://www.endevo.se/default.asp?lang=eng (click on Product) for more info, white papers, downloads and demos. There will also be a demonstration and presentation on NI Week 2003.

Regards
,
Mattias
0 Kudos
Message 4 of 6
(3,498 Views)
Hi Mattias

Thanks for the info.

regards
Pawel;
0 Kudos
Message 5 of 6
(3,497 Views)
The example is very good. Is there a way to get all the window names like the example? The WinUtilities vi only gives you the top level window names and if you run LabVIEW, you will not get the correct LabVIEW window names.
 
Thanks in advance.
 
JimSmiley Mad
0 Kudos
Message 6 of 6
(3,374 Views)