This should work.
Code: Select all
WinGetPos, winX, winY, winWidth, winHeight, ahk_class ShockwaveFlash
if ( winX = 0 && winY = 0 && winWidth = A_ScreenWidth && winHeight = A_ScreenHeight )
{ MsgBox, The window is full screen
WinActivate, ahk_class ShockwaveFlash
}