Skip to content

Commit

Permalink
Windows FUCKING Terminal is retarded and doesn't activate its window …
Browse files Browse the repository at this point in the history
…at start
  • Loading branch information
TheBestPessimist committed Jun 29, 2023
1 parent 7ccb1d6 commit 2a623b5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions AutoHotkey64.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ CapsLock & 1 Up::{
;~LWin & ~LControl:: ; for some reason this ordering of keys interferes with Precision touchpad "3 finger tap = Middle click" 🙄. Why is Microshitsoft sending all modifier keys before middle click? WTF ?!?!?!!?!?
LControl & LWin Up::
{
; see https://github.com/seerge/g-helper/issues/512: need this to disable touchpad
if(A_PriorKey = "F24") ; in my 2 in 1 laptop, when rotating the screen into tabled only mode, GHelper sends the keys LCtrl Down, LWin Down, F24 Down, then up, which activates this hotkey
return
if(!ProcessExist(Process.FlowLauncher)) {
Expand Down Expand Up @@ -115,13 +116,16 @@ CapsLock & LWin Up::Send "^!+l"




;------------------------------------------------
; Run Windows Terminal
#t::
{
Run("C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.16.10262.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe",,, &pid)
WinWait("ahk_pid " pid, , 5)
WinActivate("ahk_pid " pid)
Run("C:\Users\TheBestPessimist\AppData\Local\Microsoft\WindowsApps\wt.exe --title `"Windows FUCKING Terminal :^)`" ")
windowsFuckingTerminalWindow := "Windows FUCKING Terminal ahk_class CASCADIA_HOSTING_WINDOW_CLASS ahk_exe WindowsTerminal.exe"

WinWait(windowsFuckingTerminalWindow, , 5)
WinActivate(windowsFuckingTerminalWindow)
}


Expand Down

0 comments on commit 2a623b5

Please sign in to comment.