Jump to content

Recommended Posts


I am tinkering and trying to get my head around a few concepts. The issue that is bugging me is how to close Audacity after opening it. I used auto reveal and Autoit wininfo to get information with concerns to Audacity when it was opened (no file loaded) it just had a reference to the window as Audacity. So I presumed that winClose ("Audacity","") would close the Audacity program. It didn't. I then did the following. With Know luck can anyone help.

For $i = Asc('a') to Asc('z')

If FileExists(Chr($i) & ":\Program Files\audacity\") Then Run(Chr($i) & ":\Program Files\audacity\audacity.exe")





Link to post
Share on other sites


ProcessClose("audacity.exe") assuming that is the name of the process

Works, but I prefer to use PID:

Opt("WinTitleMatchMode", 4)

$sAudacity = "C:\Program Files\Audacity\audacity.exe"

If Not WinExists("[CLASS:wxWindowClass]") Then

$hAudacity = WinGetHandle("[CLASS:wxWindowClass]")
$pidAudacity = WinGetProcess($hAudacity)
ConsoleWrite("Debug: $pidAudacity = " & $pidAudacity & @LF)



And I love Audacity!


Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...