1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wait for GUI app to finish

Discussion in 'Support' started by yakir, Feb 6, 2012.

  1. yakir

    Joined:
    May 29, 2008
    Messages:
    61
    Likes Received:
    0
    What could be causing tcc to wait for a GUI app (e.g. notepad++) to finish?
    If the app is already open it will switch to it and return.
    If it is not open it will launch it and wait til it is closed.

    Cmd behaves OK.
    Yes, I have checked that "Wait for external apps" is not checked!
     
  2. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    Is this when you start the application from the TCC command line, or from a batch file? The default for batch files, regardless of the "Wait for external apps" setting, is to wait. See the topic "Waiting for Applications to Finish". BTW - what version / build is your TCC?
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,859
    Likes Received:
    83
    TCC will never wait at the command line unless you've set "Wait for external apps", or you run the program with START /WAIT.

    TCC will always wait in a batch file unless you use START (without /WAIT).
     
  4. pizzaman

    Joined:
    Oct 24, 2011
    Messages:
    53
    Likes Received:
    0
    I had that problem with one program when I converted to Win 7 and TCC 64-bit. I had always called a graphics viewer (PMVIEW.EXE) via an alias because it was not in the PATH. Calling the 32-bit version of PMVIEW worked under XP, but calling the 64-bit version of PMVIEW with 64-bit TCC did not return to the prompt until the viewer was closed.

    The fix was simple. I changed the alias to use START and it works as expected.

    For some reason I don't understand, PMVIEW seems to be in the PATH now, but if I just enter "pmview" at the TCC prompt, it waits. I always use the alias anyway so that doesn't matter to me.
     

Share This Page