Yesterday I have added a keybindings for changing the brightness.
I am using this https://www.autohotkey.com/boards/viewt ... &p=126135
So I saved this https://gist.githubusercontent.com/qwer ... Setter.ahk in a file named Screen_brightness.ahk . I also added these lines:
Code: Select all
BS := new BrightnessSetter()
#F5::BS.SetBrightness(3)
#F4::BS.SetBrightness(-3)
return
Code: Select all
#Include Screen_brightness.ahk
But when I try to use my keybindings for Google docs, they aren't working anymore. I use this to target all the Google Docs page
Code: Select all
#If WinActive("Google Docs ahk_class Chrome_WidgetWin_1")
Code: Select all
#If WinActive("Log Docs ahk_class Chrome_WidgetWin_1")|| WinActive("Jan part ahk_class Chrome_WidgetWin_1")|| WinActive("Feb part ahk_class Chrome_WidgetWin_1")|| WinActive("Mar part ahk_class Chrome_WidgetWin_1")
I tried to solve this by moving #Include Screen_brightness.ahk. below the #If WinActive("Google Docs ahk_class Chrome_WidgetWin_1"). Now my Google Docs keybindings work but not my screen brightness key bindings.
Any idea why this is happenign and how to solve it?