mr-es335 Posted January 31 Posted January 31 (edited) Good day, In my script, when I am working with new applications, I generally prefer to develop a script that both launches-and-then-exists that application. However, oneĀ application that I employ - entitled, Guitar Rig 5"...an amp sim|modeler application...on first launch Guitar Rig 5 [GR5] performs what is referred to as "Database Scan". I am unable to determine what that process [At A] is via "Au3Info"...and I am wondering if there is an alternative method for doing so? expandcollapse popup; ----------------------------------------------- #include <AutoItConstants.au3> ; ----------------------------------------------- Opt("MustDeclareVars", 1) ; ----------------------------------------------- LaunchTTA() LaunchSAC() LaunchSAW() ExitSAW() ExitSAC() LaunchTTA() ; ----------------------------------------------- Func LaunchTTA() Local $sSrcPath = "C:\Windows\toggleTaskbarAutohide.exe" ; ----------------------------------------------- Run($sSrcPath) Sleep(100) EndFunc ;==>LaunchTTA ; ----------------------------------------------- Func LaunchSAC() Local $sSrcPath = "C:\RML\SAC\SAC64.exe" ; ----------------------------------------------- Run($sSrcPath) WinWait("[CLASS:SAC_MAIN]", "") Sleep(500) MouseClick($MOUSE_CLICK_LEFT, 27, 56, 1, 0) Sleep(1500) EndFunc ;==>LaunchSAC ; ----------------------------------------------- Func LaunchSAW() Local $sSrcPath = "C:\RML\SAW\SAWStudio64.exe" ; ----------------------------------------------- Run($sSrcPath) WinWait("[CLASS:SAWSTUDIO_MAIN]", "") MouseMove(959, 576, 0) Sleep(1500) EndFunc ;==>LaunchSAW ; ----------------------------------------------- Func ExitSAW() Local $sSrcPath1a = "C:\RML\SAW\SAWStudio64.exe" Local $sSrcPath1b = "SAWStudio64.exe" Local $PID = 0 ; ----------------------------------------------- ProcessClose($sSrcPath1a) $PID = ProcessExists($sSrcPath1b) If $PID Then ProcessClose($PID) EndFunc ;==>ExitSAW ; ----------------------------------------------- Func ExitSAC() Local $sSrcPath1a = "C:\RML\SAC\SAC64.exe" Local $sSrcPath1b = "SAC64.exe" Local $PID = 0 ; ----------------------------------------------- ProcessClose($sSrcPath1a) $PID = ProcessExists($sSrcPath1b) If $PID Then ProcessClose($PID) EndFunc ;==>ExitSAC ; ----------------------------------------------- Any assistance in this matter would be greatly appreciated! Edited January 31 by mr-es335 mr-es335 Sentinel Music Studios
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now