I show you how to open one or more sites in chrome but this can be used for Firefox or any other browser you use. Next you may want to close a specific tab this will show you how to cycle your tabs looking for the tabs name you wish to close.
CODE:
SetTitleMatchMode, 2
f1::
Run, Chrome.exe https://docs.microsoft.com/en-us/visu...
Run, Chrome.exe / tadamm
Return
F2::
If WinExist("Google")
{
WinActivate, ahk_class Chrome_WidgetWin_1
Loop 10{
WinGetTitle, CurrentWindowTitle, ahk_class Chrome_WidgetWin_1
If CurrentWindowTitle contains Creating
{
Send ^w
Return
}
Else
{
Send, ^{Tab}
}
}}