Ihr Codeblock ist ein bisschen dran, denke ich, probiere es aus:
tc_title:="Total Commander (x64) 8.51a" tc_path:="c:\Program Files\Total Commander\TOTALCMD64.EXE" #1:: IfWinExist %tc_title% { WinActivate %tc_title% } else IfWinNotExist %tc_title% { Run %tc_path%,,Max WinWait %tc_title% WinActivate } Return #2:: IfWinExist [2] %tc_title% { WinActivate [2] %tc_title% } else IfWinNotExist [2] %tc_title% { Run %tc_path%,,Max WinWait [2] %tc_title% WinActivate } Return
Weitere Informationen finden Sie unter http://ahkscript.org/docs/commands/Block.htm