Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2007
    Posts
    2

    External Application not SW_MAXIMIZE

    i am totally new to setup factory 7
    i am trying to run amon.exe in maximized state from my setup.exe.

    my code is :

    result1 = File.Run ("%ProgramFilesFolder%\\CA\\HIPS Toolkit Test Harness\\amon.exe", "","%ProgramFilesFolder%\\CA\\HIPS Toolkit Test Harness",
    SW_MAXIMIZE, false);
    this starts amon.exe but in normal state, not in SW_MAXIMIZE

    so i did this
    result1 = File.Run("%ProgramFilesFolder%\\CA\\HIPS Toolkit Test Harness\\amon.exe", "", "%ProgramFilesFolder%\\CA\\HIPS Toolkit Test Harness", SW_SHOWNORMAL, false);

    handle = Application.GetWndHandle(SessionVar.Expand("%Progr amFilesFolder%\\CA\\HIPS Toolkit Test Harness\\amon.exe"))

    Window.Maximize(handle);
    please tell me what did i do wrong ?

  2. #2
    Join Date
    Dec 2007
    Posts
    2
    amon.exe start in normal start but not in SW_MAXIMIZE from the second code snippet ...

    how do i control external windows from setup.exe, specially SW_MAXIMIZE and SW_MINIMIZE

  3. #3
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Application.GetWndHandle() is used to get the handle of the calling application which is in this case the Setup Factory runtime.

    The SW_MAXIMIZE command should work. Are you using the latest version of Setup Factory?

    Adam Kapilik

Similar Threads

  1. Exit an external application
    By rhosk in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 09-16-2003, 06:54 AM
  2. HOWTO: Distribute an AutoPlay Application with Setup Factory 6.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-25-2002, 02:33 PM
  3. INFO: Dynamically Resizing an Application at Runtime
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-21-2002, 02:23 PM
  4. HOWTO: Make an AutoPlay Application Expire
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-09-2002, 10:10 AM
  5. INFO: How to Set the Default Application Directory
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 12:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts