AutoHotkey- script to press button after video socket exits full screen mode (Chrome)

autohotkeygoogle-chromescriptwindows

When video socket (Google Chrome) exits full screen mode, I need to:

  • Send, {F4} ; to stop video recording on bandicam

  • It needs to track/looking 1st. monitor (Looking sites title perhaps)

Does anyone know how to do this with Autohotkey?

Tips…
Active window size changes when video socket exits full screen.

Monitoring can be possible at looking tittle tag from Chrome

Best Answer

try:

#SingleInstance, force
SetTitleMatchMode, 2


loop
{
    If Winexist(" - Super User")
    {
        WinGet, styles, Style
        if(styles & 0xC40000)
        {
            if isfull
            {
                send {F4}
                isfull=0
            }

        }
        else
        {
            isfull=1
        }

    }
sleep 500
}

This version should work on every Monitor and only in a Tab that ends with " - Super User"

Related Question