WinGet Style, Style, A if(not %full%) { if WinActive("ahk_exe Code.exe"){ send, {f1} return } full = True WinGetPos, X, Y, Width, Height, A if WinActive("ahk_exe whale.exe") WinMove,A,,X,-65 * (A_ScreenDPI / 96),1280,1505 if WinActive("ahk_exe chrome.exe") WinMove,A,,X,-80 * (A_ScreenDPI / 96),1280,1520 if WinActive("Microsoft Edge") WinMove,A,,X,-10 * (A_ScreenDPI / 96),1280,1540 ; todo - get where windows is in monitor ; todo - get dpi and monitor resolution then get upper bar size ; todo - move to that monitor's y axis start point ; todo - if other program then just move and extene upper } else { full = False WinMove,A,,%X%,%Y%,%Width%,%Height% }
Â

