AutoItSetOption("WinTitleMatchMode", 2) ;If Firefox is not open, open it with a new tab If ProcessExists("Firefox.exe") = 0 Then Run('"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -new-tab about:newtab') Else ;Switch to Firefox WinActivate("Mozilla Firefox") EndIf