closing windows
Posted: 28 Apr 2020, 23:56
Why does a shutdown option appear with my script? I am trying to close all current windows. Also, is it possible for me to close a window by title if it isn't the active window?
I looked at the documentation and these things below under winclose don't seen to correspond to the name of the website, such as https://google.com. I would like to close all google.com's for example.
ahk_class
ahk_id
ahk_pid
ahk_exe
ahk_group
looking through documentation more, I found this: SetTitleMatchMode RegEx
not sure how to use it though
I looked at the documentation and these things below under winclose don't seen to correspond to the name of the website, such as https://google.com. I would like to close all google.com's for example.
ahk_class
ahk_id
ahk_pid
ahk_exe
ahk_group
Code: Select all
#SingleInstance, force
^z::
WinGet, OutputVar, List
msgbox, % outputvar
a := 1
loop, % outputvar
{
if winexist("ahk_id" . outputvar%a%)
winkill
a++
}
not sure how to use it though