Jump to content

Recommended Posts

Posted

Good day,

Firstly, "All the very best to all Forum members!!!"

Secondly, I have a minor - yet, rather frustrating situation with the re-positioning of a window. In the following script, I am selecting 4 audio plug-ins [VST's], and then, once launched, re-positioning the plug-in window - with most of the code is very similar in syntax.

However, my issue is with the 2nd plug-in...the ValhallaVIntageVerb. For whatever reason, the plug-in window simply does not re-position!! Interesting, if I repeat the script, the ValhallaVIntageVerb plug-in DOES get re-positioned!?!? I have adjusted the various "timeouts" - with no apparent success!  Thus, I would appreciate any-and-all comments and/or suggestions here!

Spoiler
; -----------------------------------------------
#include <AutoItConstants.au3>
; -----------------------------------------------
Opt("MustDeclareVars", 1)
; -----------------------------------------------
Global $iEMBWidth = 1000
Global $iTimeOut = 100
Global $iPITimeOut = 250
Global $iASTimeOut = 500
Global $iPauseTime = 1500
; ---------------------
Global $hSAC_MAIN = "[CLASS:SAC_MAIN]"
Global $hSAC_WIDEMIXER = "[CLASS:SAC_WIDEMIXER]"
Global $hStudio_VstPropertyPage = "[CLASS:Studio_VstPropertyPage]"
; -----------------------------------------------
P5SAC()
; -----------------------------------------------
Func P5SAC()
    InvokeSACF11View()
    ConfigureEmceePlugIn()
    ConfigureNStrungGuitarPlugIn()
    ConfigureSStrungGuitarPlugIn()
    ConfigureElectricGuitarPlugIn()
EndFunc   ;==>P5SAC
; -----------------------------------------------
Func InvokeSACF11View()
    WinActivate($hSAC_MAIN) ; REQUIRED!!
    ; -----------------------------------------------
    ; Select F11 View
    Send("{F11}")
    ; -----------------------------------------------
    ; Ensure I-01 is selected
    Send("{HOME}")
EndFunc   ;==>InvokeSACF11View
; -----------------------------------------------
Func ConfigureEmceePlugIn()
    WinActivate($hSAC_WIDEMIXER) ; REQUIRED!!
    ; -----------------------------------------------
    ; For I-01 > Select: EQ
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 254, 298, 1, 0)
    ; ---------------------
    ; For FX Choices > Select: Plug-In [ValhallaPlate]
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 536, 982, 1, 0)
    ; ---------------------
    ; For FX Pre Patches > Select: Add
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 678, 840, 1, 0)
    ; ---------------------
    ; Position: Plug-In
    Sleep($iPITimeOut)
    WinMove($hStudio_VstPropertyPage, "", 875, 80, 831, 480)
    ; ---------------------
    ; Exit: Plug-In
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 1494, 92, 1, 0)
EndFunc   ;==>ConfigureEmceePlugIn
; -----------------------------------------------
Func ConfigureNStrungGuitarPlugIn()
    WinActivate($hSAC_WIDEMIXER) ; REQUIRED!!
    ; -----------------------------------------------
    ; Select: I-02
    Sleep($iTimeOut)
    Send("{RIGHT}")
    ; ---------------------
    ; For I-02 > Select: EQ
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 254, 298, 1, 0)
    ; ---------------------
    ; For FX Choices > Select: Plug-In [ValhallaVintageVerb]
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 536, 1014, 1, 0)
    ; ---------------------
    ; For FX Pre Patches > Select: Add
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 678, 840, 1, 0)
    ; ---------------------
    ; Position: Plug-In
    Sleep($iPITimeOut)
    WinMove($hStudio_VstPropertyPage, "", 875, 80, 941, 480)
    ; ---------------------
    ; For Presets > Select: Classical Master
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 1626, 472, 1, 0)
    Send("{DOWN}+{RIGHT}+{UP}+{ENTER}")
    ; ---------------------
    ; Exit: Plug-In
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 1548, 92, 1, 0)
EndFunc   ;==>ConfigureNStrungGuitarPlugIn
; -----------------------------------------------
Func ConfigureSStrungGuitarPlugIn()
    WinActivate($hSAC_WIDEMIXER) ; REQUIRED!!
    ; -----------------------------------------------
    ; Select: I-03
    Sleep($iTimeOut)
    Send("{RIGHT}")
    ; ---------------------
    ; For I-03 > Select: EQ
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 254, 298, 1, 0)
    ; ---------------------
    ; For FX Choices > Select: Plug-In [ValhallaRoom]
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 536, 998, 1, 0)
    ; ---------------------
    ; For FX Pre Patches > Select: Add
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 678, 840, 1, 0)
    ; ---------------------
    ; Position: Plug-In
    Sleep($iPITimeOut)
    WinMove($hStudio_VstPropertyPage, "", 875, 80, 811, 505)
    ; ---------------------
    ; For Presets > Select: Acoustic Default
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 1450, 498, 1, 0)
    Send("{LEFT}+{UP}+{RIGHT}+{ENTER}")
    ; ---------------------
    ; Exit: Plug-In
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 1482, 92, 1, 0)
EndFunc   ;==>ConfigureSStrungGuitarPlugIn
; -----------------------------------------------
Func ConfigureElectricGuitarPlugIn()
    WinActivate($hSAC_WIDEMIXER) ; REQUIRED!!
    ; -----------------------------------------------
    ; Select: I-04
    Sleep($iTimeOut)
    Send("{RIGHT}")
    ; ---------------------
    ; For FX Choices > Select: Plug-In [AmiSim]
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 536, 966, 1, 0)
    ; ---------------------
    ; For FX Pre Patches > Select: Add
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 678, 840, 1, 0)
    ; ---------------------
    ; Position: Plug-In
    Sleep($iASTimeOut)
    WinMove($hStudio_VstPropertyPage, "", 875, 80, 1024, 680)
    ; ---------------------
    ; For Preset Attributes > Select: Session_Master
    Sleep($iASTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 940, 284, 1, 0)
    ; ---------------------
    ; For Plug-in Options Icon > Select: Cancel 'Always On Top' Status
    Sleep($iASTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 1556, 108, 1, 0)
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 1640, 246, 1, 0)
    ; ---------------------
    ; Exit: Plug-In
    Sleep($iTimeOut)
    MouseClick($MOUSE_CLICK_LEFT, 1590, 92, 1, 0)
EndFunc   ;==>ConfigureElectricGuitarPlugIn
; -----------------------------------------------

 

 

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
×
×
  • Create New...