LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

simulating GUI events from CVI on other software.

hi all,
in our appication we need to automate some text entry in text boxes and button clicks in another 3rd party application,
please help me by suggesting the functions/ API calls that can do the thing.
 
regards,
satya.
 
0 Kudos
Message 1 of 5
(4,028 Views)
Here's a partial answer, I'll see if I can find more later....

How to imitate keyboard and mouse clicks in C++

http://www.experts-exchange.com/Programming/Misc/Q_20633282.html


Advanced Key and Mouse Recorder 2.80
http://www.download3k.com/System-Utilities/Launchers-Task-Manager-Utilities/Download-Advanced-Key-and-Mouse-Recorder.html

--
To whom it may concern: My alias is also my nickname, I've had it since I was a (very) skinny basketball-playing teen. OK, so I've got a 38 inch waist now, but my hometown friends haven't shaken that appellation for me. I trust that you will someday be OK with that alias, as I have been with that nickname.
0 Kudos
Message 2 of 5
(4,014 Views)
Hey Satya,

In CVI we have native functions for simulating key presses and such within CVI User Interfaces; however, to post to an external interface, the best way to do this is with the Windows SDK.  Here's a KnowledgeBase article that discusses some of the functions that you would use; for a full documentation on these kinds of features, you can look at MSDN to find specific functions.  http://digital.ni.com/public.nsf/allkb/C5EDD606E6083DA1862573010001A5BD?OpenDocument

Additionally, one thing to note is that CVI Full Development Environment comes with the majority of the Windows SDK available in the environment (<CVI Installation Directory>\sdk) in such a way that you can simply include the necessary file in your program.  For CVI Base, only a portion of these functions are available.

Hope this helps!
Thanks,

Andy McRorie
NI R&D
Message 3 of 5
(3,971 Views)
thanks a lot,
 
i also got the same solution, now i can able to simulate the events from a VB program, now i am trying to call thiose dll functions from CVI application, some structures are used in VB program which i am trying to create in the CVI,
help me in finding any example application of using the user32.dll in CVI.
 
in worst case i can easily create a dll with wraper functions those can call the user32.dll functions. and include that in my design.
but its an indirect process, which may take a bit long time.
 
regards
satya.
 
 
 
0 Kudos
Message 4 of 5
(3,952 Views)
Hey satya,

We do not have any examples written for CVI that fake keystrokes or mouse-clicks in external environments.  What I would recommend is either use LoadLibrary (Windows SDK) to access the DLL directly or create a header file from which to derive the import library for the DLL.
Thanks,

Andy McRorie
NI R&D
0 Kudos
Message 5 of 5
(3,930 Views)