Quote:
Originally Posted by EvertonYorkie
Would you be willing to share this script?
Code:
loop
{
sleep 500
WinGet, id, list,,, Program Manager
loop, %id%
{
this_id := id%A_Index%
WinGetClass, this_class, ahk_id %this_id%
WinGetTitle, this_title, ahk_id %this_id%
DoesTitlePandora = 0
DoesTitleDocs = 0
DoesTitlePandora := InStr(this_title, "Radio")
DoesTitleDocs := InStr(this_title, "DoGGz")
;ahk_class = MozillaWindowClass
if (A_Min > 52 || A_Min < 5)
{
;do nothing
}
else if (this_class = "MozillaWindowClass")
{
if (DoesTitlePandora = 0 && DoesTitleDocs = 0)
{
PostMessage, 0x112, 0xF060,,, ahk_id %this_id%
}
}
}
}
I didn't write it in a way that it is distributable, but anyone who has knowledge of AHK should understand it.
-WinGet, id, list,,, Program Manager populates id with the ahk_id of all open programs.
-There are built in exceptions for Pandora and my marketplace packages.
-PostMessage, 0x112, 0xF060 is a direct windows 'kill window' command.