/*
Loading the generated 7 *.bsl files into Bitstream 3X via WaveIdea BS3X Configuration Software v1.5, for Windows
*/
; setting general environment variables
#NoEnv
#SingleInstance force
#InstallKeybdHook
SendMode Input
SetTitleMatchMode, 2
DetectHiddenWindows, On
SetCapsLockState, AlwaysOff
IfWinNotExist, WaveIdea BS3X Configuration software ahk_class wxWindowClassNR
{
MsgBox, Program WaveIdea BS3X Configuration software seems not to be running. Program will exit without doing anything.
ExitApp
}
else
{
;MsgBox, Ok WaveIdea config software exists, we can continue here.
i := 6
Loop,7
{
WinActivate, WaveIdea BS3X Configuration software ahk_class wxWindowClassNR
;MsgBox, config software should be active now.
Click, 567, 422 ; selecting Assign User & Mackie/Logic modes tab
; press alt-l,i for loading bitstream pro library file
Send, {altdown}l{altup}i
Sleep, 1100
File%i% = %A_ScriptDir%\Bitstream%i%.bsl
g := i * 3
; File6 = %A_ScriptDir%\Bitstream6.bsl
; File5 = %A_ScriptDir%\Bitstream5.bsl
; File4 = %A_ScriptDir%\Bitstream4.bsl
; File3 = %A_ScriptDir%\Bitstream3.bsl
; File2 = %A_ScriptDir%\Bitstream2.bsl
; File1 = %A_ScriptDir%\Bitstream1.bsl
; File0 = %A_ScriptDir%\Bitstream0.bsl
Target := File%i%
SplitPath, Target, name, dir, ext, name_no_ext, drive
;MsgBox, name_no_ext: %name_no_ext%
FileDelete, %A_ScriptDir%\%name_no_ext%.bs3
;MsgBox, File%i% is %Target% (from Target)
Send, %Target%{enter}
#IfWinActive, Parameter check
{
Send, {space}
}
Send, %name_no_ext%{enter}
; group is in ComboBox1
; what works, click twice, up/down for one step
if (i == 0)
break
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; group 0 copy paste
; go to group 0 = init
Click, 351, 61 ; group selection menu
Click, 351, 61 ; group selection menu
Send, {Home}
Loop, 1
{
Click, 351, 61 ; group selection menu
Click, 351, 61 ; group selection menu
Send, {up}
Sleep, 20
}
Sleep, 200
; copy group, alt-g,enter
WinActivate, WaveIdea BS3X Configuration software ahk_class wxWindowClassNR
Send, {altdown}g{altup}{enter}
Sleep, 200
; go to working group wg := g + 0
Click, 351, 61 ; group selection menu
Send, {Home}
wg := g + 0
Loop, %wg%
{
Click, 351, 61 ; group selection menu
Click, 351, 61 ; group selection menu
Send, {down}
Sleep, 20
}
Sleep, 200
; paste into working group wg, alt-g,p
WinActivate, WaveIdea BS3X Configuration software ahk_class wxWindowClassNR
Send, {altdown}g{altup}p
Sleep, 200
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; group 1 copy paste
; go to group 0 = init
Click, 351, 61 ; group selection menu
Click, 351, 61 ; group selection menu
Send, {Home}
Loop, 1
{
Click, 351, 61 ; group selection menu
Click, 351, 61 ; group selection menu
Send, {up}
Sleep, 20
}
; go to working group wg := g + 0
wg := 1
Loop, %wg%
{
Click, 351, 61 ; group selection menu
Click, 351, 61 ; group selection menu
Send, {down}
Sleep, 20
}
Sleep, 200
; copy group, alt-g,enter
WinActivate, WaveIdea BS3X Configuration software ahk_class wxWindowClassNR
Send, {altdown}g{altup}{enter}
Sleep, 200
; go to working group wg := g + 0
Click, 351, 61 ; group selection menu
Send, {Home}
wg := g + 1
Loop, %wg%
{
Click, 351, 61 ; group selection menu
Click, 351, 61 ; group selection menu
Send, {down}
Sleep, 20
}
Sleep, 200
; paste into working group wg, alt-g,p
WinActivate, WaveIdea BS3X Configuration software ahk_class wxWindowClassNR
Send, {altdown}g{altup}p
Sleep, 200
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; group 2 copy paste
; go to group 0 = init
Click, 351, 61 ; group selection menu
Click, 351, 61 ; group selection menu
Send, {Home}
Loop, 1
{
Click, 351, 61 ; group selection menu
Click, 351, 61 ; group selection menu
Send, {up}
Sleep, 20
}
; go to working group wg := g + 0
wg := 2
Loop, %wg%
{
Click, 351, 61 ; group selection menu
Click, 351, 61 ; group selection menu
Send, {down}
Sleep, 20
}
Sleep, 200
; copy group, alt-g,enter
WinActivate, WaveIdea BS3X Configuration software ahk_class wxWindowClassNR
Send, {altdown}g{altup}{enter}
Sleep, 200
; go to working group wg := g + 0
Click, 351, 61 ; group selection menu
Send, {Home}
wg := g + 2
Loop, %wg%
{
Click, 351, 61 ; group selection menu
Click, 351, 61 ; group selection menu
Send, {down}
Sleep, 20
}
Sleep, 200
; paste into working group wg, alt-g,p
WinActivate, WaveIdea BS3X Configuration software ahk_class wxWindowClassNR
Send, {altdown}g{altup}p
Sleep, 200
i--
}
ExitApp
}