How to disable script when in certain programs?
Posted: 24 Oct 2021, 08:49
With reference to this script here : https://www.autohotkey.com/board/topic/73190-smartbright-custom-screen-brightness-and-eyesaver/
I added another piece of code but got stuck halfway:
Any advice please? Thank you.
I added another piece of code but got stuck halfway:
Code: Select all
#If WinActive("Google Chrome") || WinActive("Word")
oldIntensity := Intensity
Intensity := 0 ; disable intensity
Gui, +LastFound
WinSet, Transparent, %Intensity%
sleep 100 ; how to return to oldIntensity after I switch to other programs other than chrome or word?
Intensity := oldIntensity
WinSet, Transparent, %Intensity%
return
#IF