I'm trying to do some VI scripting for automated documentation generation. Part of this involves setting up the front panel in a certain configuration and taking a screenshot (using FP.GetImage and Write PNG File).
I'd like to programatically make the drop down menu show for a Text Ring, and then capture a screenshot of this.
The ideal output may look something like this:
This doesn't seem to be an available method or property on the ring control, so if that's not possible, perhaps the documentation generation won't be entirely automated, and will be coordinated with the user through some sort of timed sequence of front panel interactions.
You could also 'fake' this:
+ use VI server to get the strings.
+ use the strings to make a picture that exactly looks like the drop down.
+ put the fake image over your screenshot.
That will give you a screenshot of the activated ring\enum. There will be corner cases, like very long lists, controls at the edge of the screen, etc. But covering most situations will not be too hard.
It might actually be less clumsy than the simulating the click.