|terminal := WinExist("ahk_exe WindowsTerminal.exe")|
|active := WinActive("ahk_id " terminal)|
|WinMinimize, ahk_id %active%|
|WinActivate, ahk_id %terminal%|
I was using https://github.com/lonepie/mintty-quake-console , pretty simple to get it to run wt.exe instead of mintty/wsltty. Although the latest wt preview (1.2) absolutely breaks it. Your little script works very nicely, and honestly, is much easier for me to understand. With wt 1.2, if you stick an -F on the end (ie. Run, wt.exe -F) it will start fullscreen, which is pretty nice. Thanks!