Posted 19 March 2012 - 01:57 PM
Posted 19 March 2012 - 02:40 PM
Neither vi demonstrates windows selection.
I have an API which doesn't expose passing in a particular value to a program. Instead their code does allow a prompt in which you can type the value.
To do this you need to first get the handle to the window, which is what that library helped with. I've found a couple of forum posts on the library, but the links are dead.
Posted 19 March 2012 - 02:46 PM
Posted 19 March 2012 - 03:01 PM
Posted 19 March 2012 - 03:11 PM
To find a window, you can use the FindWindow() Windows API call. To set focus to a window, you can use the SetForegroundWindow() API call. Neither are very difficult to implement in a CLN. If the VI you're looking to target is a VI front panel that you can open a reference to, you can use the NativeWindow property: