Created
July 20, 2024 16:57
-
-
Save jpcrs/960145b49d3d2682a48ca89f5d159649 to your computer and use it in GitHub Desktop.
AHK virtual desktop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#+^;:: | |
Winget, id, id, A | |
WinSet, ExStyle, ^0x80, ahk_id %id% ; 0x80 is WS_EX_TOOLWINDOW | |
Return | |
#1:: Run, vd /s:0,, hide | |
#2:: Run, vd /s:1,, hide | |
#3:: Run, vd /s:2,, hide | |
#4:: Run, vd /s:3,, hide | |
#5:: Run, vd /s:4,, hide | |
#6:: Run, vd /s:5,, hide | |
#7:: Run, vd /s:6,, hide | |
#8:: Run, vd /s:7,, hide | |
#9:: Run, vd /s:8,, hide | |
#0:: Run, vd /s:9,, hide | |
#;:: | |
appTitle := "Terminal" | |
WinGet, terminalID, ID, %appTitle% | |
if (WinActive("ahk_id " . terminalID)) | |
{ | |
WinMinimize, ahk_id %terminalID% | |
} | |
else | |
{ | |
if terminalID | |
{ | |
WinActivate, ahk_id %terminalID% | |
WinRestore, ahk_id %terminalID% | |
} | |
else | |
{ | |
Run, "C:\Users\jpcrs\AppData\Local\Microsoft\WindowsApps\wt.exe" | |
} | |
} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment