LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

monitor size will be a problem?

Solved!
Go to solution

Hi Mike

Well i want to use mouse_event function & also couple of other functions, like getwindowrect, keybd_event, etc..

Which LabView Input VI's are u suggesting mike?

 

Regards,

Rajan

Thanks & Regards,
Rajan
0 Kudos
Message 11 of 27
(1,392 Views)

Hi Mike

Well i want to use mouse_event function & also couple of other functions, like getwindowrect, keybd_event, etc..

Which LabView Input VI's are u suggesting mike?

& what is this "depends"  Smiley Surprised

Regards,

Rajan

Thanks & Regards,
Rajan
0 Kudos
Message 12 of 27
(1,390 Views)

Hi Rajan,

there is an existing library for some of these functions. If you need more, you can use the "call library function node" to use the exported dll functions. Depends is a program with which you can read all exported function of a dll, but LabView do it as well. Smiley Happy

Mike

Message 13 of 27
(1,378 Views)
Hi Mike
 
labview can read functions of a dll. But how can we get the parameters of a particular function & there valid values.
 
For example, let us take the case of mouse_event function in user32.dll
 
http://msdn.microsoft.com/en-us/library/aa932376.aspx  << see this link of the documentation of this function.
 
Now one parameter specified in this function is "dwFlags"  .. now how do we know that what value to input to this parameter for generating an event like >> leftup, leftdown or rightup, etc
 
 
Regards,
Rajan
Thanks & Regards,
Rajan
0 Kudos
Message 14 of 27
(1,352 Views)

Dear rajan,

If you give 0 as input to dwFlags, it will select MOUSEEVENTF_ABSOLUTE  and

if you give 1 as input to dwFlags, it will select MOUSEEVENTF_MOVE

and so on.......

Hope it helps!

Message 15 of 27
(1,345 Views)

Dear mathan

well i also tought same way initially, but it doesntt work that way..

2 means leftdown

4 means leftup..

 

Thanks & Regards,

Rajan

Thanks & Regards,
Rajan
0 Kudos
Message 16 of 27
(1,340 Views)
could you please post your vi or screenshot please
 
Mathan
Message 17 of 27
(1,337 Views)
Hi Mathan
 
I am attaching a example vi.
 
Regards,
Rajan
Thanks & Regards,
Rajan
0 Kudos
Message 18 of 27
(1,334 Views)

Hi Rajan,

you will find these information also in the internet. Here are the values for dwFlag for mouse event. It seems like they use one bit for every function. Smiley Wink

Hope it helps
Mike



Message Edited by MikeS81 on 07-28-2008 12:44 PM
Message 19 of 27
(1,326 Views)
Hey Mike
 
where did u find this .. can u please tell me the site name ....
 
Thanks & Regards,
Rajan
Thanks & Regards,
Rajan
0 Kudos
Message 20 of 27
(1,317 Views)