Ahh cool! thank you!
This one is really cool too: http://www.azslow.com/index.php/topic,4 … h43dau#new
Trying this right now:
; Erzwinge nur eine laufende Instanz
#SingleInstance, Force
; "F12" wurde gedrückt
F12::
; Speichere die ID des aktuell aktiven Fensters in einer Variable ab
WinActivate
ActiveWindow_ID := WinExist("A")
; Starte TotalMix FX, wenn das Programm noch nicht läuft
if (!WinExist("ahk_exe TotalMixFX.exe")) {
if (FileExist("C:\Windows\System32\TotalMixFX.exe")) {
Run, "C:\Windows\System32\TotalMixFX.exe"
} else if (FileExist("C:\Windows\SysWOW64\TotalMixFX.exe")) {
Run, "C:\Windows\SysWOW64\TotalMixFX.exe"
}
}
; Finde die ID des TotalMix FX Fensters und speichere die ID in einer Variable ab
WinGet, TotalMixFX_Program_List, List, ahk_exe TotalMixFX.exe
TotalMix_ID := TotalMixFX_Program_List%TotalMixFX_Program_List%
; Aktiviere das TotalMix FX Fenster
WinActivate, ahk_id %TotalMix_ID%
; Sende Tastatur-Input an das Fenster
SendInput, {F8}
; Aktiviere danach das zuvor geöffnete Fenster
WinActivate, ahk_id %ActiveWindow_ID%
return