; Function: Copy channel order from Mon Mixer 1 to Mon Mixer 2 through 24
;
; Version 2.0
;
; The only mouse click now is to right click on the mixer dropdown list
; the rest of the selections are made with arrow keys and enter key presses
;
; Mouse Coords
; 483,58 = Mixer Dropdown List in SAC
;
; Active this script by pressing Ctrl + Alt + 8
^!8::
CoordMode, Mouse, Screen ; Required for absolute mouse coord clicking
SetKeyDelay, 50
SetDefaultMouseSpeed, 30
SetMouseDelay, 30
#WinActivateForce
IfWinExist, SAC
WinActivate, SAC ; use the window found above
else
return
; Confirm that we want to do this.
MsgBox, 36, , Copy chan order from Mon Mixer 1 to Mixers 2-24?
IfMsgBox No
return
BlockInput On
Loop ; Loop #1 This is for Mixers 02 through 09
{
if A_index > 9
break ; Terminate the loop
if A_index < 2
continue
Send m0%a_index% {Click right 483,58}{Up}{Enter}{Down}{Enter}
}
Loop ; Loop #2 This is for Mixers 10 through 24
{
if A_index > 24
break ; Terminate the loop
if A_index < 10
continue
Send m%a_index% {Click right 483,58}{Up}{Enter}{Down}{Enter}
}
Send 01 ; Take us back to Mon Mixer 1
BlockInput Off
return
shmick wrote:Version 2.0 of the script, less mouse clicking and more keyboard pressing for better accuracy.
- Code: Select all
; Function: Copy channel order from Mon Mixer 1 to Mon Mixer 2 through 24
;
; Version 2.0
;
; The only mouse click now is to right click on the mixer dropdown list
; the rest of the selections are made with arrow keys and enter key presses
;
; Mouse Coords
; 483,58 = Mixer Dropdown List in SAC
;
; Active this script by pressing Ctrl + Alt + 8
^!8::
CoordMode, Mouse, Screen ; Required for absolute mouse coord clicking
SetKeyDelay, 50
SetDefaultMouseSpeed, 30
SetMouseDelay, 30
#WinActivateForce
IfWinExist, SAC
WinActivate, SAC ; use the window found above
else
return
; Confirm that we want to do this.
MsgBox, 36, , Copy chan order from Mon Mixer 1 to Mixers 2-24?
IfMsgBox No
return
BlockInput On
Loop ; Loop #1 This is for Mixers 02 through 09
{
if A_index > 9
break ; Terminate the loop
if A_index < 2
continue
Send m0%a_index% {Click right 483,58}{Up}{Enter}{Down}{Enter}
}
Loop ; Loop #2 This is for Mixers 10 through 24
{
if A_index > 24
break ; Terminate the loop
if A_index < 10
continue
Send m%a_index% {Click right 483,58}{Up}{Enter}{Down}{Enter}
}
Send 01 ; Take us back to Mon Mixer 1
BlockInput Off
return
Users browsing this forum: No registered users and 3 guests