05-08-2008 02:37 AM
05-08-2008 05:15 AM
Dave,
First, thank for your help. ![]()
What you VI does is to bring/move the mouse cursor to the control that is referenced.
What I want is to make my a VI detect the default highlighted button in a dialog window & move/bring the mouse cursor over it automatically, not by wiring its reference manually.
Is there any way to achieve what I wish to?
05-08-2008 06:54 AM
Hi partha,
here is an example for you. I saved it for LV8.0 so there are some errors in it, because the dll node in 8.0 has no error in and out connector. If you remove the errors it works for you. First it gets the foreground window and then the control with the focus. To make what you want, you have to insert the function "GetWindowRect" to get the position of the control with the focus and then the mouse move command.
Hope it helps.
Mike