Script for auto minimizing window when focus lost Topic is solved
Script for auto minimizing window when focus lost
Hello, is there a script that makes a window automatically minimize when the focus is lost after alt-tabbing? It would be mostly helpful if it worked on my browser window (Firefox) but, a global setting to minimize all windows other than the one which has focus would be great too. Thanks!
Re: Script for auto minimizing window when focus lost
You really need to use google and the search function.
https://autohotkey.com/board/topic/1140 ... ctive-one/
https://autohotkey.com/board/topic/1140 ... ctive-one/
Re: Script for auto minimizing window when focus lost
This does not perform the minimizing of windows AUTOMATICALLY upon exiting a window. Thanks anyway smart arse.
Re: Script for auto minimizing window when focus lost Topic is solved
Code: Select all
#NoEnv
#Warn
; Windows 8.1 64 bit - Autohotkey v1.1.27.04 32-bit Unicode
var := true
SetTimer, subroutine, -1
return
subroutine:
WinWaitNotActive, ahk_exe firefox.exe
sleep, 100
if (var) {
WinMinimize
SetTimer, subroutine, -1
}
return
!t::SetTimer, subroutine, % (var:=not var) ? -1 : "Off" ; ALT+T disable/enable the behaviour
!x::ExitApp ; ALT+X terminates the script
Re: Script for auto minimizing window when focus lost
Now that's what I'm looking for!! Thank you so much for this ^^
Who is online
Users browsing this forum: dunnerca and 173 guests