Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jul 2005
    Los Angeles, Ca

    Checking if AUT is already running?

    I'm sure somebody knows this...

    Does anyone know the best way to check if an AUT, like notepad for instance, is already running so you don't spawn multiple processes each time you launch a script?

  2. #2

    Re: Checking if AUT is already running?

    If you know the title of the window you want to find, you can use the Windows API 'FindWindow' for this purpose

    Try this thread

    More information can be found on the MSDN site.

  3. #3
    Senior Member
    Join Date
    Mar 2003
    Austin, TX, USA

    Re: Checking if AUT is already running?

    Always do a search before posting. I searched for 'exists' in this (Robot) forum and found many matches. Here's one:


    If that doesn't work, get creative and use 'FileCopy' then 'kill' command to delete the exe. If it works, the app is not running; copy it back and keep going. If the kill (delete) command fails, the app is running. You'd have to play around with OnError and other error handling routines to get this working.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 07:39 PM.

Copyright BetaSoft Inc.