Code: Select all
#SingleInstance, force
#NoEnv
SetBatchLines, -1
;@Icarus - I copied and modified/customized.
;I don't achieved my goal.
IfWinExist ahk_exe XYplorer.exe
WinActivate
;Sleep 1500
MsgBox Press OK to Start!
isFullScreen := isWindowFullScreen( "A" )
MsgBox % isFullScreen ? "Full Screen" : "Windowed"
MsgBox %isFullScreen%
if(%isFullScreen% = 1)
{
IfWinActive ahk_exe XYplorer
MsgBox Full Screen Mode now run your hotkeys!
1::F8
}
else
if(%isFullScreen% = 0)
MsgBox Full Screen Mode OFF now Don't Change Hotkeys!
Return
isWindowFullScreen( winTitle )
{
winID := WinExist( winTitle )
If ( !winID )
Return false
WinGet style, Style, ahk_id %WinID%
WinGetPos ,,,winW,winH, %winTitle%
Return ((style & 0x20800000) or winH < A_ScreenHeight or winW < A_ScreenWidth) ? false : true
}
( I spent 12hrs to achieve my goal but failed )