Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2006
    Posts
    23

    help!(can't explain in title!)

    hello everybody!

    i have a problem , i wish you can solve it!

    first i want to run a program like "Notepad" and wait for its
    close for rest of the actions:
    ==================================
    result = File.Run("notepad.exe", "", "", SW_SHOWNORMAL, true);
    ==================================
    but my problem is here

    imagine sometimes(not always) notepad.exe will run and for unknown reasons
    you are still in your autorun!
    so you can press Alt+TAB(one time or ....) to change your window


    i can use these actions for this problem
    =========================================
    windows = Window.EnumerateTitles();
    window_name = "Notepad";
    for handle, title in windows do
    result = String.Find(title, window_name, 1, false);
    if (result ~= -1) then
    Window.SetOrder(handle, HWND_TOPMOST);
    end
    end
    =========================================

    but if you remebered first action it's impossible to execute an action
    when your program is waiting for notepad's response!

    it's something i have to add
    i'm already using Page.Timer!
    honestly first code is in PageTimer!

    how can i solve this problem?

    i just know one way!

    1- execute two actions in same time

    can anybody help me?

  2. #2
    Join Date
    Mar 2005
    Posts
    187
    Does this help?
    Code:
    Window.SetOrder(Application.GetWndHandle(), HWND_BOTTOM);
    result = File.Run("notepad.exe", "", "", SW_SHOWNORMAL, true);
    Window.SetOrder(Application.GetWndHandle(),  HWND_TOP);

  3. #3
    Join Date
    Jan 2006
    Posts
    23
    thank u Buffman

    but it's not working

  4. #4
    Join Date
    Mar 2005
    Posts
    187
    Do you know whats causing notepad to open in the background?

    Is your project set to "always on top" ?

  5. #5
    Join Date
    Jan 2006
    Posts
    23
    hello again

    i used notepad.exe for example
    i'm sure problem is from notepad.exe(for example)
    and it happens sometimes not always and i don't know why


    No my project is not "Always on Top"
    and it's Kiosk(for more information)

  6. #6
    Join Date
    Jul 2005
    Posts
    19

    Try this--

    My first Choise is:
    Code:
    Application.Minimize();
    result = File.Run("notepad.exe", "", "", SW_SHOWNORMAL, true);
    Application.Restore();

  7. #7
    Join Date
    Jan 2006
    Posts
    23
    thank u all

    finally i made another program that check for Windows!

Similar Threads

  1. Custom title in the Title Bar...
    By cscorp in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 07-15-2005, 12:28 PM
  2. Example: Animating the Window Title Text
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-13-2004, 01:30 PM
  3. Changing the Title Bar Text
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 02:28 PM
  4. Hiding the Title Bar
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 02:26 PM
  5. Title bar
    By jim in forum AutoPlay Menu Studio 3.0
    Replies: 1
    Last Post: 01-25-2001, 09:50 AM

Posting Permissions

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