Local $iPID, $sPName
While 1
$iPID = ProcessExists('iexplore.exe')
If $iPID Then
$sPName = 'iexplore.exe'
ExitLoop
EndIf
$iPID = ProcessExists('ff.exe')
If $iPID Then
$sPName = 'ff.exe'
ExitLoop
EndIf
$iPID = ProcessExists('opera.exe')
If $iPID Then
$sPName = 'opera.exe'
ExitLoop
EndIf
Sleep(50)
WEnd
MsgBox(0, '', '$iPID = ' & $iPID & @CRLF & '$sPName = ' & $sPName)