IsFullScreen()

Author: TheGood Last Modified: 20100305


I think this is the most accurate way to check if an application is currently in fullscreen mode. Based on information from the Microsoft KB.

* Supports multiple monitors (the return value is the index of the monitor on which the window is fullscreen).
* Works even with different taskbar settings (auto-hide, always-on-top).
* Works with other registered taskbars (e.g. Ultramon).

IsFullscreen(sWinTitle = "A", bRefreshRes = False)

For the functions's parameters and return value, please see it's source code.

Remarks

The initial given function by Tuncay is superceded by the simple one from Lexikos. But I decided not to give any License, the function is too simple for that.

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?p=320069#320069

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/topic54149.html

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=30088

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=55041

License

nonexistent

Example

; #Include IsFullScreen.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

MsgBox Click Win+LeftMouseButton to see if application is in fullscreen mode.
Return

#LButton::
MsgBox % IsFullscreen()
Return