Windirstat hinzugefügt: sit.ahk berücksichtigt fullscreen Anwendungen
This commit is contained in:
@@ -10,4 +10,54 @@ GetPath(_hwnd)
|
||||
path := StrReplace(w.LocationURL, "file:///")
|
||||
return StrReplace(path, "%20", " ")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
Checks if a window is in fullscreen mode.
|
||||
______________________________________________________________________________________________________________
|
||||
|
||||
Usage: isFullScreen()
|
||||
Return: True/False
|
||||
|
||||
GitHub Repo: https://github.com/Nigh/isFullScreen
|
||||
*/
|
||||
class isFullScreen
|
||||
{
|
||||
|
||||
static monitors:=this.init()
|
||||
static init()
|
||||
{
|
||||
a:=[]
|
||||
loop MonitorGetCount()
|
||||
{
|
||||
MonitorGet(A_Index, &Left, &Top, &Right, &Bottom)
|
||||
a.Push({l:Left,t:Top,r:Right,b:Bottom})
|
||||
}
|
||||
Return a
|
||||
}
|
||||
|
||||
static Call()
|
||||
{
|
||||
uid:=WinExist("A")
|
||||
if(!uid){
|
||||
Return False
|
||||
}
|
||||
wid:="ahk_id " uid
|
||||
c:=WinGetClass(wid)
|
||||
If (uid = DllCall("GetDesktopWindow") Or (c = "Progman") Or (c = "WorkerW")){
|
||||
Return False
|
||||
}
|
||||
WinGetClientPos(&cx,&cy,&cw,&ch,wid)
|
||||
cl:=cx
|
||||
ct:=cy
|
||||
cr:=cx+cw
|
||||
cb:=cy+ch
|
||||
For , v in this.monitors
|
||||
{
|
||||
if(cl==v.l and ct==v.t and cr==v.r and cb==v.b){
|
||||
Return True
|
||||
}
|
||||
}
|
||||
Return False
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user