[LV 5.01 & Win98] Control a Windows Application

Hi merry wirers!
I'd like to control a windows program from out of a labview VI.
Using DDE (I don't know how do that but there ought to be examples
somewhere ) I could OPEN it allright ... But what I would like
to do is to enter a few numbers into one of the programs forms and
(which are to be found under a certain menu item which would also
have to be selected) and hit the button.
How would that have to be done? Can one sort off imitate key strokes
under labview? I could start the application by the EXEC.VI ...
The scripting host? I've never done anything with that so I'd have
to learn that too. How would one have to start a script from LV?
Use the CSCRIPT.EXE?
Thank You,
Christoph

I assume that you are using RAS. Check the documentation there's a call to disconnect a current connection. I last worked with this stuff a year or so ago and so don't remember the exact details, but it was very easy to do and was in the Windows documentation on RAS.
I do remember that it was all done through the command line because I had to come up with a way to trap the RAS responses and return them to LV.
I know this isn't a complete answer, but I hope it points you in the right direction.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • Control of Windows Applications with Creative IR Rem

    In other threads, Jeremy has referred to controlling Windows applications w/ a Creative IR remote.
    However, he did not identify specifically how to do so, i.e. how to control specific functions w/ in a Windows applications.
    I would like to control Windows Media Player with the Creative IR Remote (RM-500) that I use w/ my Audigy 2 NX. Can I program the keys of the remote to manipulate the controls of Windows Media Player, e.g. to select songs, play lists, and other settings? If so, specifically how?
    Further, what does the "Parameters" and "Start In" inputs in the Window Applications Properties window in the Remote Control and OSD Settings Program permit's How does one use them?
    Thanks.

    Have you installed HP Quick Launch & ENE CIR Receiver from your drivers page?
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4063&lc=en&cc=us&dlc=en&sw_lang=&product=3772...
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Controlling Menu Bars of Windows Applications like IE and Editor with LabVIEW 6

    Hi everybody !
    I'm trying to develop a vi (LabVIEW 6) which controls menu bars in
    Windows Applications (IE, Editor, etc.) like "File-Save As..." or
    "View-Source...". I'm pretty sure I've got to use the ActiveX
    possibilities in LabVIEW, but I haven't been succesful. Any comments
    will help.
    Thanks

    You can use Win32 API to simulate a key-press (e.g. ctrl-S for Save)
    for IE or any window applications, as long as the application has
    short cut for menu items, and active.
    You can use external code (VC, VB, dephi, etc..) to build DLL, CIN, or
    ActiveX, call them in LabVIEW.
    I made "Send Keys.vi" in G Toolbox.
    If the menu item doesn't has a shortcut, you can send a message (use
    spy tool to find out) to the application.
    George Zou
    http://gtoolbox.yeah.net

  • Controling which window is open in application

    Lets say I have an application in which I don't want to be able to open all available windows (options) at once. How can I control this in java? What do I need to do, what methods, code etc. I must use?
    Thank You.

    Ok. Sorry, for the delay in my answer. I was busy since tonight.
    The first couple of messages helped me a lot but what I didn't know how to do is put an event listener for window close event. Since I'm new to Java and I'm using Net Beans IDE I finally figured out how to do it so I'll write it here:
    Right Click on window (JFrame form) -> Events -> Window ->windowClosed
    When the function opens put the code that will control other windows (setVisible), or disable menus on the main JFrame form window (setEnabled).
    The reason I'm not using modal dialogs because this application I'm building is for a school project and our professor showed us only the JFrame forms. We didn't used modal dialogues yet.
    So the problem is solved. I apologize if I caused some harm.
    Thanks again for all answers.

  • Control windows application and enter field

    Hi ,
    I am trying to run a windows application (with labview 2009) and input required values .Attached is the example front panel of the application.The requirement is to input the values,as well as simulate some button presses.
    Hope some one can help.
    Regards,
    Alban Aruja

    Use Microsoft Spy++ to find the handle of the objects on the Window.
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • Control Windows Applications Usage

    Hello,
    I want to know if there is any way that i can know in java when a windows application is launched and when it is closed.
    Thanks in Advance
    Juan Sebasti�n Escobar C.

    by the way, the application i need to know when its closed or open is not my java application, is any windows application (firefox, ie, outlook,...)

  • Problem on using Crystal Report Viewer on windows application ("specified type is not valid ")

    Hi
    I am having problem on using Crystal Report Viewer on one of my windows application.
    I am not sure how to put the Crystal Report Viewer 11 Control onto the tool box.
    I could found a Crystal Report Viewer control on my computer, but it is version 8.5.
    I have also found another one which is Called Crytal ActiveX Report Viewer, i don't think it is the one I can use. As when I try to load a dummy report on to the Crytal ActiveX Report Viewer, It return an error. "specified type is not valid"
    Please see the Code sample below.
    private sub loadReport()
         Dim r as New ReportDocument
         'v is the name of the Crystal ActiveX Report Viewer Control
         r.Load("C:\Report1.rtp")
         v.ReportSource(r) <---It throw error on this line.
    End Sub
    Could you give me some advice about what have I done wrong, How to check if I have set up the Crystal Report Component correctly in my Visual Studio 2005 Standard edition.
    Thanks in advances.
    Many thanks
    Chi

    VS 2005 Standard and Express editions do not come with Crystal Reports; only the Professional and higher editions will have CR bundled. However, I believe you can purchase CR XI R2 Developer and it will give you the components you need to create a VS .NET 2005 application using the Standard edition.
    -MJ

  • BEA / Wily:  Financial Webinar - Achieving Availability, Performance and Control of Java Applications in Financial Services

    Event Date: October 1, 2002 at 11:00 AM Pacific (US), 02:00 PM Eastern (US)
    To register: http://regsvc.placeware.com/?wily-bea1001
    Title: Achieving Availability, Performance and Control of Java Applications
    in Financial Services
    Abstract:
    In today's competitive environment, financial institutions must focus on
    three key business goals:
    a.. Creating a customer-centric enterprise to maximize value to customers
    and increase share of wallet
    b.. Improving transactional efficiency for rapid delivery of the right
    products, services and information to customers and to employees
    c.. Accelerating the decision making process to mitigate risk and improve
    returns.
    BEA and Wily Technology have helped a number of financial services firms
    meet these objectives by delivering high-performance business solutions that
    meet rigorous demands for performance, reliability and scalability.
    On October 1, 2002, Wily Technology and BEA will present a joint Web seminar
    titled "Achieving Availability, Performance and Control of Java Applications
    in Financial Services" with Eric Gudgion, Principal System Architect,
    Technical Solutions Group at BEA and Chris Farrell, Director of Technical
    Marketing at Wily. This Webinar will showcase the many advantages that the
    WebLogic® Enterprise PlatformT and Wily's Introscope® offer financial
    services firms.
    Attendees will learn how WebLogic Server, BEA's unified, simplified and
    extensible solution, provides a robust platform for the development and
    deployment of enterprise Java applications. Some examples of what financial
    institutions can achieve with BEA include Multi-channel Services Delivery,
    Straight-Through Processing, Wealth Management and Cash Management.
    Wily Technology will highlight Introscope's ability to manage financial
    services Java applications by pinpointing component-level performance issues
    in real-time, whether in the application, application server or
    Java-connected back-end systems. Wily's suite of Java application management
    solutions offers a comprehensive platform for achieving 24x7 application
    availability, enhanced performance and better control of IT resources.

    First of all you should check out which products are supported on 64bit :- http://www.oracle.com/technology/products/bi/hyperion-supported-platforms.html
    If you are planning on using windows 64bit EAS then you will have to manually deploy the web application, it cannot be automatically deployed.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Uploaded document via windows application does not show in document library, but as checked out Document

    Hi,
    A windows application uploads document to a document library programatically. Although they get added to the document library but are not shown there. Only when I go to the "Managed file that have no checked in verison" I see all the documents.
    This happens even though I have set "No Versioning" in the library settings. This is probably happening because I have added a few custom columns to the library.
    How can I avoid this situation and get to upload document which can directly be seen on the document library rather than first taking control of the doc and then checking it in?

    Hi,
    When uploading files without filling in some required columns, the files would appear in “Checked Out Files” page.
    To avoid this situation, you can modify that windows application to force users fill in the required columns or just define default values for those columns.
    You can take a look at the link below for more information:
    http://dlairman.wordpress.com/2013/03/13/favorite-sharepoint-feature-this-week-manage-files-which-have-no-checked-in-version/
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Fillable PDF form in windows application

    Hi,
    I need to open a fillable PDF form from my windows application which I am developing in C# 2.0
    I added acropdf.dll from
    "C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\acropdf.dll"
    but this is a reader and I want a fillable form to be opened.
    Can some one help as to how to go about it?
    thanks in advance,
    Kusuma

    Leonard,
    Thanks for your prompt reply.
    I am able to open a fillable form, but I have to disable the some of the menu options like save.
    I am not sure as to how to do this.
    I am using the Adobe activeX control, acropdf.dll.
    thank you,
    kusuma

  • Windows application design methods?

    New to Java I'm having the same problems as others... totally incomprehensible behaviours and jargon. I need to get Windows application made.   Is there a graphical, drag&drop  layout tool in which I can place 'controls' such as buttons, panels, toolbars onto a window then write the code to respond to them? It seems to be commonplace in other systems.

    New to Java I'm having the same problems as others... totally incomprehensible behaviours and jargon. I need to get Windows application made.   Is there a graphical, drag&drop  layout tool in which I can place 'controls' such as buttons, panels, toolbars onto a window then write the code to respond to them? It seems to be commonplace in other systems.
    I suggest that the FIRST skill you learn is how to find information on the internet.
    IMHO that is FAR MORE IMPORTANT than any other single skill you might acquire.
    The NetBeans IDE is a popular one for Java and The Java Tutorials has trails specifically for it.
    "Hello World!" for the NetBeans IDE (The Java™ Tutorials > Getting Started > The "Hello World!" Appli…
    For more advanced application work involving web applications Oracle provides JDeveloper.
    Oracle JDeveloper - Official Home Page
    Both of those products can be freely downloaded.

  • Getting (WHND) of windows applications

    Hi,
    I am trying to develop an application that on windows retrives the handles of a couple of native windows applications, to see if I can remote controll them using the message quea. I am not sure this is the right forum, but the one that seems to match most. I have unsuccesfully tried a couple of other forums.
    Does some one know how to retrieve a handle from another application please?
    Even without using J/Direct please?
    Thanks in advance.
    Michael (fairly inexperienced)

    Getting the HWND of a Win32 application depends largely on your understanding of the Windows architecture. There are two main approaches from a total-solution perspective. BOTH perspectives rely on Java Native Interface API, but they use it differently. After you decide which of these two options to choose, you need to ask yourself, What input parameters can I provide to determine which Window's HWND I need?
    1. Use the JNI, or a third-party library based upon it, to map individual Win32 API calls (like EnumWindows) into a Java class. Then write a Java program that calls these Win32 methods tagged as native in Java. This is the strategy used to implement the Standard Widget Toolkit, by the way...
    2. Use the JNI, but in a different way, to call a more complicated Win32 procedure (rather than just the basics of JNI, which allow you to call a DLL which was written in C.) You could use Njawin, for example, to call into a COM DLL (like a Visual Basic application) which itself provides a more complete solution to the problem. APIs like Jawin, JIntegra, Njawin, and JacobGen will take a complicated Win32 binary module (a DLL, TLB, etc. depending upon which solution we're talking about) and interoperate it with Java, allowing you to retrieve Pure Java return types, call methods synchronously or asynchronously, etc.
    If you are going to be invoking further native functionality after you get the HWND (as you hinted with the message queue), you will probably want to go with Solution 2; coding directly to the Win32 API is not necessary in many situations. If you need to use JAVA as the front end to your program, but you want a lot of native functionality, then:
    1. Write all your native functionality in a high-level, object-oriented, COM-enabled Win32 programming language like Delphi, VB, C++, etc.
    2. Code the main native procedure into a public object inside a COM DLL, and use JacobGen or Njawin to be able to call that method from inside Java.

  • Using ora_ffi to run window application

    Does anyone know how to use ora_ffi package to call a window
    application? ( I did not use host command because I wish to go
    back to the calling form. ) Thanks.
    null

    can write without a package too, in a trigger. This code is with error checking
    DECLARE
    dll_handle ORA_FFI.LIBHANDLETYPE;
    winexec_handle ORA_FFI.FUNCHANDLETYPE;
    vn_ret PLS_INTEGER;
    FUNCTION Runp( handle IN ORA_FFI.FUNCHANDLETYPE,
    cmd IN OUT VARCHAR2,
    disp_mode IN PLS_INTEGER)
    RETURN PLS_INTEGER;
    PRAGMA INTERFACE(C, Runp, 11265);
    BEGIN
    dll_handle := ORA_FFI.REGISTER_LIBRARY(NULL,'kernel32.dll');
    winexec_handle := ORA_FFI.REGISTER_FUNCTION(dll_handle,'WinExec');
    ORA_FFI.REGISTER_RETURN(winexec_handle,ORA_FFI.C_INT);
    ORA_FFI.REGISTER_PARAMETER(winexec_handle,ORA_FFI.C_CHAR_PTR);
    ORA_FFI.REGISTER_PARAMETER(winexec_handle,ORA_FFI.C_INT);
    vn_ret := Runp(winexec_handle,:control.path ,1);
    IF vn_ret = 2 THEN
    MESSAGE('Cannot find file ' &#0124; &#0124; :control.path);
    END IF;
    EXCEPTION WHEN OTHERS THEN
    FOR i IN 1..Tool_Err.NErrors LOOP
    message(Tool_Err.Message);
    Tool_Err.Pop;
    END LOOP;
    END;

  • Html Editor in C# Windows Application

    Hello,
    I am using WebBrowser Control in C# Windows Application,when I change the language from English to Japanese or Chinese,I am unable to type desired language text inside it.
    At the same time when I typed text in our forum text editor I am able to type desired text.
    My aim is to provide same functionality in my windows application html editor.

    Hi Nikhil,
    >> when I change the language from English to Japanese or Chinese,I am unable to type desired language text inside it.
    What do you by “language from English to Japanese or Chinese” and “type desired language text inside it”? Was the language you changed the winfrom language or the system language? Where did you type the text and could you share us a screen shot about this?
    >> My aim is to provide same functionality in my windows application html editor.
    Do you mean you want to create an html editor in your form? If so, I think the link below might be useful to you:
    # tinyMCE HTML Editor in .NET WindowsForms
    http://www.codeproject.com/Articles/27586/tinyMCE-HTML-Editor-in-NET-WindowsForms
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Walkthrough: Displaying Data from Oracle database in a Windows application.

    This article is intended to illustrate one of the most common business scenarios such as displaying data from Oracle database on a form in a Windows application using DataSet objects and .NET Framework Data Provider for Oracle.
    You can read more at http://www.c-sharpcorner.com/UploadFile/john_charles/WalkthroughDisplayingDataOracleWindowsapplication05242007142059PM/WalkthroughDisplayingDataOracleWindowsapplication.aspx
    Enjoy my article.

    hi,
    this is the code :
    public class TableBean {
    Connection con ;
    Statement ps;
    ResultSet rs;
    private List perInfoAll = new ArrayList();
    public List getperInfoAll() {
    int i = 0;
    try
    con = DriverManager.getConnection("url","root","root");
    ps = con.createStatement();
    rs = ps.executeQuery("select * from user");
    while(rs.next()){
    System.out.println(rs.getString(1));
    perInfoAll.add(i,new perInfo(rs.getString(1),rs.getString(2),rs.getString(3)));
    i++;
    catch (Exception e)
    System.out.println("Error Data : " + e.getMessage());
    return perInfoAll;
    public class perInfo {
    String uname;
    String firstName;
    String lastName;
    public perInfo(String firstName,String lastName,String uname) {
    this.uname = uname;
    this.firstName = firstName;
    this.lastName = lastName;
    public String getUname() {
    return uname;
    public String getFirstName() {
    return firstName;
    public String getLastName() {
    return lastName;
    ADF table code:
    <af:table value="#{tableBean.perInfoAll}" var="row"
    binding="#{backing_Display.table1}" id="table1">
    <af:column sortable="false" headerText=""
    align="start">
    <af:outputText value="#{row.firstName"/>//---> Jdeveloper 11g doesn't allow me to use this.. it says firstName is an unknown property..
    </af:column>
    </af:table>
    Please tell me is this the way to do it.. or is it a must to use the DataCollection from the data controls panel...
    Thanks...

Maybe you are looking for