i have this little script to detect fullscreen mode in firefox for videos to remap keys. This worked like a charm for a long time.
Now, since a couple of days it does not work anymore? Maybe one can help me. I absolutlley do not know why this is not working anymore? Could it be something with a new resolution? or driver?
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance force
#Persistent
SetTimer, check_fs, On
check_fs:
IfWinExist, ahk_class MozillaWindowClass
{
WinGetPos, x, y, w, h
If (x=0 && y=0 && w=A_ScreenWidth && h=A_ScreenHeight)
{
User := "User1"
}
else User := "User0"
}
#if (User = "User1")
WheelUp::Right
WheelDown:: Left
#if