Jump to content
Sign in to follow this  
shannonlf1

Labview WINLIST NOT working

Recommended Posts

shannonlf1

My goal is to get the WINDOW NAMES (string data array), task list application items, for all open applications, so I can programmatically close any I don’t want running. I would think using what I have attached should work fine converting the variant data to string. However, as shown, only the window name for the calling vi is returned. Maybe AUTOIT has a problem because the number of windows detected (returned array[0][0]) always seems to show 1 no matter how many applications I am running. I tried anything and everything I could find on NI site, but no solution yet. BTW, now windows are hidden, etc.

WOEKING VI WOULD BE FANTASTIC!!!!

If no title and text is given then all top-level windows are returned.

The array returned is two-dimensional and is made up as follows:

$array[0][0] = Number of windows returned

$array[1][0] = 1st window title

$array[1][1] = 1st window handle (HWND)

...

$array[n][0] = nth window title

$array[n][1] = nth window handle (HWND)

I know calls to LVWUTIL32.DLL works fine but I would really like to use Autoit and understand what the problem is. As and option, can anyone provide working vi that calls user32.dll directly to get the WINDOW NAMES (string data array) for all open applications.

Edited by shannonlf1

Share this post


Link to post
Share on other sites
Richard Robertson

Is this running in a sandbox? Sandboxed applications usually aren't allowed to access other applications.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.