@patrick wrote:
@apn
yes with maxforlive
Do you have an example of autohotkey ?
A simple window focus script assigned to key commands:
DetectHiddenWindows, on
SetTitleMatchMode regex
Numpad0::Function1_Function()
!t::Function2_Function()
!y::Function3_Function()
!u::Function4_Function()
!i::Function5_Function()
Function1_Function()
{
WinMaximize Cubase Pro
WinMaximize Project
WinActivate Project
}
Function2_Function()
{
WinActivate Key Editor
}
Function3_Function()
{
WinActivate Scores
}
Function4_Function()
{
WinActivate MixConsole
}
Function5_Function()
{
WinActivate, ahk_class SteinbergWindowClass
}
return
And before Chameleon implemented (disable legacy touch behaviour) I had to use this to prevent mouse stealing.
#NoEnv
#NoTrayIcon
#SingleInstance force
CoordMode, Mouse, Screen
SysGet, MonCount, MonitorCount
Loop, %MonCount%
{
SysGet, Mon, Monitor, %A_Index%
Width := MonRight - MonLeft
Height := MonBottom - MonTop
if (Width = 1600) && (Height = 900)
break
}
MouseGetPos, LX, LY
Loop{
MouseGetPos, MX, MY
KeyWait, Lbutton, L
if ((MX >= MonLeft) && (MX <= MonRight) && (MY >= MonTop) && (MY <= MonBottom))
&& not ((LX >= MonLeft) && (LX <= MonRight) && (LY >= MonTop) && (LY <= MonBottom))
DllCall("SetCursorPos", int, LX, int, LY)
else
{
LX := MX
LY := MY
WinActivate, Cubase Pro Project
}
sleep, 350
}
Esc::
Pause
Suspend
return