Jump to content

Recommended Posts

Posted (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?

sample_b.png

; -----------------------------------------------
#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 by mr-es335

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...