LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

user32.dll call API function

user32.dll          API function: mouse_event
for example:
Public Const MOUSEEVENTF_LEFTDOWN = &H2
Public Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Private Sub Timer1_Timer()
 

帖子被在水一方在01-06-2006 06:04 AM时编辑过了

帖子被在水一方在01-06-2006 06:08 AM时编辑过了

0 Kudos
Message 1 of 4
(5,513 Views)
SetCursorPos 300, 20
mouse_event MOUSEEVENTF_LEFTDOWN, 0&, 0&, 0&, 0&
End Sub
How can I use "call library function node" in labview to realize "mouse_event"
Thanks!
0 Kudos
Message 2 of 4
(5,497 Views)
This can be found in quite a few places in this site (example) and is actually a fairly simple call. The numbers for the flags come from the header file where the definitions are made.
More information on working with DLLs can be found here.
 
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).

___________________
Try to take over the world!
Message 3 of 4
(5,475 Views)
Many thanks for your answer
0 Kudos
Message 4 of 4
(5,460 Views)