I would like to bring the Firefox window to the front and make it active. What I am trying to make work is:
$title = "MozillaWindowClass"
$exe = "Firefox.exe"
$toggle = 0
If WinActive($title) And $toggle Then
Else
If WinExists($title) Then
WinActivate($title)
Else
Run($exe)
EndIf
WinActivate($title)
EndIf
What shows in the Info is:
>>>> Window <<<<
Title: Posting New Topic - AutoIt Forums - Mozilla Firefox
Class: MozillaWindo