#Region - TimeStamp ; 2011-09-13 19:01:31 v 0.2 #EndRegion - TimeStamp #include-once Global Const $WM_CAP_START = 0x400 Global Const $WM_CAP_UNICODE_START = $WM_CAP_START +100 Global Const $WM_CAP_PAL_SAVEA = $WM_CAP_START + 81 Global Const $WM_CAP_PAL_SAVEW = $WM_CAP_UNICODE_START + 81 Global Const $WM_CAP_UNICODE_END = $WM_CAP_PAL_SAVEW Global Const $WM_CAP_ABORT = $WM_CAP_START + 69 Global Const $WM_CAP_DLG_VIDEOCOMPRESSION = $WM_CAP_START + 46 Global Const $WM_CAP_DLG_VIDEODISPLAY = $WM_CAP_START + 43 Global Const $WM_CAP_DLG_VIDEOFORMAT = $WM_CAP_START + 41 Global Const $WM_CAP_DLG_VIDEOSOURCE = $WM_CAP_START + 42 Global Const $WM_CAP_DRIVER_CONNECT = $WM_CAP_START + 10 Global Const $WM_CAP_DRIVER_DISCONNECT = $WM_CAP_START + 11 Global Const $WM_CAP_DRIVER_GET_CAPS = $WM_CAP_START + 14 Global Const $WM_CAP_DRIVER_GET_NAMEA = $WM_CAP_START + 12 Global Const $WM_CAP_DRIVER_GET_NAMEW = $WM_CAP_UNICODE_START + 12 Global Const $WM_CAP_DRIVER_GET_VERSIONA = $WM_CAP_START + 13 Global Const $WM_CAP_DRIVER_GET_VERSIONW = $WM_CAP_UNICODE_START + 13 Global Const $WM_CAP_EDIT_COPY = $WM_CAP_START + 30 Global Const $WM_CAP_END = $WM_CAP_UNICODE_END Global Const $WM_CAP_FILE_ALLOCATE = $WM_CAP_START + 22 Global Const $WM_CAP_FILE_GET_CAPTURE_FILEA = $WM_CAP_START + 21 Global Const $WM_CAP_FILE_GET_CAPTURE_FILEW = $WM_CAP_UNICODE_START + 21 Global Const $WM_CAP_FILE_SAVEASA = $WM_CAP_START + 23 Global Const $WM_CAP_FILE_SAVEASW = $WM_CAP_UNICODE_START + 23 Global Const $WM_CAP_FILE_SAVEDIBA = $WM_CAP_START + 25 Global Const $WM_CAP_FILE_SAVEDIBW = $WM_CAP_UNICODE_START + 25 Global Const $WM_CAP_FILE_SET_CAPTURE_FILEA = $WM_CAP_START + 20 Global Const $WM_CAP_FILE_SET_CAPTURE_FILEW = $WM_CAP_UNICODE_START + 20 Global Const $WM_CAP_FILE_SET_INFOCHUNK = $WM_CAP_START + 24 Global Const $WM_CAP_GET_AUDIOFORMAT = $WM_CAP_START + 36 Global Const $WM_CAP_GET_CAPSTREAMPTR = $WM_CAP_START + 1 Global Const $WM_CAP_GET_MCI_DEVICEA = $WM_CAP_START + 67 Global Const $WM_CAP_GET_MCI_DEVICEW = $WM_CAP_UNICODE_START + 67 Global Const $WM_CAP_GET_SEQUENCE_SETUP = $WM_CAP_START + 65 Global Const $WM_CAP_GET_STATUS = $WM_CAP_START + 54 Global Const $WM_CAP_GET_USER_DATA = $WM_CAP_START + 8 Global Const $WM_CAP_GET_VIDEOFORMAT = $WM_CAP_START + 44 Global Const $WM_CAP_GRAB_FRAME = $WM_CAP_START + 60 Global Const $WM_CAP_GRAB_FRAME_NOSTOP = $WM_CAP_START + 61 Global Const $WM_CAP_PAL_AUTOCREATE = $WM_CAP_START + 83 Global Const $WM_CAP_PAL_MANUALCREATE = $WM_CAP_START + 84 Global Const $WM_CAP_PAL_OPENA = $WM_CAP_START + 80 Global Const $WM_CAP_PAL_OPENW = $WM_CAP_UNICODE_START + 80 Global Const $WM_CAP_PAL_PASTE = $WM_CAP_START + 82 Global Const $WM_CAP_SEQUENCE = $WM_CAP_START + 62 Global Const $WM_CAP_SEQUENCE_NOFILE = $WM_CAP_START + 63 Global Const $WM_CAP_SET_AUDIOFORMAT = $WM_CAP_START + 35 Global Const $WM_CAP_SET_CALLBACK_CAPCONTROL = $WM_CAP_START + 85 Global Const $WM_CAP_SET_CALLBACK_ERRORA = $WM_CAP_START + 2 Global Const $WM_CAP_SET_CALLBACK_ERRORW = $WM_CAP_UNICODE_START + 2 Global Const $WM_CAP_SET_CALLBACK_FRAME = $WM_CAP_START + 5 Global Const $WM_CAP_SET_CALLBACK_STATUSA = $WM_CAP_START + 3 Global Const $WM_CAP_SET_CALLBACK_STATUSW = $WM_CAP_UNICODE_START + 3 Global Const $WM_CAP_SET_CALLBACK_VIDEOSTREAM = $WM_CAP_START + 6 Global Const $WM_CAP_SET_CALLBACK_WAVESTREAM = $WM_CAP_START + 7 Global Const $WM_CAP_SET_CALLBACK_YIELD = $WM_CAP_START + 4 Global Const $WM_CAP_SET_MCI_DEVICEA = $WM_CAP_START + 66 Global Const $WM_CAP_SET_MCI_DEVICEW = $WM_CAP_UNICODE_START + 66 Global Const $WM_CAP_SET_OVERLAY = $WM_CAP_START + 51 Global Const $WM_CAP_SET_PREVIEW = $WM_CAP_START + 50 Global Const $WM_CAP_SET_PREVIEWRATE = $WM_CAP_START + 52 Global Const $WM_CAP_SET_SCALE = $WM_CAP_START + 53 Global Const $WM_CAP_SET_SCROLL = $WM_CAP_START + 55 Global Const $WM_CAP_SET_SEQUENCE_SETUP = $WM_CAP_START + 64 Global Const $WM_CAP_SET_USER_DATA = $WM_CAP_START + 9 Global Const $WM_CAP_SET_VIDEOFORMAT = $WM_CAP_START + 45 Global Const $WM_CAP_SINGLE_FRAME = $WM_CAP_START + 72 Global Const $WM_CAP_SINGLE_FRAME_CLOSE = $WM_CAP_START + 71 Global Const $WM_CAP_SINGLE_FRAME_OPEN = $WM_CAP_START + 70 Global Const $WM_CAP_STOP = $WM_CAP_START + 68 Global $tagCAPTUREPARMS = _ 'DWORD dwRequestMicroSecPerFrame;' & _ 'BOOLEAN fMakeUserHitOKToCapture;' & _ 'UINT wPercentDropForError;' & _ 'BOOLEAN fYield;' & _ 'DWORD dwIndexSize;' & _ 'UINT wChunkGranularity;' & _ 'BOOLEAN fUsingDOSMemory;' & _ 'UINT wNumVideoRequested;' & _ 'BOOLEAN fCaptureAudio;' & _ 'UINT wNumAudioRequested;' & _ 'UINT vKeyAbort;' & _ 'BOOLEAN fAbortLeftMouse;' & _ 'BOOLEAN fAbortRightMouse;' & _ 'BOOLEAN fLimitEnabled;' & _ 'UINT wTimeLimit;' & _ 'BOOLEAN fMCIControl;' & _ 'BOOLEAN fStepMCIDevice;' & _ 'DWORD dwMCIStartTime;' & _ 'DWORD dwMCIStopTime;' & _ 'BOOLEAN fStepCaptureAt2x;' & _ 'UINT wStepCaptureAverageFrames;' & _ 'DWORD dwAudioBufferSize;' & _ 'BOOLEAN fDisableWriteCache;' & _ 'UINT AVStreamMaster;' Global $Dll_avicap = DllOpen("avicap32.dll") Global $Dll_user = DllOpen("user32.dll")