LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to keep coordiantes from screen to screen

Solved!
Go to solution

Hi 

I am using the attached VI to simulate a mouse click. I noticed that my coordinated change from screen to screen. How do I fix that (matching resolution maybe???)

 

Thanks

0 Kudos
Message 1 of 3
(3,112 Views)

What does your question even mean?

 

Besides posting a VI that is just annoying because it takes control of your mouse, what is your VI supposed to demonstrate?

 

(For anyone who runs this VI with continuous Run mode,  remember that Ctrl-period will need to be used to abort this VI.)

 

 

0 Kudos
Message 2 of 3
(3,096 Views)
Solution
Accepted by topic author dks2710

The coordinates you get are of the entire screen canvas, they are not specific to each monitor. There is a property (App -> Disp.AllMonitors) that gets the resolution of each display - you can probably do some simple maths to translate the coordinates from one screen to another.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 3 of 3
(3,087 Views)