$sTestString = 'Edit|msctls_statusbar32|'
Run('notepad.exe')
$hWin = WinWait('[CLASS:Notepad]', '', 5)
If $hWin Then
$sText = StringReplace(WinGetClassList($hWin), @LF, '|')
If Not StringCompare($sText, $sTestString) Then
MsgBox(64, 'Info', 'Оно')
EndIf
Else
MsgBox(16, 'Error', 'WinWait')
EndIf