LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

monitor size will be a problem?

Solved!
Go to solution
Dear all,
 
Am developing a application using mouse-events. I generate some click events on some particular controls automatically. So if i use that particular application in some other system with a different monitor size will there be any problem?
 
Earlier response is much appreciated.
 
Thanks,
Mathan
Message 1 of 27
(3,710 Views)

Hi mathan,

i think it depends on how you have designed your program. With fixed x and y values it could be a problem.

Mike

Message 2 of 27
(3,689 Views)

Hai mike,

Yes i have used user32.dll (mouse_event function) and specific x,y coordinates to generate click events on controls. So it seems it will definitely be a problem? Any remedies?

Thanks,

Mathan

Message 3 of 27
(3,685 Views)

Hi mathan,

you can get the x, y coordinate of the specified window and add the position of the object in this window to the window coordinates. I think this should work with every monitor.

Mike

Message 4 of 27
(3,672 Views)

Hai mike,

Thanks. Could u please give a sample structure for that case.

Mathan

Message 5 of 27
(3,656 Views)
Solution
Accepted by topic author Mathan

Hi mathan,

with the user32.dll function "GetWindowRect" you can read the position of the window, on which you want create an event. To this position you can add the position to where you want to move the mouse. The attached example shows hao to get the coordinate of the specified window.

Why do you use the x and y positions? You can send a key pressed to a specified button without moving the mouse to this position.

Mike

Message 6 of 27
(3,645 Views)
Hai mike,
 
Thanks. But, that's not at all a problem.

Why do you use the x and y positions? You can send a key pressed to a specified button without moving the mouse to this position.

Mike


I can send a key press to the specific button without moving the mouse to its position, but the thing is i have to generate the click action not in LabVIEW but with other window application. That's why am using x and y positions eventhough its not efficient.
 
Mathan
Message 7 of 27
(3,638 Views)

Hi mathan,

what is the problem? Smiley Happy

Mike

Message 8 of 27
(3,631 Views)

Hi Guys

I need to use user32.dll for controlling my mouse events. I am able to call the dll & specific function of using "Call Library Function Node".

My Problem is that i am not able to get any information on what is the particular prototypes of specific Functions.

Where can i find all prototypes of all functions in a particular dll? I already tried http://msdn.microsoft.com/en-us/library/.

 

Thanks & Regards,
Rajan
0 Kudos
Message 9 of 27
(3,503 Views)

Hi Rajan_77,

you can use "depends" or the LabView function to get all exported dll functions. If you have them, you find a lot of information with google or in msdn.
Which function do you want to use from the user32.dll? For moue events, you can also use the input vi´s from LabView.

Hope it helps.
Mike

Message 10 of 27
(3,493 Views)