LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to bring mouse cursor to the default button of a dialog, like in windows

Anybody know how to achieve this in LV? Smiley Happy
 
Please see the attached screenshot.
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 1 of 13
(4,102 Views)
Dear partha,Smiley Happy
 
1) You can be able to trace out the location of the button
2) You can be able to move the cursor to that location
3) You can be able to automatically generate a click on that button
 
Use user32.dll to achieve all this. when u use it in CLN(Call Library Node), u can c functions 4 that.
 
Try and ask if further help needed!!!!!Smiley Surprised
 
Thanks,Smiley Wink
Mathan
0 Kudos
Message 2 of 13
(4,096 Views)
Can you tell me the function name & its prototype?
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 3 of 13
(4,094 Views)
0 Kudos
Message 4 of 13
(4,088 Views)
Your VI does not do what I want to... Smiley Sad
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 5 of 13
(4,083 Views)

Dear partha,

Initially you have to use getcursorpos function to know where is ur button resides and then use setcursorpos and mouse_event functions as necessary.

[Note: If you use the vi developed by this method and if you use it in a different system with diferent monitor size, then it will be a problem.]

Thanks,

Mathan

0 Kudos
Message 6 of 13
(4,073 Views)
Hi partha,
is it a dialog which you show from your program? If yes you can use the function mathan mentioned and set the cursor position.
Mike
Message 7 of 13
(4,066 Views)
Hi Partha,
I made this little VI for you.
greets, Dave
Greets, Dave
Message 8 of 13
(4,061 Views)

Dear daveTW,

Please attach all the subvi's.

Thanks,

Mathan

0 Kudos
Message 9 of 13
(4,053 Views)

Hi Mike,

It is the screenshot of the Mouse Settings window in the Control Panel of Windows; not related to my project. Smiley Happy

Hi Dave,

When I tried to open your VI, some sub-VIs are missing; so, I m not able to go thro' your code to understand it. Smiley Sad

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 10 of 13
(4,051 Views)