Opening a a webcam test like this
Local $oIE = _IECreate('http://www.testmycam.net/') Sleep(3000) $WebCamCheck = MsgBox($MB_YESNO + $MB_ICONWARNING + $MB_DEFBUTTON2, 'Webcam Check', 'Did The Webcam Work') _Font() If $WebCamCheck = $IDYES Then GUICtrlSetImage($WebcamIcon, $tick) RegWrite('HKEY_LOCAL_MACHINE\SYSTEM\Setup\Simple', 'Webcam', 'REG_SZ', _Date_Time_SystemTimeToDateTimeStr($CuDate)) ElseIf $WebCamCheck = $IDNO Then GUICtrlSetImage($WebcamIcon, $cross) RegWrite('HKEY_LOCAL_MACHINE\SYSTEM\Setup\Simple', 'Webcam', 'REG_SZ', 'NotCompleted') EndIf
Im trying to find a way to make the $WebCamCheck wait until the browser window is closed as the MsgBox appears before the test is barely started
I tried adding this after the sleep
Local $oIE = _IECreate('http://www.testmycam.net/') Sleep(3000) Local $ProcessCheck = ProcessExists($oIE) ; <<<<<<<<<< this ProcessWaitClose($ProcessCheck) ; <<<<<<<<<<<< this $WebCamCheck = MsgBox($MB_YESNO + $MB_ICONWARNING + $MB_DEFBUTTON2, 'Webcam Check', 'Did The Webcam Work')
but it just carry s on and ignores it
Any suggestions plz