From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-29-2009 11:25 PM
I want to send commands to other windows applications which are running on the background of labview.
I have an option through "send key ", but the application needs to be active window. But I don't want the application to be an active window.
I think I need to get the handler for that application so that I can send commands to a particular application which ever I want to, but cannot find a way to do so.
06-30-2009 12:34 AM
Hi kpraveen,
you can use the user32.dll functions to get the handle and to send messages.
See this link:
http://msdn.microsoft.com/en-us/library/ms633499(VS.85).aspx
and this
http://forums.ni.com/ni/board/message?board.id=170&message.id=338001&query.id=449931#M338001
Mike
06-30-2009 01:01 AM
User32 LLBS are in LV4.0 version. I need them in lv 8.5.
06-30-2009 01:50 AM
06-30-2009 11:11 AM
i was able to control the application if the window was "active window" for me. But i want to send commands even if the window is not an acitve window for me.
06-30-2009 12:25 PM
i did also try FindwindowA() (user32.dll) and postmessageA() but was not sucessfull. The windows handle from find window was always zero for me.
I took reference from below thread and msdn to use findwindow and postmessage functions.
http://forums.ni.com/ni/board/message?board.id=170&message.id=15281&query.id=519324#M15281
06-30-2009 07:18 PM
Possibly a program called macro express could do this. It has an option to create macro commands that work only on certain windows and programs. Look at the macro scope options. Global, Global except, window specific, Program specific. I'm not 100% sure these will run on minimized windows, but it is a fairly cheap program around $60.
07-05-2009 01:18 AM
Still i am not able to send commands .........
07-05-2009 01:34 AM
Hi kpraveen,
see this link, inside off the zip file you'll find a working "FindWindowA" function.
Which commands do you want to send to your application?
Mike
07-05-2009 11:30 PM