#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.14.2 Author: mLipok Script Function: Example use of HyCam2 #ce ---------------------------------------------------------------------------- #include "HyCam2.au3" Local $oHyCam2 = _HyCam2_Open(@TempDir & "\HyCam2Demo.avi") If Not IsObj($oHyCam2) Then MsgBox(0, 'ERROR', 'Can not create object.') Exit EndIf _HyCam2_Record($oHyCam2) Sleep(20000) _HyCam2_Stop($oHyCam2) _HyCam2_Close($oHyCam2) ShellExecute(@TempDir & "\HyCam2Demo.avi") MsgBox(0,"HyCam2","Click OK to delete AVI file and close") FileDelete(@TempDir & "\HyCam2Demo.avi")