04-02-2008 11:59 PM
Solved! Go to Solution.
04-03-2008 01:17 AM
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
04-03-2008 01:23 AM
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
04-03-2008 01:50 AM
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
04-03-2008 03:39 AM
Hai mike,
Thanks. Could u please give a sample structure for that case.
Mathan
04-03-2008 04:43 AM
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
04-03-2008 04:57 AM
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
04-03-2008 05:51 AM
Hi mathan,
what is the problem?
Mike
07-14-2008 06:22 AM
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/.
07-14-2008 06:58 AM
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