Leaderboard
Popular Content
Showing content with the highest reputation on 01/18/2021 in all areas
-
About the arrays
Earthshine and 2 others reacted to LarsJ for a topic
AutoIt is a BASIC-like scripting language that is much more related to e.g. VBScript than it is to low level languages such as C. In many scripting languages including both AutoIt and VBScript, arrays are implemented as safearrays of variants. Ie. a safearray where each array element consists of a variant. These are array manipulation functions that are useful for safearrays. As you can see, there are no direct functions to compare safearrays. Accessing AutoIt Variables demonstrates how to convert an AutoIt array to a safearray and vice versa based on techniques that utilize internal AutoIt COM conversions. But the code isn't completely trivial. The direct answers to your questions are: No, there isn't. And there is also no safearray API function for the purpose. An AutoIt array cannot be directly accessed through a reference pointer, but the corresponding safearray and associated array elements can be accessed through pointers. Through a DllStruct you can obtain a pointer to a C-type array. But a C-type array is not the same as a true AutoIt array. Do you have an example of a scripting language where you can compare arrays through reference pointers?3 points -
Opencv UDF
Earthshine and one other reacted to junkew for a topic
As this open CV library is very powerfull also in dealing with hard to get screen controls would be nice to get latest version running. Trying to get all function declarations from the open world dll latest version 4.5.1 most likely 64 bits opencv_world451.dll First attempt: see attached au3 file review comments are welcome region used to indicate which .h headerfile is used search for TODO: these parts are not working and commented out TODO: Other dll TODO: Fix function declaration only function declarations no structures defined, reuse the ones in this thread No clue how to fix and rewrite some C constructions. C call is in comment given Issue 1 Unclear how to map this construct /************************************* CvSlice ******************************************/ #define CV_WHOLE_SEQ_END_INDEX 0x3fffffff #define CV_WHOLE_SEQ cvSlice(0, CV_WHOLE_SEQ_END_INDEX) Func _cvCvtSeqToArray($cvseq,$cvelements,$cvslice=$CV_WHOLE_SEQ) /* CVAPI(void*) cvCvtSeqToArray( const CvSeq* seq, void* elements, CvSlice slice CV_DEFAULT(CV_WHOLE_SEQ) );*/ local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCvtSeqToArray","struct*",$cvseq,"struct*",$cvelements,"struct",$cvslice) If @error Then ConsoleWrite( "error in cvCvtSeqToArray") Return $_aResult[0] EndFunc ;==>cvCvtSeqToArray Issue 2 Mapping points array Func _cvBoxPoints($cvbox,$cvpt[4]) /* CVAPI(void) cvBoxPoints( CvBox2D box, CvPoint2D32f pt[4] ); */ local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvBoxPoints","struct",$cvbox,"struct",$cvpt[4]) If @error Then ConsoleWrite( "error in cvBoxPoints") Return $_aResult[0] EndFunc ;==>cvBoxPoints Issue 3 Not allways clear how to map to Autoit --> review needed, below list has C and Autoit call for easy compare #region core_c.h ; CVAPI(void*) cvAlloc( size_t size ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvAlloc","ulong_ptr",$cvsize) ; CVAPI(void) cvFree_( void* ptr ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvFree_","struct*",$cvptr) ; CVAPI(IplImage*) cvCreateImageHeader( CvSize size, int depth, int channels ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateImageHeader","struct",$cvsize,"int",$cvdepth,"int",$cvchannels) ; CVAPI(IplImage*) cvInitImageHeader( IplImage* image, CvSize size, int depth, int channels, int origin CV_DEFAULT(0), int align CV_DEFAULT(4)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvInitImageHeader","struct*",$cvimage,"struct",$cvsize,"int",$cvdepth,"int",$cvchannels,"int",$cvorigin,"int",$cvalign) ; CVAPI(IplImage*) cvCreateImage( CvSize size, int depth, int channels ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateImage","struct",$cvsize,"int",$cvdepth,"int",$cvchannels) ; CVAPI(void) cvReleaseImageHeader( IplImage** image ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleaseImageHeader","struct*",$cvimage) ; CVAPI(void) cvReleaseImage( IplImage** image ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleaseImage","struct*",$cvimage) ; CVAPI(IplImage*) cvCloneImage( const IplImage* image ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCloneImage","struct*",$cvimage) ; CVAPI(void) cvSetImageCOI( IplImage* image, int coi ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetImageCOI","struct*",$cvimage,"int",$cvcoi) ; CVAPI(int) cvGetImageCOI( const IplImage* image ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetImageCOI","struct*",$cvimage) ; CVAPI(void) cvSetImageROI( IplImage* image, CvRect rect ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetImageROI","struct*",$cvimage,"struct",$cvrect) ; CVAPI(void) cvResetImageROI( IplImage* image ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvResetImageROI","struct*",$cvimage) ; CVAPI(CvRect) cvGetImageROI( const IplImage* image ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvGetImageROI","struct*",$cvimage) ; CVAPI(CvMat*) cvCreateMatHeader( int rows, int cols, int type ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateMatHeader","int",$cvrows,"int",$cvcols,"int",$cvtype) ; CVAPI(CvMat*) cvInitMatHeader( CvMat* mat, int rows, int cols, int type, void* data CV_DEFAULT(NULL), int step CV_DEFAULT(CV_AUTOSTEP) ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvInitMatHeader","struct*",$cvmat,"int",$cvrows,"int",$cvcols,"int",$cvtype,"struct*",$cvdata,"int",$cvstep) ; CVAPI(CvMat*) cvCreateMat( int rows, int cols, int type ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateMat","int",$cvrows,"int",$cvcols,"int",$cvtype) ; CVAPI(void) cvReleaseMat( CvMat** mat ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleaseMat","struct*",$cvmat) ; CVAPI(CvMat*) cvCloneMat( const CvMat* mat ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCloneMat","struct*",$cvmat) ; CVAPI(CvMat*) cvGetSubRect( const CvArr* arr, CvMat* submat, CvRect rect ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetSubRect","struct*",$cvarr,"struct*",$cvsubmat,"struct",$cvrect) ; CVAPI(CvMat*) cvGetRows( const CvArr* arr, CvMat* submat, int start_row, int end_row, int delta_row CV_DEFAULT(1)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetRows","struct*",$cvarr,"struct*",$cvsubmat,"int",$cvstart_row,"int",$cvend_row,"int",$cvdelta_row) ; CVAPI(CvMat*) cvGetCols( const CvArr* arr, CvMat* submat, int start_col, int end_col ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetCols","struct*",$cvarr,"struct*",$cvsubmat,"int",$cvstart_col,"int",$cvend_col) ; CVAPI(CvMat*) cvGetDiag( const CvArr* arr, CvMat* submat, int diag CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetDiag","struct*",$cvarr,"struct*",$cvsubmat,"int",$cvdiag) ; CVAPI(void) cvScalarToRawData( const CvScalar* scalar, void* data, int type, int extend_to_12 CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvScalarToRawData","struct*",$cvscalar,"struct*",$cvdata,"int",$cvtype,"int",$cvextend_to_12) ; CVAPI(void) cvRawDataToScalar( const void* data, int type, CvScalar* scalar ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvRawDataToScalar","struct*",$cvdata,"int",$cvtype,"struct*",$cvscalar) ; CVAPI(CvMatND*) cvCreateMatNDHeader( int dims, const int* sizes, int type ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateMatNDHeader","int",$cvdims,"struct*",$cvsizes,"int",$cvtype) ; CVAPI(CvMatND*) cvCreateMatND( int dims, const int* sizes, int type ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateMatND","int",$cvdims,"struct*",$cvsizes,"int",$cvtype) ; CVAPI(CvMatND*) cvInitMatNDHeader( CvMatND* mat, int dims, const int* sizes, int type, void* data CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvInitMatNDHeader","struct*",$cvmat,"int",$cvdims,"struct*",$cvsizes,"int",$cvtype,"struct*",$cvdata) ; CVAPI(CvMatND*) cvCloneMatND( const CvMatND* mat ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCloneMatND","struct*",$cvmat) ; CVAPI(CvSparseMat*) cvCreateSparseMat( int dims, const int* sizes, int type ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateSparseMat","int",$cvdims,"struct*",$cvsizes,"int",$cvtype) ; CVAPI(void) cvReleaseSparseMat( CvSparseMat** mat ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleaseSparseMat","struct*",$cvmat) ; CVAPI(CvSparseMat*) cvCloneSparseMat( const CvSparseMat* mat ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCloneSparseMat","struct*",$cvmat) ; CVAPI(CvSparseNode*) cvInitSparseMatIterator( const CvSparseMat* mat, CvSparseMatIterator* mat_iterator ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvInitSparseMatIterator","struct*",$cvmat,"struct*",$cvmat_iterator) ; CVAPI(int) cvInitNArrayIterator( int count, CvArr** arrs, const CvArr* mask, CvMatND* stubs, CvNArrayIterator* array_iterator, int flags CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvInitNArrayIterator","int",$cvcount,"struct*",$cvarrs,"struct*",$cvmask,"struct*",$cvstubs,"struct*",$cvarray_iterator,"int",$cvflags) ; CVAPI(int) cvNextNArraySlice( CvNArrayIterator* array_iterator ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvNextNArraySlice","struct*",$cvarray_iterator) ; CVAPI(int) cvGetElemType( const CvArr* arr ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetElemType","struct*",$cvarr) ; CVAPI(int) cvGetDims( const CvArr* arr, int* sizes CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetDims","struct*",$cvarr,"struct*",$cvsizes) ; CVAPI(int) cvGetDimSize( const CvArr* arr, int index ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetDimSize","struct*",$cvarr,"int",$cvindex) ; CVAPI(uchar*) cvPtr1D( const CvArr* arr, int idx0, int* type CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvPtr1D","struct*",$cvarr,"int",$cvidx0,"struct*",$cvtype) ; CVAPI(uchar*) cvPtr2D( const CvArr* arr, int idx0, int idx1, int* type CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvPtr2D","struct*",$cvarr,"int",$cvidx0,"int",$cvidx1,"struct*",$cvtype) ; CVAPI(uchar*) cvPtr3D( const CvArr* arr, int idx0, int idx1, int idx2, int* type CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvPtr3D","struct*",$cvarr,"int",$cvidx0,"int",$cvidx1,"int",$cvidx2,"struct*",$cvtype) ; CVAPI(uchar*) cvPtrND( const CvArr* arr, const int* idx, int* type CV_DEFAULT(NULL), int create_node CV_DEFAULT(1), unsigned* precalc_hashval CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvPtrND","struct*",$cvarr,"struct*",$cvidx,"struct*",$cvtype,"int",$cvcreate_node,"struct*",$cvprecalc_hashval) ; CVAPI(CvScalar) cvGet1D( const CvArr* arr, int idx0 ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvGet1D","struct*",$cvarr,"int",$cvidx0) ; CVAPI(CvScalar) cvGet2D( const CvArr* arr, int idx0, int idx1 ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvGet2D","struct*",$cvarr,"int",$cvidx0,"int",$cvidx1) ; CVAPI(CvScalar) cvGet3D( const CvArr* arr, int idx0, int idx1, int idx2 ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvGet3D","struct*",$cvarr,"int",$cvidx0,"int",$cvidx1,"int",$cvidx2) ; CVAPI(CvScalar) cvGetND( const CvArr* arr, const int* idx ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvGetND","struct*",$cvarr,"struct*",$cvidx) ; CVAPI(double) cvGetReal1D( const CvArr* arr, int idx0 ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvGetReal1D","struct*",$cvarr,"int",$cvidx0) ; CVAPI(double) cvGetReal2D( const CvArr* arr, int idx0, int idx1 ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvGetReal2D","struct*",$cvarr,"int",$cvidx0,"int",$cvidx1) ; CVAPI(double) cvGetReal3D( const CvArr* arr, int idx0, int idx1, int idx2 ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvGetReal3D","struct*",$cvarr,"int",$cvidx0,"int",$cvidx1,"int",$cvidx2) ; CVAPI(double) cvGetRealND( const CvArr* arr, const int* idx ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvGetRealND","struct*",$cvarr,"struct*",$cvidx) ; CVAPI(void) cvSet1D( CvArr* arr, int idx0, CvScalar value ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSet1D","struct*",$cvarr,"int",$cvidx0,"struct",$cvvalue) ; CVAPI(void) cvSet2D( CvArr* arr, int idx0, int idx1, CvScalar value ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSet2D","struct*",$cvarr,"int",$cvidx0,"int",$cvidx1,"struct",$cvvalue) ; CVAPI(void) cvSet3D( CvArr* arr, int idx0, int idx1, int idx2, CvScalar value ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSet3D","struct*",$cvarr,"int",$cvidx0,"int",$cvidx1,"int",$cvidx2,"struct",$cvvalue) ; CVAPI(void) cvSetND( CvArr* arr, const int* idx, CvScalar value ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetND","struct*",$cvarr,"struct*",$cvidx,"struct",$cvvalue) ; CVAPI(void) cvSetReal1D( CvArr* arr, int idx0, double value ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetReal1D","struct*",$cvarr,"int",$cvidx0,"double",$cvvalue) ; CVAPI(void) cvSetReal2D( CvArr* arr, int idx0, int idx1, double value ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetReal2D","struct*",$cvarr,"int",$cvidx0,"int",$cvidx1,"double",$cvvalue) ; CVAPI(void) cvSetReal3D( CvArr* arr, int idx0, int idx1, int idx2, double value ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetReal3D","struct*",$cvarr,"int",$cvidx0,"int",$cvidx1,"int",$cvidx2,"double",$cvvalue) ; CVAPI(void) cvSetRealND( CvArr* arr, const int* idx, double value ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetRealND","struct*",$cvarr,"struct*",$cvidx,"double",$cvvalue) ; CVAPI(void) cvClearND( CvArr* arr, const int* idx ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvClearND","struct*",$cvarr,"struct*",$cvidx) ; CVAPI(CvMat*) cvGetMat( const CvArr* arr, CvMat* header, int* coi CV_DEFAULT(NULL), int allowND CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetMat","struct*",$cvarr,"struct*",$cvheader,"struct*",$cvcoi,"int",$cvallowND) ; CVAPI(IplImage*) cvGetImage( const CvArr* arr, IplImage* image_header ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetImage","struct*",$cvarr,"struct*",$cvimage_header) ; CVAPI(CvArr*) cvReshapeMatND( const CvArr* arr, int sizeof_header, CvArr* header, int new_cn, int new_dims, int* new_sizes ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvReshapeMatND","struct*",$cvarr,"int",$cvsizeof_header,"struct*",$cvheader,"int",$cvnew_cn,"int",$cvnew_dims,"struct*",$cvnew_sizes) ; CVAPI(CvMat*) cvReshape( const CvArr* arr, CvMat* header, int new_cn, int new_rows CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvReshape","struct*",$cvarr,"struct*",$cvheader,"int",$cvnew_cn,"int",$cvnew_rows) ; CVAPI(void) cvRepeat( const CvArr* src, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvRepeat","struct*",$cvsrc,"struct*",$cvdst) ; CVAPI(void) cvCreateData( CvArr* arr ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCreateData","struct*",$cvarr) ; CVAPI(void) cvReleaseData( CvArr* arr ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleaseData","struct*",$cvarr) ; CVAPI(void) cvSetData( CvArr* arr, void* data, int step ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetData","struct*",$cvarr,"struct*",$cvdata,"int",$cvstep) ; CVAPI(void) cvGetRawData( const CvArr* arr, uchar** data, int* step CV_DEFAULT(NULL), CvSize* roi_size CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvGetRawData","struct*",$cvarr,"struct*",$cvdata,"struct*",$cvstep,"struct*",$cvroi_size) ; CVAPI(CvSize) cvGetSize( const CvArr* arr ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvGetSize","struct*",$cvarr) ; CVAPI(void) cvCopy( const CvArr* src, CvArr* dst, const CvArr* mask CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCopy","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvmask) ; CVAPI(void) cvSet( CvArr* arr, CvScalar value, const CvArr* mask CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSet","struct*",$cvarr,"struct",$cvvalue,"struct*",$cvmask) ; CVAPI(void) cvSetZero( CvArr* arr ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetZero","struct*",$cvarr) ; CVAPI(void) cvSplit( const CvArr* src, CvArr* dst0, CvArr* dst1, CvArr* dst2, CvArr* dst3 ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSplit","struct*",$cvsrc,"struct*",$cvdst0,"struct*",$cvdst1,"struct*",$cvdst2,"struct*",$cvdst3) ; CVAPI(void) cvMerge( const CvArr* src0, const CvArr* src1, const CvArr* src2, const CvArr* src3, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMerge","struct*",$cvsrc0,"struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvsrc3,"struct*",$cvdst) ; CVAPI(void) cvMixChannels( const CvArr** src, int src_count, CvArr** dst, int dst_count, const int* from_to, int pair_count ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMixChannels","struct*",$cvsrc,"int",$cvsrc_count,"struct*",$cvdst,"int",$cvdst_count,"struct*",$cvfrom_to,"int",$cvpair_count) ; CVAPI(void) cvConvertScale( const CvArr* src, CvArr* dst, double scale CV_DEFAULT(1), double shift CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvConvertScale","struct*",$cvsrc,"struct*",$cvdst,"double",$cvscale,"double",$cvshift) ; CVAPI(void) cvConvertScaleAbs( const CvArr* src, CvArr* dst, double scale CV_DEFAULT(1), double shift CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvConvertScaleAbs","struct*",$cvsrc,"struct*",$cvdst,"double",$cvscale,"double",$cvshift) ; CVAPI(CvTermCriteria) cvCheckTermCriteria( CvTermCriteria criteria, double default_eps, int default_max_iters ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvCheckTermCriteria","struct",$cvcriteria,"double",$cvdefault_eps,"int",$cvdefault_max_iters) ; CVAPI(void) cvAdd( const CvArr* src1, const CvArr* src2, CvArr* dst, const CvArr* mask CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvAdd","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst,"struct*",$cvmask) ; CVAPI(void) cvAddS( const CvArr* src, CvScalar value, CvArr* dst, const CvArr* mask CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvAddS","struct*",$cvsrc,"struct",$cvvalue,"struct*",$cvdst,"struct*",$cvmask) ; CVAPI(void) cvSub( const CvArr* src1, const CvArr* src2, CvArr* dst, const CvArr* mask CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSub","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst,"struct*",$cvmask) ; CVAPI(void) cvSubRS( const CvArr* src, CvScalar value, CvArr* dst, const CvArr* mask CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSubRS","struct*",$cvsrc,"struct",$cvvalue,"struct*",$cvdst,"struct*",$cvmask) ; CVAPI(void) cvMul( const CvArr* src1, const CvArr* src2, CvArr* dst, double scale CV_DEFAULT(1) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMul","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst,"double",$cvscale) ; CVAPI(void) cvDiv( const CvArr* src1, const CvArr* src2, CvArr* dst, double scale CV_DEFAULT(1)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvDiv","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst,"double",$cvscale) ; CVAPI(void) cvScaleAdd( const CvArr* src1, CvScalar scale, const CvArr* src2, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvScaleAdd","struct*",$cvsrc1,"struct",$cvscale,"struct*",$cvsrc2,"struct*",$cvdst) ; CVAPI(void) cvAddWeighted( const CvArr* src1, double alpha, const CvArr* src2, double beta, double gamma, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvAddWeighted","struct*",$cvsrc1,"double",$cvalpha,"struct*",$cvsrc2,"double",$cvbeta,"double",$cvgamma,"struct*",$cvdst) ; CVAPI(double) cvDotProduct( const CvArr* src1, const CvArr* src2 ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvDotProduct","struct*",$cvsrc1,"struct*",$cvsrc2) ; CVAPI(void) cvAnd( const CvArr* src1, const CvArr* src2, CvArr* dst, const CvArr* mask CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvAnd","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst,"struct*",$cvmask) ; CVAPI(void) cvAndS( const CvArr* src, CvScalar value, CvArr* dst, const CvArr* mask CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvAndS","struct*",$cvsrc,"struct",$cvvalue,"struct*",$cvdst,"struct*",$cvmask) ; CVAPI(void) cvOr( const CvArr* src1, const CvArr* src2, CvArr* dst, const CvArr* mask CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvOr","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst,"struct*",$cvmask) ; CVAPI(void) cvOrS( const CvArr* src, CvScalar value, CvArr* dst, const CvArr* mask CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvOrS","struct*",$cvsrc,"struct",$cvvalue,"struct*",$cvdst,"struct*",$cvmask) ; CVAPI(void) cvXor( const CvArr* src1, const CvArr* src2, CvArr* dst, const CvArr* mask CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvXor","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst,"struct*",$cvmask) ; CVAPI(void) cvXorS( const CvArr* src, CvScalar value, CvArr* dst, const CvArr* mask CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvXorS","struct*",$cvsrc,"struct",$cvvalue,"struct*",$cvdst,"struct*",$cvmask) ; CVAPI(void) cvNot( const CvArr* src, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvNot","struct*",$cvsrc,"struct*",$cvdst) ; CVAPI(void) cvInRange( const CvArr* src, const CvArr* lower, const CvArr* upper, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvInRange","struct*",$cvsrc,"struct*",$cvlower,"struct*",$cvupper,"struct*",$cvdst) ; CVAPI(void) cvInRangeS( const CvArr* src, CvScalar lower, CvScalar upper, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvInRangeS","struct*",$cvsrc,"struct",$cvlower,"struct",$cvupper,"struct*",$cvdst) ; CVAPI(void) cvCmp( const CvArr* src1, const CvArr* src2, CvArr* dst, int cmp_op ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCmp","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst,"int",$cvcmp_op) ; CVAPI(void) cvCmpS( const CvArr* src, double value, CvArr* dst, int cmp_op ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCmpS","struct*",$cvsrc,"double",$cvvalue,"struct*",$cvdst,"int",$cvcmp_op) ; CVAPI(void) cvMin( const CvArr* src1, const CvArr* src2, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMin","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst) ; CVAPI(void) cvMax( const CvArr* src1, const CvArr* src2, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMax","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst) ; CVAPI(void) cvMinS( const CvArr* src, double value, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMinS","struct*",$cvsrc,"double",$cvvalue,"struct*",$cvdst) ; CVAPI(void) cvMaxS( const CvArr* src, double value, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMaxS","struct*",$cvsrc,"double",$cvvalue,"struct*",$cvdst) ; CVAPI(void) cvAbsDiff( const CvArr* src1, const CvArr* src2, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvAbsDiff","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst) ; CVAPI(void) cvAbsDiffS( const CvArr* src, CvArr* dst, CvScalar value ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvAbsDiffS","struct*",$cvsrc,"struct*",$cvdst,"struct",$cvvalue) ; CVAPI(void) cvCartToPolar( const CvArr* x, const CvArr* y, CvArr* magnitude, CvArr* angle CV_DEFAULT(NULL), int angle_in_degrees CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCartToPolar","struct*",$cvx,"struct*",$cvy,"struct*",$cvmagnitude,"struct*",$cvangle,"int",$cvangle_in_degrees) ; CVAPI(void) cvPolarToCart( const CvArr* magnitude, const CvArr* angle, CvArr* x, CvArr* y, int angle_in_degrees CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvPolarToCart","struct*",$cvmagnitude,"struct*",$cvangle,"struct*",$cvx,"struct*",$cvy,"int",$cvangle_in_degrees) ; CVAPI(void) cvPow( const CvArr* src, CvArr* dst, double power ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvPow","struct*",$cvsrc,"struct*",$cvdst,"double",$cvpower) ; CVAPI(void) cvExp( const CvArr* src, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvExp","struct*",$cvsrc,"struct*",$cvdst) ; CVAPI(void) cvLog( const CvArr* src, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvLog","struct*",$cvsrc,"struct*",$cvdst) ; CVAPI(float) cvFastArctan( float y, float x ); ; local $_aResult = DllCall($_opencv_worldDLL,"float:cdecl","cvFastArctan","struct",$cvy,"struct",$cvx) ; CVAPI(float) cvCbrt( float value ); ; local $_aResult = DllCall($_opencv_worldDLL,"float:cdecl","cvCbrt","struct",$cvvalue) ; CVAPI(int) cvCheckArr( const CvArr* arr, int flags CV_DEFAULT(0), double min_val CV_DEFAULT(0), double max_val CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvCheckArr","struct*",$cvarr,"int",$cvflags,"double",$cvmin_val,"double",$cvmax_val) ; CVAPI(void) cvRandArr( CvRNG* rng, CvArr* arr, int dist_type, CvScalar param1, CvScalar param2 ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvRandArr","struct*",$cvrng,"struct*",$cvarr,"int",$cvdist_type,"struct",$cvparam1,"struct",$cvparam2) ; CVAPI(void) cvRandShuffle( CvArr* mat, CvRNG* rng, double iter_factor CV_DEFAULT(1.)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvRandShuffle","struct*",$cvmat,"struct*",$cvrng,"double",$cviter_factor) ; CVAPI(void) cvSort( const CvArr* src, CvArr* dst CV_DEFAULT(NULL), CvArr* idxmat CV_DEFAULT(NULL), int flags CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSort","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvidxmat,"int",$cvflags) ; CVAPI(int) cvSolveCubic( const CvMat* coeffs, CvMat* roots ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvSolveCubic","struct*",$cvcoeffs,"struct*",$cvroots) ; CVAPI(void) cvSolvePoly(const CvMat* coeffs, CvMat* roots2, int maxiter CV_DEFAULT(20), int fig CV_DEFAULT(100)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSolvePoly","struct*",$cvcoeffs,"struct*",$cvroots2,"int",$cvmaxiter,"int",$cvfig) ; CVAPI(void) cvCrossProduct( const CvArr* src1, const CvArr* src2, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCrossProduct","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst) ; CVAPI(void) cvGEMM( const CvArr* src1, const CvArr* src2, double alpha, const CvArr* src3, double beta, CvArr* dst, int tABC CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvGEMM","struct*",$cvsrc1,"struct*",$cvsrc2,"double",$cvalpha,"struct*",$cvsrc3,"double",$cvbeta,"struct*",$cvdst,"int",$cvtABC) ; CVAPI(void) cvTransform( const CvArr* src, CvArr* dst, const CvMat* transmat, const CvMat* shiftvec CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvTransform","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvtransmat,"struct*",$cvshiftvec) ; CVAPI(void) cvPerspectiveTransform( const CvArr* src, CvArr* dst, const CvMat* mat ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvPerspectiveTransform","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvmat) ; CVAPI(void) cvMulTransposed( const CvArr* src, CvArr* dst, int order, const CvArr* delta CV_DEFAULT(NULL), double scale CV_DEFAULT(1.) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMulTransposed","struct*",$cvsrc,"struct*",$cvdst,"int",$cvorder,"struct*",$cvdelta,"double",$cvscale) ; CVAPI(void) cvTranspose( const CvArr* src, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvTranspose","struct*",$cvsrc,"struct*",$cvdst) ; CVAPI(void) cvCompleteSymm( CvMat* matrix, int LtoR CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCompleteSymm","struct*",$cvmatrix,"int",$cvLtoR) ; CVAPI(void) cvFlip( const CvArr* src, CvArr* dst CV_DEFAULT(NULL), int flip_mode CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvFlip","struct*",$cvsrc,"struct*",$cvdst,"int",$cvflip_mode) ; CVAPI(void) cvSVD( CvArr* A, CvArr* W, CvArr* U CV_DEFAULT(NULL), CvArr* V CV_DEFAULT(NULL), int flags CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSVD","struct*",$cvA,"struct*",$cvW,"struct*",$cvU,"struct*",$cvV,"int",$cvflags) ; CVAPI(void) cvSVBkSb( const CvArr* W, const CvArr* U, const CvArr* V, const CvArr* B, CvArr* X, int flags ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSVBkSb","struct*",$cvW,"struct*",$cvU,"struct*",$cvV,"struct*",$cvB,"struct*",$cvX,"int",$cvflags) ; CVAPI(double) cvInvert( const CvArr* src, CvArr* dst, int method CV_DEFAULT(CV_LU)); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvInvert","struct*",$cvsrc,"struct*",$cvdst,"int",$cvmethod) ; CVAPI(int) cvSolve( const CvArr* src1, const CvArr* src2, CvArr* dst, int method CV_DEFAULT(CV_LU)); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvSolve","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst,"int",$cvmethod) ; CVAPI(double) cvDet( const CvArr* mat ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvDet","struct*",$cvmat) ; CVAPI(CvScalar) cvTrace( const CvArr* mat ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvTrace","struct*",$cvmat) ; CVAPI(void) cvEigenVV( CvArr* mat, CvArr* evects, CvArr* evals, double eps CV_DEFAULT(0), int lowindex CV_DEFAULT(-1), int highindex CV_DEFAULT(-1)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvEigenVV","struct*",$cvmat,"struct*",$cvevects,"struct*",$cvevals,"double",$cveps,"int",$cvlowindex,"int",$cvhighindex) ; CVAPI(void) cvSetIdentity( CvArr* mat, CvScalar value CV_DEFAULT(cvRealScalar(1)) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetIdentity","struct*",$cvmat,"struct",$cvvalue,"struct",$cv,"struct",$cv) ; CVAPI(CvArr*) cvRange( CvArr* mat, double start, double end ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvRange","struct*",$cvmat,"double",$cvstart,"double",$cvend) ; CVAPI(void) cvCalcCovarMatrix( const CvArr** vects, int count, CvArr* cov_mat, CvArr* avg, int flags ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCalcCovarMatrix","struct*",$cvvects,"int",$cvcount,"struct*",$cvcov_mat,"struct*",$cvavg,"int",$cvflags) ; CVAPI(void) cvCalcPCA( const CvArr* data, CvArr* mean, CvArr* eigenvals, CvArr* eigenvects, int flags ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCalcPCA","struct*",$cvdata,"struct*",$cvmean,"struct*",$cveigenvals,"struct*",$cveigenvects,"int",$cvflags) ; CVAPI(void) cvProjectPCA( const CvArr* data, const CvArr* mean, const CvArr* eigenvects, CvArr* result ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvProjectPCA","struct*",$cvdata,"struct*",$cvmean,"struct*",$cveigenvects,"struct*",$cvresult) ; CVAPI(void) cvBackProjectPCA( const CvArr* proj, const CvArr* mean, const CvArr* eigenvects, CvArr* result ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvBackProjectPCA","struct*",$cvproj,"struct*",$cvmean,"struct*",$cveigenvects,"struct*",$cvresult) ; CVAPI(double) cvMahalanobis( const CvArr* vec1, const CvArr* vec2, const CvArr* mat ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvMahalanobis","struct*",$cvvec1,"struct*",$cvvec2,"struct*",$cvmat) ; CVAPI(CvScalar) cvSum( const CvArr* arr ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvSum","struct*",$cvarr) ; CVAPI(int) cvCountNonZero( const CvArr* arr ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvCountNonZero","struct*",$cvarr) ; CVAPI(CvScalar) cvAvg( const CvArr* arr, const CvArr* mask CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvAvg","struct*",$cvarr,"struct*",$cvmask) ; CVAPI(void) cvAvgSdv( const CvArr* arr, CvScalar* mean, CvScalar* std_dev, const CvArr* mask CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvAvgSdv","struct*",$cvarr,"struct*",$cvmean,"struct*",$cvstd_dev,"struct*",$cvmask) ; CVAPI(void) cvMinMaxLoc( const CvArr* arr, double* min_val, double* max_val, CvPoint* min_loc CV_DEFAULT(NULL), CvPoint* max_loc CV_DEFAULT(NULL), const CvArr* mask CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMinMaxLoc","struct*",$cvarr,"struct*",$cvmin_val,"struct*",$cvmax_val,"struct*",$cvmin_loc,"struct*",$cvmax_loc,"struct*",$cvmask) ; CVAPI(double) cvNorm( const CvArr* arr1, const CvArr* arr2 CV_DEFAULT(NULL), int norm_type CV_DEFAULT(CV_L2), const CvArr* mask CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvNorm","struct*",$cvarr1,"struct*",$cvarr2,"int",$cvnorm_type,"struct*",$cvmask) ; CVAPI(void) cvNormalize( const CvArr* src, CvArr* dst, double a CV_DEFAULT(1.), double b CV_DEFAULT(0.), int norm_type CV_DEFAULT(CV_L2), const CvArr* mask CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvNormalize","struct*",$cvsrc,"struct*",$cvdst,"double",$cva,"double",$cvb,"int",$cvnorm_type,"struct*",$cvmask) ; CVAPI(void) cvReduce( const CvArr* src, CvArr* dst, int dim CV_DEFAULT(-1), int op CV_DEFAULT(CV_REDUCE_SUM) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReduce","struct*",$cvsrc,"struct*",$cvdst,"int",$cvdim,"int",$cvop) ; CVAPI(void) cvDFT( const CvArr* src, CvArr* dst, int flags, int nonzero_rows CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvDFT","struct*",$cvsrc,"struct*",$cvdst,"int",$cvflags,"int",$cvnonzero_rows) ; CVAPI(void) cvMulSpectrums( const CvArr* src1, const CvArr* src2, CvArr* dst, int flags ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMulSpectrums","struct*",$cvsrc1,"struct*",$cvsrc2,"struct*",$cvdst,"int",$cvflags) ; CVAPI(int) cvGetOptimalDFTSize( int size0 ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetOptimalDFTSize","int",$cvsize0) ; CVAPI(void) cvDCT( const CvArr* src, CvArr* dst, int flags ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvDCT","struct*",$cvsrc,"struct*",$cvdst,"int",$cvflags) ; CVAPI(int) cvSliceLength( CvSlice slice, const CvSeq* seq ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvSliceLength","struct",$cvslice,"struct*",$cvseq) ; CVAPI(CvMemStorage*) cvCreateMemStorage( int block_size CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateMemStorage","int",$cvblock_size) ; CVAPI(CvMemStorage*) cvCreateChildMemStorage( CvMemStorage* parent ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateChildMemStorage","struct*",$cvparent) ; CVAPI(void) cvReleaseMemStorage( CvMemStorage** storage ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleaseMemStorage","struct*",$cvstorage) ; CVAPI(void) cvClearMemStorage( CvMemStorage* storage ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvClearMemStorage","struct*",$cvstorage) ; CVAPI(void) cvSaveMemStoragePos( const CvMemStorage* storage, CvMemStoragePos* pos ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSaveMemStoragePos","struct*",$cvstorage,"struct*",$cvpos) ; CVAPI(void) cvRestoreMemStoragePos( CvMemStorage* storage, CvMemStoragePos* pos ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvRestoreMemStoragePos","struct*",$cvstorage,"struct*",$cvpos) ; CVAPI(void*) cvMemStorageAlloc( CvMemStorage* storage, size_t size ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvMemStorageAlloc","struct*",$cvstorage,"ulong_ptr",$cvsize) ; CVAPI(CvSeq*) cvCreateSeq( int seq_flags, size_t header_size, size_t elem_size, CvMemStorage* storage ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateSeq","int",$cvseq_flags,"ulong_ptr",$cvheader_size,"ulong_ptr",$cvelem_size,"struct*",$cvstorage) ; CVAPI(void) cvSetSeqBlockSize( CvSeq* seq, int delta_elems ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetSeqBlockSize","struct*",$cvseq,"int",$cvdelta_elems) ; CVAPI(schar*) cvSeqPush( CvSeq* seq, const void* element CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvSeqPush","struct*",$cvseq,"struct*",$cvelement) ; CVAPI(schar*) cvSeqPushFront( CvSeq* seq, const void* element CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvSeqPushFront","struct*",$cvseq,"struct*",$cvelement) ; CVAPI(void) cvSeqPop( CvSeq* seq, void* element CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSeqPop","struct*",$cvseq,"struct*",$cvelement) ; CVAPI(void) cvSeqPopFront( CvSeq* seq, void* element CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSeqPopFront","struct*",$cvseq,"struct*",$cvelement) ; CVAPI(void) cvSeqPushMulti( CvSeq* seq, const void* elements, int count, int in_front CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSeqPushMulti","struct*",$cvseq,"struct*",$cvelements,"int",$cvcount,"int",$cvin_front) ; CVAPI(void) cvSeqPopMulti( CvSeq* seq, void* elements, int count, int in_front CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSeqPopMulti","struct*",$cvseq,"struct*",$cvelements,"int",$cvcount,"int",$cvin_front) ; CVAPI(schar*) cvSeqInsert( CvSeq* seq, int before_index, const void* element CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvSeqInsert","struct*",$cvseq,"int",$cvbefore_index,"struct*",$cvelement) ; CVAPI(void) cvSeqRemove( CvSeq* seq, int index ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSeqRemove","struct*",$cvseq,"int",$cvindex) ; CVAPI(void) cvClearSeq( CvSeq* seq ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvClearSeq","struct*",$cvseq) ; CVAPI(schar*) cvGetSeqElem( const CvSeq* seq, int index ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetSeqElem","struct*",$cvseq,"int",$cvindex) ; CVAPI(int) cvSeqElemIdx( const CvSeq* seq, const void* element, CvSeqBlock** block CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvSeqElemIdx","struct*",$cvseq,"struct*",$cvelement,"struct*",$cvblock) ; CVAPI(void) cvStartAppendToSeq( CvSeq* seq, CvSeqWriter* writer ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvStartAppendToSeq","struct*",$cvseq,"struct*",$cvwriter) ; CVAPI(void) cvStartWriteSeq( int seq_flags, int header_size, int elem_size, CvMemStorage* storage, CvSeqWriter* writer ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvStartWriteSeq","int",$cvseq_flags,"int",$cvheader_size,"int",$cvelem_size,"struct*",$cvstorage,"struct*",$cvwriter) ; CVAPI(CvSeq*) cvEndWriteSeq( CvSeqWriter* writer ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvEndWriteSeq","struct*",$cvwriter) ; CVAPI(void) cvFlushSeqWriter( CvSeqWriter* writer ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvFlushSeqWriter","struct*",$cvwriter) ; CVAPI(void) cvStartReadSeq( const CvSeq* seq, CvSeqReader* reader, int reverse CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvStartReadSeq","struct*",$cvseq,"struct*",$cvreader,"int",$cvreverse) ; CVAPI(int) cvGetSeqReaderPos( CvSeqReader* reader ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetSeqReaderPos","struct*",$cvreader) ; CVAPI(void) cvSetSeqReaderPos( CvSeqReader* reader, int index, int is_relative CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetSeqReaderPos","struct*",$cvreader,"int",$cvindex,"int",$cvis_relative) ; CVAPI(void*) cvCvtSeqToArray( const CvSeq* seq, void* elements, CvSlice slice CV_DEFAULT(CV_WHOLE_SEQ) ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCvtSeqToArray","struct*",$cvseq,"struct*",$cvelements,"struct",$cvslice) ; CVAPI(CvSeq*) cvMakeSeqHeaderForArray( int seq_type, int header_size, int elem_size, void* elements, int total, CvSeq* seq, CvSeqBlock* block ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvMakeSeqHeaderForArray","int",$cvseq_type,"int",$cvheader_size,"int",$cvelem_size,"struct*",$cvelements,"int",$cvtotal,"struct*",$cvseq,"struct*",$cvblock) ; CVAPI(CvSeq*) cvSeqSlice( const CvSeq* seq, CvSlice slice, CvMemStorage* storage CV_DEFAULT(NULL), int copy_data CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvSeqSlice","struct*",$cvseq,"struct",$cvslice,"struct*",$cvstorage,"int",$cvcopy_data) ; CVAPI(void) cvSeqRemoveSlice( CvSeq* seq, CvSlice slice ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSeqRemoveSlice","struct*",$cvseq,"struct",$cvslice) ; CVAPI(void) cvSeqInsertSlice( CvSeq* seq, int before_index, const CvArr* from_arr ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSeqInsertSlice","struct*",$cvseq,"int",$cvbefore_index,"struct*",$cvfrom_arr) ; CVAPI(void) cvSeqSort( CvSeq* seq, CvCmpFunc func, void* userdata CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSeqSort","struct*",$cvseq,"struct",$cvfunc,"struct*",$cvuserdata) ; CVAPI(schar*) cvSeqSearch( CvSeq* seq, const void* elem, CvCmpFunc func, int is_sorted, int* elem_idx, void* userdata CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvSeqSearch","struct*",$cvseq,"struct*",$cvelem,"struct",$cvfunc,"int",$cvis_sorted,"struct*",$cvelem_idx,"struct*",$cvuserdata) ; CVAPI(void) cvSeqInvert( CvSeq* seq ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSeqInvert","struct*",$cvseq) ; CVAPI(int) cvSeqPartition( const CvSeq* seq, CvMemStorage* storage, CvSeq** labels, CvCmpFunc is_equal, void* userdata ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvSeqPartition","struct*",$cvseq,"struct*",$cvstorage,"struct*",$cvlabels,"struct",$cvis_equal,"struct*",$cvuserdata) ; CVAPI(void) cvChangeSeqBlock( void* reader, int direction ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvChangeSeqBlock","struct*",$cvreader,"int",$cvdirection) ; CVAPI(void) cvCreateSeqBlock( CvSeqWriter* writer ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCreateSeqBlock","struct*",$cvwriter) ; CVAPI(CvSet*) cvCreateSet( int set_flags, int header_size, int elem_size, CvMemStorage* storage ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateSet","int",$cvset_flags,"int",$cvheader_size,"int",$cvelem_size,"struct*",$cvstorage) ; CVAPI(int) cvSetAdd( CvSet* set_header, CvSetElem* elem CV_DEFAULT(NULL), CvSetElem** inserted_elem CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvSetAdd","struct*",$cvset_header,"struct*",$cvelem,"struct*",$cvinserted_elem) ; CVAPI(void) cvSetRemove( CvSet* set_header, int index ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetRemove","struct*",$cvset_header,"int",$cvindex) ; CVAPI(void) cvClearSet( CvSet* set_header ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvClearSet","struct*",$cvset_header) ; CVAPI(CvGraph*) cvCreateGraph( int graph_flags, int header_size, int vtx_size, int edge_size, CvMemStorage* storage ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateGraph","int",$cvgraph_flags,"int",$cvheader_size,"int",$cvvtx_size,"int",$cvedge_size,"struct*",$cvstorage) ; CVAPI(int) cvGraphAddVtx( CvGraph* graph, const CvGraphVtx* vtx CV_DEFAULT(NULL), CvGraphVtx** inserted_vtx CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGraphAddVtx","struct*",$cvgraph,"struct*",$cvvtx,"struct*",$cvinserted_vtx) ; CVAPI(int) cvGraphRemoveVtx( CvGraph* graph, int index ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGraphRemoveVtx","struct*",$cvgraph,"int",$cvindex) ; CVAPI(int) cvGraphRemoveVtxByPtr( CvGraph* graph, CvGraphVtx* vtx ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGraphRemoveVtxByPtr","struct*",$cvgraph,"struct*",$cvvtx) ; CVAPI(int) cvGraphAddEdge( CvGraph* graph, int start_idx, int end_idx, const CvGraphEdge* edge CV_DEFAULT(NULL), CvGraphEdge** inserted_edge CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGraphAddEdge","struct*",$cvgraph,"int",$cvstart_idx,"int",$cvend_idx,"struct*",$cvedge,"struct*",$cvinserted_edge) ; CVAPI(int) cvGraphAddEdgeByPtr( CvGraph* graph, CvGraphVtx* start_vtx, CvGraphVtx* end_vtx, const CvGraphEdge* edge CV_DEFAULT(NULL), CvGraphEdge** inserted_edge CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGraphAddEdgeByPtr","struct*",$cvgraph,"struct*",$cvstart_vtx,"struct*",$cvend_vtx,"struct*",$cvedge,"struct*",$cvinserted_edge) ; CVAPI(void) cvGraphRemoveEdge( CvGraph* graph, int start_idx, int end_idx ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvGraphRemoveEdge","struct*",$cvgraph,"int",$cvstart_idx,"int",$cvend_idx) ; CVAPI(void) cvGraphRemoveEdgeByPtr( CvGraph* graph, CvGraphVtx* start_vtx, CvGraphVtx* end_vtx ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvGraphRemoveEdgeByPtr","struct*",$cvgraph,"struct*",$cvstart_vtx,"struct*",$cvend_vtx) ; CVAPI(CvGraphEdge*) cvFindGraphEdge( const CvGraph* graph, int start_idx, int end_idx ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvFindGraphEdge","struct*",$cvgraph,"int",$cvstart_idx,"int",$cvend_idx) ; CVAPI(CvGraphEdge*) cvFindGraphEdgeByPtr( const CvGraph* graph, const CvGraphVtx* start_vtx, const CvGraphVtx* end_vtx ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvFindGraphEdgeByPtr","struct*",$cvgraph,"struct*",$cvstart_vtx,"struct*",$cvend_vtx) ; CVAPI(void) cvClearGraph( CvGraph* graph ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvClearGraph","struct*",$cvgraph) ; CVAPI(int) cvGraphVtxDegree( const CvGraph* graph, int vtx_idx ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGraphVtxDegree","struct*",$cvgraph,"int",$cvvtx_idx) ; CVAPI(int) cvGraphVtxDegreeByPtr( const CvGraph* graph, const CvGraphVtx* vtx ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGraphVtxDegreeByPtr","struct*",$cvgraph,"struct*",$cvvtx) ; CVAPI(CvGraphScanner*) cvCreateGraphScanner( CvGraph* graph, CvGraphVtx* vtx CV_DEFAULT(NULL), int mask CV_DEFAULT(CV_GRAPH_ALL_ITEMS)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateGraphScanner","struct*",$cvgraph,"struct*",$cvvtx,"int",$cvmask) ; CVAPI(void) cvReleaseGraphScanner( CvGraphScanner** scanner ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleaseGraphScanner","struct*",$cvscanner) ; CVAPI(int) cvNextGraphItem( CvGraphScanner* scanner ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvNextGraphItem","struct*",$cvscanner) ; CVAPI(CvGraph*) cvCloneGraph( const CvGraph* graph, CvMemStorage* storage ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCloneGraph","struct*",$cvgraph,"struct*",$cvstorage) ; CVAPI(void) cvLUT( const CvArr* src, CvArr* dst, const CvArr* lut ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvLUT","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvlut) ; CVAPI(void) cvInitTreeNodeIterator( CvTreeNodeIterator* tree_iterator, const void* first, int max_level ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvInitTreeNodeIterator","struct*",$cvtree_iterator,"struct*",$cvfirst,"int",$cvmax_level) ; CVAPI(void*) cvNextTreeNode( CvTreeNodeIterator* tree_iterator ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvNextTreeNode","struct*",$cvtree_iterator) ; CVAPI(void*) cvPrevTreeNode( CvTreeNodeIterator* tree_iterator ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvPrevTreeNode","struct*",$cvtree_iterator) ; CVAPI(void) cvInsertNodeIntoTree( void* node, void* parent, void* frame ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvInsertNodeIntoTree","struct*",$cvnode,"struct*",$cvparent,"struct*",$cvframe) ; CVAPI(void) cvRemoveNodeFromTree( void* node, void* frame ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvRemoveNodeFromTree","struct*",$cvnode,"struct*",$cvframe) ; CVAPI(CvSeq*) cvTreeToNodeSeq( const void* first, int header_size, CvMemStorage* storage ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvTreeToNodeSeq","struct*",$cvfirst,"int",$cvheader_size,"struct*",$cvstorage) ; CVAPI(int) cvKMeans2( const CvArr* samples, int cluster_count, CvArr* labels, CvTermCriteria termcrit, int attempts CV_DEFAULT(1), CvRNG* rng CV_DEFAULT(0), int flags CV_DEFAULT(0), CvArr* _centers CV_DEFAULT(0), double* compactness CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvKMeans2","struct*",$cvsamples,"int",$cvcluster_count,"struct*",$cvlabels,"struct",$cvtermcrit,"int",$cvattempts,"struct*",$cvrng,"int",$cvflags,"struct*",$cv_centers,"struct*",$cvcompactness) ; CVAPI(int) cvUseOptimized( int on_off ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvUseOptimized","int",$cvon_off) ; CVAPI(void) cvSetIPLAllocators( Cv_iplCreateImageHeader create_header, Cv_iplAllocateImageData allocate_data, Cv_iplDeallocate deallocate, Cv_iplCreateROI create_roi, Cv_iplCloneImage clone_image ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetIPLAllocators","struct",$cvcreate_header,"struct",$cvallocate_data,"struct",$cvdeallocate,"struct",$cvcreate_roi,"struct",$cvclone_image) ; CVAPI(CvFileStorage*) cvOpenFileStorage( const char* filename, CvMemStorage* memstorage, int flags, const char* encoding CV_DEFAULT(NULL) ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvOpenFileStorage","struct*",$cvfilename,"struct*",$cvmemstorage,"int",$cvflags,"struct*",$cvencoding) ; CVAPI(void) cvReleaseFileStorage( CvFileStorage** fs ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleaseFileStorage","struct*",$cvfs) ; CVAPI(const char*) cvAttrValue( const CvAttrList* attr, const char* attr_name ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvAttrValue","struct*",$cvattr,"struct*",$cvattr_name) ; CVAPI(void) cvStartWriteStruct( CvFileStorage* fs, const char* name, int struct_flags, const char* type_name CV_DEFAULT(NULL), CvAttrList attributes CV_DEFAULT(cvAttrList())); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvStartWriteStruct","struct*",$cvfs,"struct*",$cvname,"int",$cvstruct_flags,"struct*",$cvtype_name,"struct",$cvattributes,"struct",$cv,"struct",$cv) ; CVAPI(void) cvEndWriteStruct( CvFileStorage* fs ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvEndWriteStruct","struct*",$cvfs) ; CVAPI(void) cvWriteInt( CvFileStorage* fs, const char* name, int value ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvWriteInt","struct*",$cvfs,"struct*",$cvname,"int",$cvvalue) ; CVAPI(void) cvWriteReal( CvFileStorage* fs, const char* name, double value ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvWriteReal","struct*",$cvfs,"struct*",$cvname,"double",$cvvalue) ; CVAPI(void) cvWriteString( CvFileStorage* fs, const char* name, const char* str, int quote CV_DEFAULT(0) ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvWriteString","struct*",$cvfs,"struct*",$cvname,"struct*",$cvstr,"int",$cvquote) ; CVAPI(void) cvWriteComment( CvFileStorage* fs, const char* comment, int eol_comment ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvWriteComment","struct*",$cvfs,"struct*",$cvcomment,"int",$cveol_comment) ; CVAPI(void) cvWrite( CvFileStorage* fs, const char* name, const void* ptr, CvAttrList attributes CV_DEFAULT(cvAttrList())); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvWrite","struct*",$cvfs,"struct*",$cvname,"struct*",$cvptr,"struct",$cvattributes,"struct",$cv,"struct",$cv) ; CVAPI(void) cvStartNextStream( CvFileStorage* fs ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvStartNextStream","struct*",$cvfs) ; CVAPI(void) cvWriteRawData( CvFileStorage* fs, const void* src, int len, const char* dt ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvWriteRawData","struct*",$cvfs,"struct*",$cvsrc,"int",$cvlen,"struct*",$cvdt) ; CVAPI(void) cvWriteRawDataBase64( CvFileStorage* fs, const void* src, int len, const char* dt ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvWriteRawDataBase64","struct*",$cvfs,"struct*",$cvsrc,"int",$cvlen,"struct*",$cvdt) ; CVAPI(CvStringHashNode*) cvGetHashedKey( CvFileStorage* fs, const char* name, int len CV_DEFAULT(-1), int create_missing CV_DEFAULT(0)); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetHashedKey","struct*",$cvfs,"struct*",$cvname,"int",$cvlen,"int",$cvcreate_missing) ; CVAPI(CvFileNode*) cvGetRootFileNode( const CvFileStorage* fs, int stream_index CV_DEFAULT(0) ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetRootFileNode","struct*",$cvfs,"int",$cvstream_index) ; CVAPI(CvFileNode*) cvGetFileNode( CvFileStorage* fs, CvFileNode* map, const CvStringHashNode* key, int create_missing CV_DEFAULT(0) ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetFileNode","struct*",$cvfs,"struct*",$cvmap,"struct*",$cvkey,"int",$cvcreate_missing) ; CVAPI(CvFileNode*) cvGetFileNodeByName( const CvFileStorage* fs, const CvFileNode* map, const char* name ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetFileNodeByName","struct*",$cvfs,"struct*",$cvmap,"struct*",$cvname) ; CVAPI(void*) cvRead( CvFileStorage* fs, CvFileNode* node, CvAttrList* attributes CV_DEFAULT(NULL)); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvRead","struct*",$cvfs,"struct*",$cvnode,"struct*",$cvattributes) ; CVAPI(void) cvStartReadRawData( const CvFileStorage* fs, const CvFileNode* src, CvSeqReader* reader ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvStartReadRawData","struct*",$cvfs,"struct*",$cvsrc,"struct*",$cvreader) ; CVAPI(void) cvReadRawDataSlice( const CvFileStorage* fs, CvSeqReader* reader, int count, void* dst, const char* dt ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReadRawDataSlice","struct*",$cvfs,"struct*",$cvreader,"int",$cvcount,"struct*",$cvdst,"struct*",$cvdt) ; CVAPI(void) cvReadRawData( const CvFileStorage* fs, const CvFileNode* src, void* dst, const char* dt ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReadRawData","struct*",$cvfs,"struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvdt) ; CVAPI(void) cvWriteFileNode( CvFileStorage* fs, const char* new_node_name, const CvFileNode* node, int embed ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvWriteFileNode","struct*",$cvfs,"struct*",$cvnew_node_name,"struct*",$cvnode,"int",$cvembed) ; CVAPI(const char*) cvGetFileNodeName( const CvFileNode* node ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetFileNodeName","struct*",$cvnode) ; CVAPI(void) cvRegisterType( const CvTypeInfo* info ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvRegisterType","struct*",$cvinfo) ; CVAPI(void) cvUnregisterType( const char* type_name ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvUnregisterType","struct*",$cvtype_name) ; CVAPI(CvTypeInfo*) cvFirstType(void); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvFirstType","struct",$cv) ; CVAPI(CvTypeInfo*) cvFindType( const char* type_name ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvFindType","struct*",$cvtype_name) ; CVAPI(CvTypeInfo*) cvTypeOf( const void* struct_ptr ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvTypeOf","struct*",$cvstruct_ptr) ; CVAPI(void) cvRelease( void** struct_ptr ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvRelease","struct*",$cvstruct_ptr) ; CVAPI(void*) cvClone( const void* struct_ptr ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvClone","struct*",$cvstruct_ptr) ; CVAPI(int64) cvGetTickCount( void ); ; local $_aResult = DllCall($_opencv_worldDLL,"int64:cdecl","cvGetTickCount","struct",$cv) ; CVAPI(double) cvGetTickFrequency( void ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvGetTickFrequency","struct",$cv) ; CVAPI(int) cvCheckHardwareSupport(int feature); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvCheckHardwareSupport","int",$cvfeature) ; CVAPI(int) cvGetNumThreads( void ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetNumThreads","struct",$cv) ; CVAPI(void) cvSetNumThreads( int threads CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetNumThreads","int",$cvthreads) ; CVAPI(int) cvGetThreadNum( void ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetThreadNum","struct",$cv) ; CVAPI(int) cvGetErrStatus( void ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetErrStatus","struct",$cv) ; CVAPI(void) cvSetErrStatus( int status ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetErrStatus","int",$cvstatus) ; CVAPI(int) cvGetErrMode( void ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetErrMode","struct",$cv) ; CVAPI(int) cvSetErrMode( int mode ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvSetErrMode","int",$cvmode) ; CVAPI(void) cvError( int status, const char* func_name, const char* err_msg, const char* file_name, int line ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvError","int",$cvstatus,"struct*",$cvfunc_name,"struct*",$cverr_msg,"struct*",$cvfile_name,"int",$cvline) ; CVAPI(const char*) cvErrorStr( int status ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvErrorStr","int",$cvstatus) ; CVAPI(int) cvGetErrInfo( const char** errcode_desc, const char** description, const char** filename, int* line ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetErrInfo","struct*",$cverrcode_desc,"struct*",$cvdescription,"struct*",$cvfilename,"struct*",$cvline) ; CVAPI(int) cvErrorFromIppStatus( int ipp_status ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvErrorFromIppStatus","int",$cvipp_status) ; CVAPI(CvErrorCallback) cvRedirectError( CvErrorCallback error_handler, void* userdata CV_DEFAULT(NULL), void** prev_userdata CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvRedirectError","struct",$cverror_handler,"struct*",$cvuserdata,"struct*",$cvprev_userdata) ; CVAPI(int) cvNulDevReport( int status, const char* func_name, const char* err_msg, const char* file_name, int line, void* userdata ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvNulDevReport","int",$cvstatus,"struct*",$cvfunc_name,"struct*",$cverr_msg,"struct*",$cvfile_name,"int",$cvline,"struct*",$cvuserdata) ; CVAPI(int) cvStdErrReport( int status, const char* func_name, const char* err_msg, const char* file_name, int line, void* userdata ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvStdErrReport","int",$cvstatus,"struct*",$cvfunc_name,"struct*",$cverr_msg,"struct*",$cvfile_name,"int",$cvline,"struct*",$cvuserdata) ; CVAPI(int) cvGuiBoxReport( int status, const char* func_name, const char* err_msg, const char* file_name, int line, void* userdata ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGuiBoxReport","int",$cvstatus,"struct*",$cvfunc_name,"struct*",$cverr_msg,"struct*",$cvfile_name,"int",$cvline,"struct*",$cvuserdata) #endregion core_c.h #region highgui_c.h ; CVAPI(CvFont) cvFontQt(const char* nameFont, int pointSize CV_DEFAULT(-1), CvScalar color CV_DEFAULT(cvScalarAll(0)), int weight CV_DEFAULT(CV_FONT_NORMAL), int style CV_DEFAULT(CV_STYLE_NORMAL), int spacing CV_DEFAULT(0)); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvFontQt","struct*",$cvnameFont,"int",$cvpointSize,"struct",$cvcolor,"struct",$cv,"struct",$cv,"int",$cvweight,"int",$cvstyle,"int",$cvspacing) ; CVAPI(void) cvAddText(const CvArr* img, const char* text, CvPoint org, CvFont* arg2); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvAddText","struct*",$cvimg,"struct*",$cvtext,"struct",$cvorg,"struct*",$cvarg2) ; CVAPI(void) cvDisplayOverlay(const char* name, const char* text, int delayms CV_DEFAULT(0)); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvDisplayOverlay","struct*",$cvname,"struct*",$cvtext,"int",$cvdelayms) ; CVAPI(void) cvDisplayStatusBar(const char* name, const char* text, int delayms CV_DEFAULT(0)); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvDisplayStatusBar","struct*",$cvname,"struct*",$cvtext,"int",$cvdelayms) ; CVAPI(void) cvSaveWindowParameters(const char* name); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSaveWindowParameters","struct*",$cvname) ; CVAPI(void) cvLoadWindowParameters(const char* name); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvLoadWindowParameters","struct*",$cvname) ; CVAPI(int) cvStartLoop(int (*pt2Func)(int argc, char* argv[]), int argc, char* argv[]); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvStartLoop","int",$cv,"struct",$cv,"struct",$cv,"int",$cvargc,"struct*",$cvargv[],"struct",$cv,"int",$cvargc,"struct*",$cvargv[]) ; CVAPI(void) cvStopLoop( void ); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvStopLoop","struct",$cv) ; CVAPI(int) cvCreateButton( const char* button_name CV_DEFAULT(NULL),CvButtonCallback on_change CV_DEFAULT(NULL), void* userdata CV_DEFAULT(NULL) , int button_type CV_DEFAULT(CV_PUSH_BUTTON), int initial_button_state CV_DEFAULT(0)); ; ;TODO: Other dll local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvCreateButton","struct*",$cvbutton_name,"struct",$cvon_change,"struct*",$cvuserdata,"int",$cvbutton_type,"int",$cvinitial_button_state) ; CVAPI(int) cvInitSystem( int argc, char** argv ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvInitSystem","int",$cvargc,"struct*",$cvargv) ; CVAPI(int) cvStartWindowThread( void ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvStartWindowThread","struct",$cv) ; CVAPI(int) cvNamedWindow( const char* name, int flags CV_DEFAULT(CV_WINDOW_AUTOSIZE) ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvNamedWindow","struct*",$cvname,"int",$cvflags) ; CVAPI(void) cvSetWindowProperty(const char* name, int prop_id, double prop_value); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetWindowProperty","struct*",$cvname,"int",$cvprop_id,"double",$cvprop_value) ; CVAPI(double) cvGetWindowProperty(const char* name, int prop_id); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvGetWindowProperty","struct*",$cvname,"int",$cvprop_id) ; CVAPI(cv::Rect)cvGetWindowImageRect(const char* name); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvGetWindowImageRect","struct*",$cvname) ; CVAPI(void) cvShowImage( const char* name, const CvArr* image ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvShowImage","struct*",$cvname,"struct*",$cvimage) ; CVAPI(void) cvResizeWindow( const char* name, int width, int height ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvResizeWindow","struct*",$cvname,"int",$cvwidth,"int",$cvheight) ; CVAPI(void) cvMoveWindow( const char* name, int x, int y ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMoveWindow","struct*",$cvname,"int",$cvx,"int",$cvy) ; CVAPI(void) cvDestroyWindow( const char* name ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvDestroyWindow","struct*",$cvname) ; CVAPI(void) cvDestroyAllWindows(void); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvDestroyAllWindows","struct",$cv) ; CVAPI(void*) cvGetWindowHandle( const char* name ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetWindowHandle","struct*",$cvname) ; CVAPI(const char*) cvGetWindowName( void* window_handle ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetWindowName","struct*",$cvwindow_handle) ; CVAPI(int) cvCreateTrackbar( const char* trackbar_name, const char* window_name, int* value, int count, CvTrackbarCallback on_change CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvCreateTrackbar","struct*",$cvtrackbar_name,"struct*",$cvwindow_name,"struct*",$cvvalue,"int",$cvcount,"struct",$cvon_change) ; CVAPI(int) cvCreateTrackbar2( const char* trackbar_name, const char* window_name, int* value, int count, CvTrackbarCallback2 on_change, void* userdata CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvCreateTrackbar2","struct*",$cvtrackbar_name,"struct*",$cvwindow_name,"struct*",$cvvalue,"int",$cvcount,"struct",$cvon_change,"struct*",$cvuserdata) ; CVAPI(int) cvGetTrackbarPos( const char* trackbar_name, const char* window_name ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetTrackbarPos","struct*",$cvtrackbar_name,"struct*",$cvwindow_name) ; CVAPI(void) cvSetTrackbarPos( const char* trackbar_name, const char* window_name, int pos ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetTrackbarPos","struct*",$cvtrackbar_name,"struct*",$cvwindow_name,"int",$cvpos) ; CVAPI(void) cvSetTrackbarMax(const char* trackbar_name, const char* window_name, int maxval); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetTrackbarMax","struct*",$cvtrackbar_name,"struct*",$cvwindow_name,"int",$cvmaxval) ; CVAPI(void) cvSetTrackbarMin(const char* trackbar_name, const char* window_name, int minval); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetTrackbarMin","struct*",$cvtrackbar_name,"struct*",$cvwindow_name,"int",$cvminval) ; CVAPI(void) cvSetMouseCallback( const char* window_name, CvMouseCallback on_mouse, void* param CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetMouseCallback","struct*",$cvwindow_name,"struct",$cvon_mouse,"struct*",$cvparam) ; CVAPI(int) cvWaitKey(int delay CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvWaitKey","int",$cvdelay) ; CVAPI(void) cvSetOpenGlDrawCallback(const char* window_name, CvOpenGlDrawCallback callback, void* userdata CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetOpenGlDrawCallback","struct*",$cvwindow_name,"struct",$cvcallback,"struct*",$cvuserdata) ; CVAPI(void) cvSetOpenGlContext(const char* window_name); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetOpenGlContext","struct*",$cvwindow_name) ; CVAPI(void) cvUpdateWindow(const char* window_name); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvUpdateWindow","struct*",$cvwindow_name) ; CVAPI(void) cvSetPreprocessFuncWin32_(const void* callback); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetPreprocessFuncWin32_","struct*",$cvcallback) ; CVAPI(void) cvSetPostprocessFuncWin32_(const void* callback); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetPostprocessFuncWin32_","struct*",$cvcallback) #endregion highgui_c.h #region imgproc_c.h ; CVAPI(void) cvAcc( const CvArr* image, CvArr* sum, const CvArr* mask CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvAcc","struct*",$cvimage,"struct*",$cvsum,"struct*",$cvmask) ; CVAPI(void) cvSquareAcc( const CvArr* image, CvArr* sqsum, const CvArr* mask CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSquareAcc","struct*",$cvimage,"struct*",$cvsqsum,"struct*",$cvmask) ; CVAPI(void) cvMultiplyAcc( const CvArr* image1, const CvArr* image2, CvArr* acc, const CvArr* mask CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMultiplyAcc","struct*",$cvimage1,"struct*",$cvimage2,"struct*",$cvacc,"struct*",$cvmask) ; CVAPI(void) cvRunningAvg( const CvArr* image, CvArr* acc, double alpha, const CvArr* mask CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvRunningAvg","struct*",$cvimage,"struct*",$cvacc,"double",$cvalpha,"struct*",$cvmask) ; CVAPI(void) cvCopyMakeBorder( const CvArr* src, CvArr* dst, CvPoint offset, int bordertype, CvScalar value CV_DEFAULT(cvScalarAll(0))); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCopyMakeBorder","struct*",$cvsrc,"struct*",$cvdst,"struct",$cvoffset,"int",$cvbordertype,"struct",$cvvalue,"struct",$cv,"struct",$cv) ; CVAPI(void) cvSmooth( const CvArr* src, CvArr* dst, int smoothtype CV_DEFAULT(CV_GAUSSIAN), int size1 CV_DEFAULT(3), int size2 CV_DEFAULT(0), double sigma1 CV_DEFAULT(0), double sigma2 CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSmooth","struct*",$cvsrc,"struct*",$cvdst,"int",$cvsmoothtype,"int",$cvsize1,"int",$cvsize2,"double",$cvsigma1,"double",$cvsigma2) ; CVAPI(void) cvFilter2D( const CvArr* src, CvArr* dst, const CvMat* kernel, CvPoint anchor CV_DEFAULT(cvPoint(-1,-1))); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvFilter2D","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvkernel,"struct",$cvanchor,"struct",$cv,"struct",$cv,"struct",$cv) ; CVAPI(void) cvIntegral( const CvArr* image, CvArr* sum, CvArr* sqsum CV_DEFAULT(NULL), CvArr* tilted_sum CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvIntegral","struct*",$cvimage,"struct*",$cvsum,"struct*",$cvsqsum,"struct*",$cvtilted_sum) ; CVAPI(void) cvPyrDown( const CvArr* src, CvArr* dst, int filter CV_DEFAULT(CV_GAUSSIAN_5x5) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvPyrDown","struct*",$cvsrc,"struct*",$cvdst,"int",$cvfilter) ; CVAPI(void) cvPyrUp( const CvArr* src, CvArr* dst, int filter CV_DEFAULT(CV_GAUSSIAN_5x5) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvPyrUp","struct*",$cvsrc,"struct*",$cvdst,"int",$cvfilter) ; CVAPI(CvMat**) cvCreatePyramid( const CvArr* img, int extra_layers, double rate, const CvSize* layer_sizes CV_DEFAULT(0), CvArr* bufarr CV_DEFAULT(0), int calc CV_DEFAULT(1), int filter CV_DEFAULT(CV_GAUSSIAN_5x5) ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreatePyramid","struct*",$cvimg,"int",$cvextra_layers,"double",$cvrate,"struct*",$cvlayer_sizes,"struct*",$cvbufarr,"int",$cvcalc,"int",$cvfilter) ; CVAPI(void) cvReleasePyramid( CvMat*** pyramid, int extra_layers ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleasePyramid","struct*",$cvpyramid,"int",$cvextra_layers) ; CVAPI(void) cvPyrMeanShiftFiltering( const CvArr* src, CvArr* dst, double sp, double sr, int max_level CV_DEFAULT(1), CvTermCriteria termcrit CV_DEFAULT(cvTermCriteria(CV_TERMCRIT_ITER+CV_TERMCRIT_EPS,5,1))); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvPyrMeanShiftFiltering","struct*",$cvsrc,"struct*",$cvdst,"double",$cvsp,"double",$cvsr,"int",$cvmax_level,"struct",$cvtermcrit,"struct",$cv,"struct",$cv,"struct",$cv,"struct",$cv) ; CVAPI(void) cvWatershed( const CvArr* image, CvArr* markers ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvWatershed","struct*",$cvimage,"struct*",$cvmarkers) ; CVAPI(void) cvSobel( const CvArr* src, CvArr* dst, int xorder, int yorder, int aperture_size CV_DEFAULT(3)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSobel","struct*",$cvsrc,"struct*",$cvdst,"int",$cvxorder,"int",$cvyorder,"int",$cvaperture_size) ; CVAPI(void) cvLaplace( const CvArr* src, CvArr* dst, int aperture_size CV_DEFAULT(3) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvLaplace","struct*",$cvsrc,"struct*",$cvdst,"int",$cvaperture_size) ; CVAPI(void) cvCvtColor( const CvArr* src, CvArr* dst, int code ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCvtColor","struct*",$cvsrc,"struct*",$cvdst,"int",$cvcode) ; CVAPI(void) cvResize( const CvArr* src, CvArr* dst, int interpolation CV_DEFAULT( CV_INTER_LINEAR )); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvResize","struct*",$cvsrc,"struct*",$cvdst,"int",$cvinterpolation) ; CVAPI(void) cvWarpAffine( const CvArr* src, CvArr* dst, const CvMat* map_matrix, int flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS), CvScalar fillval CV_DEFAULT(cvScalarAll(0)) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvWarpAffine","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvmap_matrix,"int",$cvflags,"struct",$cvfillval,"struct",$cv,"struct",$cv) ; CVAPI(CvMat*) cvGetAffineTransform( const CvPoint2D32f* src, const CvPoint2D32f* dst, CvMat* map_matrix ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetAffineTransform","struct*",$cv,"struct*",$cv,"struct*",$cv) ; CVAPI(CvMat*) cv2DRotationMatrix( CvPoint2D32f center, double angle, double scale, CvMat* map_matrix ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cv2DRotationMatrix","struct",$cvcenter,"double",$cvangle,"double",$cvscale,"struct*",$cvmap_matrix) ; CVAPI(void) cvWarpPerspective( const CvArr* src, CvArr* dst, const CvMat* map_matrix, int flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS), CvScalar fillval CV_DEFAULT(cvScalarAll(0)) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvWarpPerspective","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvmap_matrix,"int",$cvflags,"struct",$cvfillval,"struct",$cv,"struct",$cv) ; CVAPI(CvMat*) cvGetPerspectiveTransform( const CvPoint2D32f* src, const CvPoint2D32f* dst, CvMat* map_matrix ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvGetPerspectiveTransform","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvmap_matrix) ; CVAPI(void) cvRemap( const CvArr* src, CvArr* dst, const CvArr* mapx, const CvArr* mapy, int flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS), CvScalar fillval CV_DEFAULT(cvScalarAll(0)) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvRemap","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvmapx,"struct*",$cvmapy,"int",$cvflags,"struct",$cvfillval,"struct",$cv,"struct",$cv) ; CVAPI(void) cvConvertMaps( const CvArr* mapx, const CvArr* mapy, CvArr* mapxy, CvArr* mapalpha ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvConvertMaps","struct*",$cvmapx,"struct*",$cvmapy,"struct*",$cvmapxy,"struct*",$cvmapalpha) ; CVAPI(void) cvLogPolar( const CvArr* src, CvArr* dst, CvPoint2D32f center, double M, int flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvLogPolar","struct*",$cvsrc,"struct*",$cvdst,"struct",$cvcenter,"double",$cvM,"int",$cvflags) ; CVAPI(void) cvLinearPolar( const CvArr* src, CvArr* dst, CvPoint2D32f center, double maxRadius, int flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvLinearPolar","struct*",$cvsrc,"struct*",$cvdst,"struct",$cvcenter,"double",$cvmaxRadius,"int",$cvflags) ; CVAPI(void) cvReleaseStructuringElement( IplConvKernel** element ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleaseStructuringElement","struct*",$cvelement) ; CVAPI(void) cvErode( const CvArr* src, CvArr* dst, IplConvKernel* element CV_DEFAULT(NULL), int iterations CV_DEFAULT(1) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvErode","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvelement,"int",$cviterations) ; CVAPI(void) cvDilate( const CvArr* src, CvArr* dst, IplConvKernel* element CV_DEFAULT(NULL), int iterations CV_DEFAULT(1) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvDilate","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvelement,"int",$cviterations) ; CVAPI(void) cvMorphologyEx( const CvArr* src, CvArr* dst, CvArr* temp, IplConvKernel* element, int operation, int iterations CV_DEFAULT(1) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMorphologyEx","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvtemp,"struct*",$cvelement,"int",$cvoperation,"int",$cviterations) ; CVAPI(void) cvMoments( const CvArr* arr, CvMoments* moments, int binary CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMoments","struct*",$cvarr,"struct*",$cvmoments,"int",$cvbinary) ; CVAPI(double) cvGetSpatialMoment( CvMoments* moments, int x_order, int y_order ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvGetSpatialMoment","struct*",$cvmoments,"int",$cvx_order,"int",$cvy_order) ; CVAPI(double) cvGetCentralMoment( CvMoments* moments, int x_order, int y_order ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvGetCentralMoment","struct*",$cvmoments,"int",$cvx_order,"int",$cvy_order) ; CVAPI(double) cvGetNormalizedCentralMoment( CvMoments* moments, int x_order, int y_order ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvGetNormalizedCentralMoment","struct*",$cvmoments,"int",$cvx_order,"int",$cvy_order) ; CVAPI(void) cvGetHuMoments( CvMoments* moments, CvHuMoments* hu_moments ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvGetHuMoments","struct*",$cvmoments,"struct*",$cvhu_moments) ; CVAPI(int) cvSampleLine( const CvArr* image, CvPoint pt1, CvPoint pt2, void* buffer, int connectivity CV_DEFAULT(8)); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvSampleLine","struct*",$cvimage,"struct",$cvpt1,"struct",$cvpt2,"struct*",$cvbuffer,"int",$cvconnectivity) ; CVAPI(void) cvGetRectSubPix( const CvArr* src, CvArr* dst, CvPoint2D32f center ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvGetRectSubPix","struct*",$cvsrc,"struct*",$cvdst,"struct",$cvcenter) ; CVAPI(void) cvGetQuadrangleSubPix( const CvArr* src, CvArr* dst, const CvMat* map_matrix ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvGetQuadrangleSubPix","struct*",$cvsrc,"struct*",$cvdst,"struct*",$cvmap_matrix) ; CVAPI(void) cvMatchTemplate( const CvArr* image, const CvArr* templ, CvArr* result, int method ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvMatchTemplate","struct*",$cvimage,"struct*",$cvtempl,"struct*",$cvresult,"int",$cvmethod) ; CVAPI(float) cvCalcEMD2( const CvArr* signature1, const CvArr* signature2, int distance_type, CvDistanceFunction distance_func CV_DEFAULT(NULL), const CvArr* cost_matrix CV_DEFAULT(NULL), CvArr* flow CV_DEFAULT(NULL), float* lower_bound CV_DEFAULT(NULL), void* userdata CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"float:cdecl","cvCalcEMD2","struct*",$cvsignature1,"struct*",$cvsignature2,"int",$cvdistance_type,"struct",$cvdistance_func,"struct*",$cvcost_matrix,"struct*",$cvflow,"struct*",$cvlower_bound,"struct*",$cvuserdata) ; CVAPI(int) cvFindContours( CvArr* image, CvMemStorage* storage, CvSeq** first_contour, int header_size CV_DEFAULT(sizeof(CvContour)), int mode CV_DEFAULT(CV_RETR_LIST), int method CV_DEFAULT(CV_CHAIN_APPROX_SIMPLE), CvPoint offset CV_DEFAULT(cvPoint(0,0))); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvFindContours","struct*",$cvimage,"struct*",$cvstorage,"struct*",$cvfirst_contour,"int",$cvheader_size,"struct",$cv,"struct",$cv,"int",$cvmode,"int",$cvmethod,"struct",$cvoffset,"struct",$cv,"struct",$cv,"struct",$cv) ; CVAPI(CvContourScanner) cvStartFindContours( CvArr* image, CvMemStorage* storage, int header_size CV_DEFAULT(sizeof(CvContour)), int mode CV_DEFAULT(CV_RETR_LIST), int method CV_DEFAULT(CV_CHAIN_APPROX_SIMPLE), CvPoint offset CV_DEFAULT(cvPoint(0,0))); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvStartFindContours","struct*",$cvimage,"struct*",$cvstorage,"int",$cvheader_size,"struct",$cv,"struct",$cv,"int",$cvmode,"int",$cvmethod,"struct",$cvoffset,"struct",$cv,"struct",$cv,"struct",$cv) ; CVAPI(CvSeq*) cvFindNextContour( CvContourScanner scanner ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvFindNextContour","struct",$cvscanner) ; CVAPI(void) cvSubstituteContour( CvContourScanner scanner, CvSeq* new_contour ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSubstituteContour","struct",$cvscanner,"struct*",$cvnew_contour) ; CVAPI(CvSeq*) cvEndFindContours( CvContourScanner* scanner ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvEndFindContours","struct*",$cvscanner) ; CVAPI(CvSeq*) cvApproxChains( CvSeq* src_seq, CvMemStorage* storage, int method CV_DEFAULT(CV_CHAIN_APPROX_SIMPLE), double parameter CV_DEFAULT(0), int minimal_perimeter CV_DEFAULT(0), int recursive CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvApproxChains","struct*",$cvsrc_seq,"struct*",$cvstorage,"int",$cvmethod,"double",$cvparameter,"int",$cvminimal_perimeter,"int",$cvrecursive) ; CVAPI(void) cvStartReadChainPoints( CvChain* chain, CvChainPtReader* reader ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvStartReadChainPoints","struct*",$cvchain,"struct*",$cvreader) ; CVAPI(CvPoint) cvReadChainPoint( CvChainPtReader* reader ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvReadChainPoint","struct*",$cvreader) ; CVAPI(CvSeq*) cvApproxPoly( const void* src_seq, int header_size, CvMemStorage* storage, int method, double eps, int recursive CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvApproxPoly","struct*",$cvsrc_seq,"int",$cvheader_size,"struct*",$cvstorage,"int",$cvmethod,"double",$cveps,"int",$cvrecursive) ; CVAPI(double) cvArcLength( const void* curve, CvSlice slice CV_DEFAULT(CV_WHOLE_SEQ), int is_closed CV_DEFAULT(-1)); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvArcLength","struct*",$cvcurve,"struct",$cvslice,"int",$cvis_closed) ; CVAPI(CvRect) cvBoundingRect( CvArr* points, int update CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvBoundingRect","struct*",$cvpoints,"int",$cvupdate) ; CVAPI(double) cvContourArea( const CvArr* contour, CvSlice slice CV_DEFAULT(CV_WHOLE_SEQ), int oriented CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvContourArea","struct*",$cvcontour,"struct",$cvslice,"int",$cvoriented) ; CVAPI(CvBox2D) cvMinAreaRect2( const CvArr* points, CvMemStorage* storage CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvMinAreaRect2","struct*",$cvpoints,"struct*",$cvstorage) ; CVAPI(int) cvMinEnclosingCircle( const CvArr* points, CvPoint2D32f* center, float* radius ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvMinEnclosingCircle","struct*",$cvpoints,"struct*",$cvcenter,"struct*",$cvradius) ; CVAPI(double) cvMatchShapes( const void* object1, const void* object2, int method, double parameter CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvMatchShapes","struct*",$cvobject1,"struct*",$cvobject2,"int",$cvmethod,"double",$cvparameter) ; CVAPI(CvSeq*) cvConvexHull2( const CvArr* input, void* hull_storage CV_DEFAULT(NULL), int orientation CV_DEFAULT(CV_CLOCKWISE), int return_points CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvConvexHull2","struct*",$cvinput,"struct*",$cvhull_storage,"int",$cvorientation,"int",$cvreturn_points) ; CVAPI(int) cvCheckContourConvexity( const CvArr* contour ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvCheckContourConvexity","struct*",$cvcontour) ; CVAPI(CvSeq*) cvConvexityDefects( const CvArr* contour, const CvArr* convexhull, CvMemStorage* storage CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvConvexityDefects","struct*",$cvcontour,"struct*",$cvconvexhull,"struct*",$cvstorage) ; CVAPI(CvBox2D) cvFitEllipse2( const CvArr* points ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvFitEllipse2","struct*",$cvpoints) ; CVAPI(CvRect) cvMaxRect( const CvRect* rect1, const CvRect* rect2 ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvMaxRect","struct*",$cvrect1,"struct*",$cvrect2) ; CVAPI(void) cvBoxPoints( CvBox2D box, CvPoint2D32f pt[4] ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvBoxPoints","struct",$cvbox,"struct",$cvpt[4]) ; CVAPI(CvSeq*) cvPointSeqFromMat( int seq_kind, const CvArr* mat, CvContour* contour_header, CvSeqBlock* block ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvPointSeqFromMat","int",$cvseq_kind,"struct*",$cvmat,"struct*",$cvcontour_header,"struct*",$cvblock) ; CVAPI(double) cvPointPolygonTest( const CvArr* contour, CvPoint2D32f pt, int measure_dist ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvPointPolygonTest","struct*",$cvcontour,"struct",$cvpt,"int",$cvmeasure_dist) ; CVAPI(CvHistogram*) cvCreateHist( int dims, int* sizes, int type, float** ranges CV_DEFAULT(NULL), int uniform CV_DEFAULT(1)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateHist","int",$cvdims,"struct*",$cvsizes,"int",$cvtype,"struct*",$cvranges,"int",$cvuniform) ; CVAPI(void) cvSetHistBinRanges( CvHistogram* hist, float** ranges, int uniform CV_DEFAULT(1)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvSetHistBinRanges","struct*",$cvhist,"struct*",$cvranges,"int",$cvuniform) ; CVAPI(CvHistogram*) cvMakeHistHeaderForArray( int dims, int* sizes, CvHistogram* hist, float* data, float** ranges CV_DEFAULT(NULL), int uniform CV_DEFAULT(1)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvMakeHistHeaderForArray","int",$cvdims,"struct*",$cvsizes,"struct*",$cvhist,"struct*",$cvdata,"struct*",$cvranges,"int",$cvuniform) ; CVAPI(void) cvReleaseHist( CvHistogram** hist ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleaseHist","struct*",$cvhist) ; CVAPI(void) cvClearHist( CvHistogram* hist ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvClearHist","struct*",$cvhist) ; CVAPI(void) cvGetMinMaxHistValue( const CvHistogram* hist, float* min_value, float* max_value, int* min_idx CV_DEFAULT(NULL), int* max_idx CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvGetMinMaxHistValue","struct*",$cvhist,"struct*",$cvmin_value,"struct*",$cvmax_value,"struct*",$cvmin_idx,"struct*",$cvmax_idx) ; CVAPI(void) cvNormalizeHist( CvHistogram* hist, double factor ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvNormalizeHist","struct*",$cvhist,"double",$cvfactor) ; CVAPI(void) cvThreshHist( CvHistogram* hist, double threshold ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvThreshHist","struct*",$cvhist,"double",$cvthreshold) ; CVAPI(double) cvCompareHist( const CvHistogram* hist1, const CvHistogram* hist2, int method); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvCompareHist","struct*",$cvhist1,"struct*",$cvhist2,"int",$cvmethod) ; CVAPI(void) cvCopyHist( const CvHistogram* src, CvHistogram** dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCopyHist","struct*",$cvsrc,"struct*",$cvdst) ; CVAPI(void) cvCalcBayesianProb( CvHistogram** src, int number, CvHistogram** dst); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCalcBayesianProb","struct*",$cvsrc,"int",$cvnumber,"struct*",$cvdst) ; CVAPI(void) cvCalcArrHist( CvArr** arr, CvHistogram* hist, int accumulate CV_DEFAULT(0), const CvArr* mask CV_DEFAULT(NULL) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCalcArrHist","struct*",$cvarr,"struct*",$cvhist,"int",$cvaccumulate,"struct*",$cvmask) ; CVAPI(void) cvCalcArrBackProject( CvArr** image, CvArr* dst, const CvHistogram* hist ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCalcArrBackProject","struct*",$cvimage,"struct*",$cvdst,"struct*",$cvhist) ; CVAPI(void) cvCalcArrBackProjectPatch( CvArr** image, CvArr* dst, CvSize range, CvHistogram* hist, int method, double factor ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCalcArrBackProjectPatch","struct*",$cvimage,"struct*",$cvdst,"struct",$cvrange,"struct*",$cvhist,"int",$cvmethod,"double",$cvfactor) ; CVAPI(void) cvCalcProbDensity( const CvHistogram* hist1, const CvHistogram* hist2, CvHistogram* dst_hist, double scale CV_DEFAULT(255) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCalcProbDensity","struct*",$cvhist1,"struct*",$cvhist2,"struct*",$cvdst_hist,"double",$cvscale) ; CVAPI(void) cvEqualizeHist( const CvArr* src, CvArr* dst ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvEqualizeHist","struct*",$cvsrc,"struct*",$cvdst) ; CVAPI(void) cvDistTransform( const CvArr* src, CvArr* dst, int distance_type CV_DEFAULT(CV_DIST_L2), int mask_size CV_DEFAULT(3), const float* mask CV_DEFAULT(NULL), CvArr* labels CV_DEFAULT(NULL), int labelType CV_DEFAULT(CV_DIST_LABEL_CCOMP)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvDistTransform","struct*",$cvsrc,"struct*",$cvdst,"int",$cvdistance_type,"int",$cvmask_size,"struct*",$cvmask,"struct*",$cvlabels,"int",$cvlabelType) ; CVAPI(double) cvThreshold( const CvArr* src, CvArr* dst, double threshold, double max_value, int threshold_type ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvThreshold","struct*",$cvsrc,"struct*",$cvdst,"double",$cvthreshold,"double",$cvmax_value,"int",$cvthreshold_type) ; CVAPI(void) cvAdaptiveThreshold( const CvArr* src, CvArr* dst, double max_value, int adaptive_method CV_DEFAULT(CV_ADAPTIVE_THRESH_MEAN_C), int threshold_type CV_DEFAULT(CV_THRESH_BINARY), int block_size CV_DEFAULT(3), double param1 CV_DEFAULT(5)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvAdaptiveThreshold","struct*",$cvsrc,"struct*",$cvdst,"double",$cvmax_value,"int",$cvadaptive_method,"int",$cvthreshold_type,"int",$cvblock_size,"double",$cvparam1) ; CVAPI(void) cvFloodFill( CvArr* image, CvPoint seed_point, CvScalar new_val, CvScalar lo_diff CV_DEFAULT(cvScalarAll(0)), CvScalar up_diff CV_DEFAULT(cvScalarAll(0)), CvConnectedComp* comp CV_DEFAULT(NULL), int flags CV_DEFAULT(4), CvArr* mask CV_DEFAULT(NULL)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvFloodFill","struct*",$cvimage,"struct",$cvseed_point,"struct",$cvnew_val,"struct",$cvlo_diff,"struct",$cv,"struct",$cv,"struct",$cvup_diff,"struct",$cv,"struct",$cv,"struct*",$cvcomp,"int",$cvflags,"struct*",$cvmask) ; CVAPI(void) cvCanny( const CvArr* image, CvArr* edges, double threshold1, double threshold2, int aperture_size CV_DEFAULT(3) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCanny","struct*",$cvimage,"struct*",$cvedges,"double",$cvthreshold1,"double",$cvthreshold2,"int",$cvaperture_size) ; CVAPI(void) cvPreCornerDetect( const CvArr* image, CvArr* corners, int aperture_size CV_DEFAULT(3) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvPreCornerDetect","struct*",$cvimage,"struct*",$cvcorners,"int",$cvaperture_size) ; CVAPI(void) cvCornerEigenValsAndVecs( const CvArr* image, CvArr* eigenvv, int block_size, int aperture_size CV_DEFAULT(3) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCornerEigenValsAndVecs","struct*",$cvimage,"struct*",$cveigenvv,"int",$cvblock_size,"int",$cvaperture_size) ; CVAPI(void) cvCornerMinEigenVal( const CvArr* image, CvArr* eigenval, int block_size, int aperture_size CV_DEFAULT(3) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCornerMinEigenVal","struct*",$cvimage,"struct*",$cveigenval,"int",$cvblock_size,"int",$cvaperture_size) ; CVAPI(void) cvCornerHarris( const CvArr* image, CvArr* harris_response, int block_size, int aperture_size CV_DEFAULT(3), double k CV_DEFAULT(0.04) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCornerHarris","struct*",$cvimage,"struct*",$cvharris_response,"int",$cvblock_size,"int",$cvaperture_size,"double",$cvk) ; CVAPI(void) cvFindCornerSubPix( const CvArr* image, CvPoint2D32f* corners, int count, CvSize win, CvSize zero_zone, CvTermCriteria criteria ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvFindCornerSubPix","struct*",$cvimage,"struct*",$cvcorners,"int",$cvcount,"struct",$cvwin,"struct",$cvzero_zone,"struct",$cvcriteria) ; CVAPI(void) cvGoodFeaturesToTrack( const CvArr* image, CvArr* eig_image, CvArr* temp_image, CvPoint2D32f* corners, int* corner_count, double quality_level, double min_distance, const CvArr* mask CV_DEFAULT(NULL), int block_size CV_DEFAULT(3), int use_harris CV_DEFAULT(0), double k CV_DEFAULT(0.04) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvGoodFeaturesToTrack","struct*",$cvimage,"struct*",$cveig_image,"struct*",$cvtemp_image,"struct*",$cvcorners,"struct*",$cvcorner_count,"double",$cvquality_level,"double",$cvmin_distance,"struct*",$cvmask,"int",$cvblock_size,"int",$cvuse_harris,"double",$cvk) ; CVAPI(CvSeq*) cvHoughLines2( CvArr* image, void* line_storage, int method, double rho, double theta, int threshold, double param1 CV_DEFAULT(0), double param2 CV_DEFAULT(0), double min_theta CV_DEFAULT(0), double max_theta CV_DEFAULT(CV_PI)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvHoughLines2","struct*",$cvimage,"struct*",$cvline_storage,"int",$cvmethod,"double",$cvrho,"double",$cvtheta,"int",$cvthreshold,"double",$cvparam1,"double",$cvparam2,"double",$cvmin_theta,"double",$cvmax_theta) ; CVAPI(CvSeq*) cvHoughCircles( CvArr* image, void* circle_storage, int method, double dp, double min_dist, double param1 CV_DEFAULT(100), double param2 CV_DEFAULT(100), int min_radius CV_DEFAULT(0), int max_radius CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvHoughCircles","struct*",$cvimage,"struct*",$cvcircle_storage,"int",$cvmethod,"double",$cvdp,"double",$cvmin_dist,"double",$cvparam1,"double",$cvparam2,"int",$cvmin_radius,"int",$cvmax_radius) ; CVAPI(void) cvFitLine( const CvArr* points, int dist_type, double param, double reps, double aeps, float* line ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvFitLine","struct*",$cvpoints,"int",$cvdist_type,"double",$cvparam,"double",$cvreps,"double",$cvaeps,"struct*",$cvline) ; CVAPI(void) cvLine( CvArr* img, CvPoint pt1, CvPoint pt2, CvScalar color, int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvLine","struct*",$cvimg,"struct",$cvpt1,"struct",$cvpt2,"struct",$cvcolor,"int",$cvthickness,"int",$cvline_type,"int",$cvshift) ; CVAPI(void) cvRectangle( CvArr* img, CvPoint pt1, CvPoint pt2, CvScalar color, int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvRectangle","struct*",$cvimg,"struct",$cvpt1,"struct",$cvpt2,"struct",$cvcolor,"int",$cvthickness,"int",$cvline_type,"int",$cvshift) ; CVAPI(void) cvRectangleR( CvArr* img, CvRect r, CvScalar color, int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvRectangleR","struct*",$cvimg,"struct",$cvr,"struct",$cvcolor,"int",$cvthickness,"int",$cvline_type,"int",$cvshift) ; CVAPI(void) cvCircle( CvArr* img, CvPoint center, int radius, CvScalar color, int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvCircle","struct*",$cvimg,"struct",$cvcenter,"int",$cvradius,"struct",$cvcolor,"int",$cvthickness,"int",$cvline_type,"int",$cvshift) ; CVAPI(void) cvEllipse( CvArr* img, CvPoint center, CvSize axes, double angle, double start_angle, double end_angle, CvScalar color, int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvEllipse","struct*",$cvimg,"struct",$cvcenter,"struct",$cvaxes,"double",$cvangle,"double",$cvstart_angle,"double",$cvend_angle,"struct",$cvcolor,"int",$cvthickness,"int",$cvline_type,"int",$cvshift) ; CVAPI(void) cvFillConvexPoly( CvArr* img, const CvPoint* pts, int npts, CvScalar color, int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvFillConvexPoly","struct*",$cvimg,"struct*",$cvpts,"int",$cvnpts,"struct",$cvcolor,"int",$cvline_type,"int",$cvshift) ; CVAPI(void) cvFillPoly( CvArr* img, CvPoint** pts, const int* npts, int contours, CvScalar color, int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvFillPoly","struct*",$cvimg,"struct*",$cvpts,"struct*",$cvnpts,"int",$cvcontours,"struct",$cvcolor,"int",$cvline_type,"int",$cvshift) ; CVAPI(void) cvPolyLine( CvArr* img, CvPoint** pts, const int* npts, int contours, int is_closed, CvScalar color, int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvPolyLine","struct*",$cvimg,"struct*",$cvpts,"struct*",$cvnpts,"int",$cvcontours,"int",$cvis_closed,"struct",$cvcolor,"int",$cvthickness,"int",$cvline_type,"int",$cvshift) ; CVAPI(int) cvClipLine( CvSize img_size, CvPoint* pt1, CvPoint* pt2 ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvClipLine","struct",$cvimg_size,"struct*",$cvpt1,"struct*",$cvpt2) ; CVAPI(int) cvInitLineIterator( const CvArr* image, CvPoint pt1, CvPoint pt2, CvLineIterator* line_iterator, int connectivity CV_DEFAULT(8), int left_to_right CV_DEFAULT(0)); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvInitLineIterator","struct*",$cvimage,"struct",$cvpt1,"struct",$cvpt2,"struct*",$cvline_iterator,"int",$cvconnectivity,"int",$cvleft_to_right) ; CVAPI(void) cvInitFont( CvFont* font, int font_face, double hscale, double vscale, double shear CV_DEFAULT(0), int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8)); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvInitFont","struct*",$cvfont,"int",$cvfont_face,"double",$cvhscale,"double",$cvvscale,"double",$cvshear,"int",$cvthickness,"int",$cvline_type) ; CVAPI(void) cvPutText( CvArr* img, const char* text, CvPoint org, const CvFont* font, CvScalar color ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvPutText","struct*",$cvimg,"struct*",$cvtext,"struct",$cvorg,"struct*",$cvfont,"struct",$cvcolor) ; CVAPI(void) cvGetTextSize( const char* text_string, const CvFont* font, CvSize* text_size, int* baseline ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvGetTextSize","struct*",$cvtext_string,"struct*",$cvfont,"struct*",$cvtext_size,"struct*",$cvbaseline) ; CVAPI(CvScalar) cvColorToScalar( double packed_color, int arrtype ); ; local $_aResult = DllCall($_opencv_worldDLL,"none:cdecl","cvColorToScalar","double",$cvpacked_color,"int",$cvarrtype) ; CVAPI(int) cvEllipse2Poly( CvPoint center, CvSize axes, int angle, int arc_start, int arc_end, CvPoint* pts, int delta ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvEllipse2Poly","struct",$cvcenter,"struct",$cvaxes,"int",$cvangle,"int",$cvarc_start,"int",$cvarc_end,"struct*",$cv,"int",$cvdelta) ; CVAPI(void) cvDrawContours( CvArr* img, CvSeq* contour, CvScalar external_color, CvScalar hole_color, int max_level, int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8), CvPoint offset CV_DEFAULT(cvPoint(0,0))); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvDrawContours","struct*",$cvimg,"struct*",$cvcontour,"struct",$cvexternal_color,"struct",$cvhole_color,"int",$cvmax_level,"int",$cvthickness,"int",$cvline_type,"struct",$cvoffset,"struct",$cv,"struct",$cv,"struct",$cv) #endregion imgproc_c.h #region videoio_c.h ; CVAPI(CvCapture*) cvCreateFileCapture( const char* filename ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateFileCapture","struct*",$cvfilename) ; CVAPI(CvCapture*) cvCreateFileCaptureWithPreference( const char* filename , int apiPreference); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateFileCaptureWithPreference","struct*",$cvfilename,"int",$cvapiPreference) ; CVAPI(CvCapture*) cvCreateCameraCapture( int index ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateCameraCapture","int",$cvindex) ; CVAPI(int) cvGrabFrame( CvCapture* capture ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGrabFrame","struct*",$cvcapture) ; CVAPI(IplImage*) cvRetrieveFrame( CvCapture* capture, int streamIdx CV_DEFAULT(0) ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvRetrieveFrame","struct*",$cvcapture,"int",$cvstreamIdx) ; CVAPI(IplImage*) cvQueryFrame( CvCapture* capture ); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvQueryFrame","struct*",$cvcapture) ; CVAPI(void) cvReleaseCapture( CvCapture** capture ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleaseCapture","struct*",$cvcapture) ; CVAPI(double) cvGetCaptureProperty( CvCapture* capture, int property_id ); ; local $_aResult = DllCall($_opencv_worldDLL,"double:cdecl","cvGetCaptureProperty","struct*",$cvcapture,"int",$cvproperty_id) ; CVAPI(int) cvSetCaptureProperty( CvCapture* capture, int property_id, double value ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvSetCaptureProperty","struct*",$cvcapture,"int",$cvproperty_id,"double",$cvvalue) ; CVAPI(int) cvGetCaptureDomain( CvCapture* capture); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvGetCaptureDomain","struct*",$cvcapture) ; CVAPI(CvVideoWriter*) cvCreateVideoWriter( const char* filename, int fourcc, double fps, CvSize frame_size, int is_color CV_DEFAULT(1)); ; local $_aResult = DllCall($_opencv_worldDLL,"ptr:cdecl","cvCreateVideoWriter","struct*",$cvfilename,"int",$cvfourcc,"double",$cvfps,"struct",$cvframe_size,"int",$cvis_color) ; CVAPI(int) cvWriteFrame( CvVideoWriter* writer, const IplImage* image ); ; local $_aResult = DllCall($_opencv_worldDLL,"int:cdecl","cvWriteFrame","struct*",$cvwriter,"struct*",$cvimage) ; CVAPI(void) cvReleaseVideoWriter( CvVideoWriter** writer ); ; local $_aResult = DllCall($_opencv_worldDLL,"void:cdecl","cvReleaseVideoWriter","struct*",$cvwriter) #endregion videoio_c.h opencv_world.au32 points -
v0.4.0.1 has been released with the following updates -- - Added: _WD_PrintToPDF - Fix (_WD_Window): Properly handle 'print' result - Changed (_WD_ElementActionEx): Added 'hide' and 'show' options - Changed (_WD_ElementAction): Added support for Shadow, CompRole & CompLabel actions - Changed (_WD_GetShadowRoot): Use _WD_ElementAction instead of _WD_ExecuteScript - Changed (_WD_NewTab): Use native Webdriver commands when Javascript isn't required - Changed (_WD_FindElement): Support shadow roots - Changed (_WD_Window): Support 'full' option for screenshots Note: The shadow root stuff isn't officially in the specs yet, so YMMV when attempting to use it2 points
-
EasyCodeIt - cross-platform AutoIt implementation
argumentum reacted to Earthshine for a topic
you don't need goto's really. if I'm in a function and something fails in a try/catch or decision block of code, I just return an error right there from the decision code., instead so in effect you can have same convenience that way. That single entry single exit is pure bullshit and doesn't work in object oriented languages.1 point -
EasyCodeIt - cross-platform AutoIt implementation
TheSaint reacted to argumentum for a topic
I don't wanna fight y'all but if I have to I will. Now leave all this GOTO/GOSUB alone. We're using functions !1 point -
EasyCodeIt - cross-platform AutoIt implementation
TheDcoder reacted to Earthshine for a topic
https://www.vanheusden.com/multitail/index.php this is what you want in linux world.1 point -
Find Edit-textbox below text
dranzer006 reacted to Nine for a topic
Use something like this : Local $pRawViewWalker, $oRawViewWalker $oUIAutomation.RawViewWalker( $pRawViewWalker ) $oRawViewWalker = ObjCreateInterface( $pRawViewWalker, $sIID_IUIAutomationTreeWalker, $dtagIUIAutomationTreeWalker) Local $pUIElement, $oUIElement $oRawViewWalker.GetNextSiblingElement( $oText, $pUIElement ) $oUIElement = ObjCreateInterface( $pUIElement, $sIID_IUIAutomationElement, $dtagIUIAutomationElement ) Where $oText is the object before the one you are looking for...1 point -
Help with disck monitoring
ETverde reacted to Earthshine for a topic
See this topic The parts of interest to you are using WMI to monitor the drive1 point -
manipulate large csv-file
FrancescoDiMuro reacted to junkew for a topic
Maybe first read it into an sqlite database and then query it first to an easier to understand 13 column table Another example with first transforming it in powershell (same you could do with SQLite database) Powershell is powerfull in dealing with csv files and querying them directly with named columns instead of numbers Your testfile misses 1 column at the end You have to create the calculations yourself. Below outputs it into file transformed.csv which you then can deal with from Autoit clear-host <# ID : ckj9snx1r00003a699vfsn650 DataRow ID : ckj9odjg47bie0rh60mq7edin Labeled Data : https://storage.labelbox.com/ckj9o1nvf6pqk0716vn24noz7%2Fa7fdb985-6331-2931-da04-ad7fa0e1 48c1-n101_0058.jpg?Expires=1611474714883&KeyName=labelbox-assets-key-1&Signature=uviaZ-Av HVLSuDCabq3Fw9CU13E Label/objects/0/featureId : ckj9qsu9707br0yaf04i5bzxd Label/objects/0/schemaId : ckj9q1xtm00ko0yae812f3asg Label/objects/0/title : Ocluded Ucoded Target Label/objects/0/value : ocluded_ucoded_target Label/objects/0/color : #008941 Label/objects/0/bbox/top : 803 Label/objects/0/bbox/left : 0 Label/objects/0/bbox/height : 24 Label/objects/0/bbox/width : 20 Label/objects/0/instanceURI : https://api.labelbox.com/masks/feature/ckj9qsu9707br0yaf04i5bzxd?token=eyJhbGciOiJIUzI1Ni IsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJja2o5cTNjeTg3anRvMDcxNmU2Zzd0ejEzIiwib3JnYW5pemF0aW9uSW QiOiJja2o5bzFudmY2cHFrMDcxNnZuMjRub3o3IiwiaWF0IjoxNjEwMjY1MTEzLCJleHAiOjE2MTI4NTcxMTN9.nI Ov1e49Ci1etM4YxN57hujTKB0kQpueX26YULxFrsI ... Label/objects/81/bbox/width #> $rawData = Import-Csv -Path "result_short.csv" $rowcount=$rawdata.count $columnCount=$rawdata[0].psobject.properties.name.count #10 is default number of columns $repeatNNTimes = ($columncount-2) / 10 #0-81 repeats for all blocks for ($i=0; $i -le $repeatNNTimes-1; $i++) { $prefix="Label/objects/$i" $global:rowId=0 $transformedData=$rawdata | select-object @{name="rowid" ; expression={$global:rowId=$global:rowId+1; return $global:rowId}}, @{name="colid" ; expression={return $i}}, @{name="imgname"; expression={$_."Labeled Data"-match "[^-]*.jpg" | out-null; return $matches[0]}}, @{name="width" ; expression={$_."$prefix/bbox/width"}}, @{name="height" ; expression={$_."$prefix/bbox/height"}}, @{name="class" ; expression={"tag"}}, @{name="xmin" ; expression={"xmin"}}, @{name="ymin" ; expression={"ymin"}}, @{name="xmax" ; expression={"xmax"}}, @{name="ymax" ; expression={"ymax"}}, @{name="instanceURI" ; expression={$_."$prefix/instanceURI"}} | where {$_.instanceURI -ne ""} if ($i -eq 0) {($transformedData | select -First 1 | convertto-csv -NoTypeInformation)[0] | out-file transformed.csv -encoding utf8 -force } $transformedData | convertto-csv -NoTypeInformation | Select-Object -Skip 1 | out-file transformed.csv -Append -encoding utf8 #$transformedData | format-table -AutoSize -HideTableHeaders }1 point -
How do I Format my computer with AutoIt
JLogan3o13 reacted to Earthshine for a topic
So you have no way to do it just like we told you. This is all I’m going to say about this and I assure you that you cannot do this with auto IT alone. Ok I’m done with this. Have fun1 point -
How do I Format my computer with AutoIt
Earthshine reacted to Subz for a topic
@JockoDundee - AutoIt wouldn't work on bare-metal systems, it would require at a minimum WinPE but would have limited functionality. Although in this case you would probably just use CMD to format, partition and image the machine. @BrunoIvo - Recommend you look at two free Microsoft tools: Microsoft Deployment Toolkit - https://www.microsoft.com/en-us/download/details.aspx?id=54259 Windows ADK + Windows PE add-on: https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install These tools allow you to setup a centralised repository allowing you to automate the entire install of Windows, including formatting, partitioning and installing Windows, you can also add applications, drivers. The enterprise tool, Microsoft Endpoint Configuration Manager (aka SCCM) uses the same framework so it's a good starting point if you want to learn how to deploy OS correctly.1 point -
TalkTock is a talking clock. It's configurable via the opening screen, an .ini file, or the command line. The .ini offers the widest range of options, including language preferences. The package includes sample .ini files for Italian- and Russian-language clocks. Links: ReadMe TalkTock.zip: contains .exe, .ini files, ReadMe and ListVoices.exe (TTS utility) Source: #cs -------------------------------------- TalkTock.au3 -- Talking Clock CLD rev.2021-01-18-a (freeware -- no warranties expressed or implied) Usages (1) TalkTock [/I #] [/C 12|24] [/V #] [/R #] [/S ["]voice name["]|hint] [/U S|M|H|D|W|T|Y=#] [/Q|/QQ] /I = Interval between time announcements (in minutes) /C = Clock style (12- or 24-hour) /V = Volume (range 1 to 100) /R = speaking Rate (range -10 to 10) /S "voice name"|hint (hint = unique substring of voice name) /T = Say time only (no prefix or postfix) /U S|M|H|D|W|T|Y=# = clock stops after # Secs|Mins|Hrs|Days|Wks|monThs|Yrs /Q = Quiet (time displayed on screen, not spoken) /QQ = NOT Quiet (overrides Quiet=1 setting in TalkTock.ini) User-selected values are saved in TalkTock.ini. Language preferences and other settings can be changed by editing TalkTock.ini in any text editor. (2) TalkTock /?|?H|/SayHelp|/Kill /?|/H = Display on-screen help /SayHelp = Speak the help screen /Kill = Kill ALL running TalkTock.exe processes (3) TalkTock /L List available voices (4) TalkTock /UseFile [d:\path\]INI_filename Take settings from a specified settings file (must have TalkTock.ini format) (5) TalkTock /RESET Create new TalkTock.ini with default settings (existing TalkTock.ini is backed up to TalkTock.IN_) (6) TalkTock /SOURCE View AutoIt source code -------------------------------------- #ce #include <AutoItConstants.au3> #include <ButtonConstants.au3> #include <FileConstants.au3> #include <GUIConstants.au3> #include <GUIConstantsEx.au3> #include <Misc.au3> #include <MsgBoxConstants.au3> #include <StaticConstants.au3> #include <TrayConstants.au3> #include <WindowsConstants.au3> Opt("MustDeclareVars", 1) Opt("TrayAutoPause", 0) Opt("TrayMenuMode", 1) Opt("TrayOnEventMode", 1) ; Icon by Ampeross (free for non-commercial use) ; http://www.iconarchive.com/show/qetto-2-icons-by-ampeross/timer-icon.html FileInstall("X:\Ampeross-Qetto-2-Timer.ico", @TempDir, 1) FileInstall("X:\ausource.txt", @TempDir, 1) Global $sCMline = $CmdLineRaw Global $sCurWin = WinGetTitle("[active]") ; Warning on multiple TalkTock processes If ProcessList(@ScriptName)[0][0] > 1 Then If $CmdLine[0] = 0 Or ( StringInStr($sCMline, "kill") + StringInStr($sCMline, "reset") + StringInStr($sCMline, "source") + StringInStr($sCMline, "/?") + StringInStr($sCMline, "-?") + StringInStr($sCMline, "/h") + StringInStr($sCMline, "-h") + StringInStr($sCMline, "/L") + StringInStr($sCMline, "-L") = 0 ) Then ReStartTT() EndIf ; Default interval, 12|24, volume, talk rate settings, etc. Global $idFreq = 15 ; Default interval every 15 minutes Global $vdT12or24 = 12 ; 12- or 24-hour time (Clock style) Global $sdVoice = "" ; TTS voice (""=use default voice) Global $idVol = 80 ; Volume (range 0 to 100) Global $idRate = 0 ; Speaking rate (range -10 to 10) Global $idStop = 0 ; Clock stops = 0 (Never) Global $sdUnits = "H" ; Stop clock units (default = H = hours) Global $bdQuiet = 0 ; Quiet operation (time shown on screen) Global $idDisplay = 2 ; Duration of on-screen time display in secs. ; ; (has effect only if $bQuiet = 1) ; --------------------------------------------------------------- Global $bCanned = 1 ; "Canned" or custom interval Global $bdTimeOnly = 0 ; Say time only (no prefix|postfix) Global $bArgs = 0 ; If args, do not update .INI ; ; Default phrases Global $sdHi = "Welcome to TalkTock, the Talking Clock" Global $sdPause = "TalkTock paused" Global $sdResume = "TalkTock resumed" Global $sdStopSay = "Goodbye" Global $sdIntro = "The time will be announced every" Global $sdPrefix = "It's" Global $sdPrefix1 = "" Global $bdSayAMPM = 1 Global $sdHowFreq1 = "minnit" ; spelling altered to aid pronunciation Global $sdHowFreq5 = "5 minutes at the 5-minute mark" Global $sdHowFreq10 = "10 minutes at the 10-minute mark" Global $sdHowFreq15 = "15 minutes on the quarter hour" Global $sdHowFreq30 = "30 minutes on the half hour" Global $sdHowFreq60 = "'our on the hour"; pronunciation Global $sdHowFreqCustom = "minutes" Global $sdMidnight = "midnight" Global $sdMidday = "noon" Global $sdBye = "Goodbye" #cs ; Default phrases Global $sdHi = "" Global $sdPause = "" Global $sdResume = "" Global $sdStopSay = "" Global $sdIntro = "" Global $sdPrefix = "" Global $sdPrefix1 = "" Global $bdSayAMPM = 1 Global $sdHowFreq1 = "" Global $sdHowFreq5 = "" Global $sdHowFreq10 = "" Global $sdHowFreq15 = "" Global $sdHowFreq30 = "" Global $sdHowFreq60 = "" Global $sdHowFreqCustom = "" Global $sdBye = "" #ce ; Default GUI labels Global $sgdTitle = "TalkTock - Talking Clock" Global $sgdTop = "Say the time every" Global $sgdMinute = "minute" Global $sgdMinutes = "minutes" Global $sgdQuarterHour = "quarter hour" Global $sgdHalfHour = "half hour" Global $sgdHour = "hour" Global $sgdHours = "hours" Global $sgdCustom = "Custom" Global $sgdClock = "Clock style" Global $sgd12hr_Label = "12-hour" Global $sgd24hr_label = "24-hour" Global $sgdQuiet_label = "Time is: " Global $sgdSpeak_label = "spoken" Global $sgdDisplay_label = "displayed" Global $sgdExpires = "Clock stops " Global $sgdExpNever = " Never" Global $sgdExpAfter = " After " Global $sgdExpSecs = "secs" Global $sgdExpMins = "mins" Global $sgdExpHours = "hours" Global $sgdExpDays = "days" Global $sgdExpWeeks = "weeks" Global $sgdExpMons = "months" Global $sgdExpYears = "years" Global $sgdVolume_label = "Volume" Global $sgdStart_button = "Start" Global $sgdCancel_button = "Cancel" Global $sgdPause = "Pause" Global $sgdResume = "Resume" Global $sgdExit = "Stop" ; Failsafe assignments Global $sVoice = $sdVoice Global $iFreq = $idFreq Global $vT12or24 = $vdT12or24 If $vT12or24 <> 24 Then $vT12or24 = 12 Global $iVol = $idVol Global $iRate = $idRate Global $bQuiet = $bdQuiet Global $iDisplay = $idDisplay Global $iStop = $idStop Global $iIter = -1 Global $sUnits = $sdUnits Global $sStopFn = "" Global $sHi = $sdHi Global $sPause = $sdPause Global $sResume = $sdResume Global $sStopSay = $sdStopSay Global $sIntro = $sdIntro Global $sPrefix = $sdPrefix Global $sPrefix1 = $sdPrefix1 Global $bSayAMPM = $bdSayAMPM If $vT12or24 = 24 Then $bSayAMPM = 0 Global $sHowFreq1 = $sdHowFreq1 Global $sHowFreq5 = $sdHowFreq5 Global $sHowFreq10 = $sdHowFreq10 Global $sHowFreq15 = $sdHowFreq15 Global $sHowFreq30 = $sdHowFreq30 Global $sHowFreq60 = $sdHowFreq60 Global $sHowFreqCustom = $sdHowFreqCustom Global $sMidnight = $sdMidnight Global $sMidday = $sdMidday Global $sBye = $sdBye ; GUI Labels Global $sgPause = $sgdPause Global $sgResume = $sgdResume Global $sgExit = $sgdExit Global $sgTitle = $sgdTitle Global $sgTop = $sgdTop Global $sgMinute = $sgdMinute Global $sgMinutes = $sgdMinutes Global $sgQuarterHour = $sgdQuarterHour Global $sgHalfHour = $sgdHalfHour Global $sgHour = $sgdHour Global $sgHours = $sgdHours Global $sgCustom = $sgdCustom Global $sgClock = $sgdClock Global $sg12hr_label = $sgd12hr_Label Global $sg24hr_label = $sgd24hr_label Global $sgQuiet_label = $sgdQuiet_label Global $sgSpeak_label = $sgdSpeak_label Global $sgDisplay_label = $sgdDisplay_label Global $sgExpires = $sgdExpires Global $sgExpNever = $sgdExpNever Global $sgExpAfter = $sgdExpAfter Global $sgExpSecs = $sgdExpSecs Global $sgExpMins = $sgdExpMins Global $sgExpHours = $sgdExpHours Global $sgExpDays = $sgdExpDays Global $sgExpWeeks = $sgdExpWeeks Global $sgExpMons = $sgdExpMons Global $sgExpYears = $sgdExpYears Global $sgVolume_label = $sgdVolume_label Global $sgStart_button = $sgdStart_button Global $sgCancel_button = $sgdCancel_button Global $sPad = " "; | & $sPad | Global $sHelp = "TalkTock -- The Talking Clock" & @CRLF & "CLD rev.2021-01-18 (freeware -- no warranties expressed or implied)" & @CRLF & @CRLF & "Usage:" & @CRLF & "(1) TalkTock.exe" & @CRLF & $sPad & "Choose options, then click ""Start""" & @CRLF & @CRLF & "(2) TalkTock.exe [/I #] [/C 12|24] [/V #]] [/R #] [/S [""]voice name[""]|hint] [/U S|M|H|D|W|T|Y=#] [/Q|/QQ]" & @CRLF & $sPad & "/I = Interval between time announcements (in minutes)" & @CRLF & $sPad & "/C = Clock style (12- or 24-hour)" & @CRLF & $sPad & "/V = Volume (range 1 to 100)" & @CRLF & $sPad & "/R = speaking Rate (range -10 to 10)" & @CRLF & $sPad & "/S ""voice name""|hint (hint = unique substring of voice name)" & @CRLF & $sPad & "/T = Say time only, no prefix or postfix (instant compatibility with any language)" & @CRLF & $sPad & "/U S|M|H|D|W|T|Y=# = clock stops after # Secs|Mins|Hrs|Days|Wks|monThs|Yrs" & @CRLF & $sPad & "/Q = Quiet (time displayed on screen, not spoken)" & @CRLF & $sPad & "/QQ = NOT Quiet (overrides Quiet=1 setting in TalkTock.ini)" & @CRLF & @CRLF & "User-selected values are saved in TalkTock.ini." & @CRLF & "Language preferences and other settings can be changed by editing" & @CRLF & " TalkTock.ini in any text editor." & @CRLF & "" & @CRLF & "(3) TalkTock /?|/H|/SayHelp|/Kill" & @CRLF & $sPad & "/?|/H = Display on-screen help" & @CRLF & $sPad & "/SayHelp = Spoken command-line usage" & @CRLF & $sPad & "/Kill = Kill ALL running TalkTock.exe processes" & @CRLF & @CRLF & "(4) TalkTock /L" & @CRLF & $sPad & "List available voices" & @CRLF & @CRLF & "(5) TalkTock /UseFile [d:\path\]INI_filename" & @CRLF & $sPad & "Take settings from a specified settings file" & @CRLF & $sPad & "(must have TalkTock.ini format)" & @CRLF & @CRLF & "(6) TalkTock /RESET" & @CRLF & $sPad & "Create new TalkTock.ini with default settings" & @CRLF & $sPad & "(existing TalkTock.ini is backed up to TalkTock.IN_)" & @CRLF & @CRLF & "(7) TalkTock /SOURCE" & @CRLF & $sPad & "View AutoIt source code" & @CRLF ; Create TalkTock.ini (if not already present) Global $sFini = @ScriptName Global $sFini2 = ""; alternate .INI file If StringInStr($sFini, ".") Then $sFini = StringTrimRight($sFini, StringLen($sFini) - StringInStr($sFini, ".", 0, -1) + 1) $sFini = @ScriptDir & "\" & $sFini & ".ini" ;Create new (default) TalkTock.ini If $CmdLine[0] = 1 Then If StringInStr(StringUpper($CmdLine[1]), "RESET") Then If FileExists($sFini) Then FileCopy($sFini, @ScriptDir & "\TalkTock.IN_", $FC_OVERWRITE) FileDelete($sFini) EndIf EndIf EndIf ; Take settings from file not TalkTock.ini If $CmdLine[0] = 2 Then If StringUpper($CmdLine[1]) = "/USEFILE" Or StringUpper($CmdLine[1]) = "-USEFILE" Then $sFini2 = $CmdLine[2] If FileExists($sFini2) Then $sFini = $sFini2 EndIf EndIf If Not FileExists($sFini) Then Global $hIni = FileOpen($sFini, $FO_OVERWRITE + $FO_UTF8) If $hIni > -1 Then Global $sIniC = "Settings file for TalkTock.exe, Talking Clock" & @CRLF & ";" & @CRLF & "[TalkTock]" & @CRLF & ";; Interval between time announcements, in minutes" & @CRLF & "Interval=" & $idFreq & @CRLF & ";; 12- or 24-hour clock" & @CRLF & "ClockStyle=" & $vdT12or24 & @CRLF& ";; Say AM/PM? 1=Yes 0=No; applies to 12-hour clock only" & @CRLF & "SayAMPM=" & $bdSayAMPM & @CRLF& ";; TTS voice" & @CRLF & "Voice=default" & @CRLF & ";Voice=Microsoft George" & @CRLF& ";; Volume, range 1 to 100" & @CRLF & "Volume=" & $idVol & @CRLF& ";; Speaking rate, range -10 to 10" & @CRLF & "TalkRate=" & $idRate & @CRLF & ";; Clock stop timer units" & @CRLF & ";; S=secs M=mins H=hours D=days W=weeks T=months Y=years" & @CRLF & "ClockTimerUnits=" & $sdUnits & @CRLF& ";; Clock stops after how many timer units? (0 = clock never stops)" & @CRLF & "ClockStops=0" & @CRLF & ";; Quiet operation, time shown on screen (1=yes 0=no)" & @CRLF & "Quiet=0" & @CRLF & ";; Duration, in seconds, of on-screen time display" & @CRLF & ";; Fractional (decimal) values are allowed (e.g., Display=3.5)" & @CRLF & "Display=2.5" & @CRLF & @CRLF $sIniC &= "[Language]" & @CRLF & ";; Translate the phrases and labels below into your chosen language." & @CRLF & ";; Any language with a TTS function (a ""Voice"") in its language pack" & @CRLF & ";; should work. To use other languages, edit TalkTock.ini using the" & @CRLF & ";; UTF-8 character set" & @CRLF & ";" & @CRLF & ";; TimeOnly: 1=Yes (phrases set below will NOT be spoken); 0=No" & @CRLF & "TimeOnly=0" & @CRLF & ";" & @CRLF & "; Welcome and Intro messages" & @CRLF & ";; Comment out (prepend "";"") to suppress these messages" & @CRLF & "onStart=" & $sdHI & @CRLF & "Intro=" & $sdIntro & @CRLF & ";" & @CRLF & "; Interval descriptions" & @CRLF & "Freq1=" & $sdHowFreq1 & @CRLF & "Freq5=" & $sdHowFreq5 & @CRLF & "Freq10=" & $sdHowFreq10 & @CRLF & "Freq15=" & $sdHowFreq15 & @CRLF & "Freq30=" & $sdHowFreq30 & @CRLF & "Freq60=" & $sdHowFreq60 & @CRLF & "FreqCustom=" & $sdHowFreqCustom & @CRLF & ";; Spoken prefix" & @CRLF & "Prefix=" & $sdPrefix & @CRLF & ";; No prefix (just announce the time):" & @CRLF & ";Prefix=" & @CRLF & ";Prefix=It's" & @CRLF & ";Prefix=It's now" & @CRLF & ";Prefix=The time is" & @CRLF & ";; Singular prefix: Prefix1 defines the singular inflection" & @CRLF & ";; for ""one o'clock"" in applicable languages, e.g., Italian" & @CRLF & ";Prefix1=" & @CRLF & ";; Postfix at midnight (0000 hours) and midday (1200 hours)" & @CRLF & ";; See also Postfix pairs, below" & @CRLF & "At0000Say=" & $sdMidnight & @CRLF & "At1200Say=" & $sdMidday & @CRLF & ";" & @CRLF $sIniC &= ";; Postfix pairs (optional)" & @CRLF & ";; ------------------------" & @CRLF & ";; Alternatives to saying ""AM/PM"" (or equivalent) after the time" & @CRLF & ";; If time falls within Range, TalkTock says" & @CRLF & ";; Phrase after saying the time" & @CRLF & ";; You can set as many, or as few, of these pairs as you like" & @CRLF & ";; Note: Range# settings must have content (a time range hhmm-hhmm)" & @CRLF & ";; Phrase# settings can be a phrase or empty (say nothing)" & @CRLF & ";Range1=0000-0000" & @CRLF & ";Phrase1=Midnight" & @CRLF& ";Range2=0001-0329" & @CRLF & ";Phrase2=A.M." & @CRLF& ";Range3=0330-1159" & @CRLF & ";Phrase3=in the morning" & @CRLF& ";Range4=1200-1200" & @CRLF & ";Phrase4=Noon" & @CRLF& ";Range5=1201-1659" & @CRLF & ";Phrase5=in the afternoon" & @CRLF& ";Range6=1700-1959" & @CRLF & ";Phrase6=in the evening" & @CRLF & ";Range7=2000-2359" & @CRLF & ";Phrase7=at night" & @CRLF & ";; ------------------------" & @CRLF & ";" & @CRLF & "; Pause/Resume/Stop" & @CRLF & ";; Comment out (prepend "";"") to suppress these messages" & @CRLF & "onPause=" & $sdPause & @CRLF & "onResume=" & $sdResume & @CRLF & "onStop=" & $sdBye & @CRLF & @CRLF $sIniC &= "[GUI_Labels]" & @CRLF & "Title=" & $sgdTitle & @CRLF & "Top=" & $sgdTop & @CRLF & "Minute=" & $sgdMinute & @CRLF & "Minutes=" & $sgdMinutes & @CRLF & "QuarterHour=" & $sgdQuarterHour & @CRLF & "HalfHour=" & $sgdHalfHour & @CRLF & "Hour=" & $sgdHour & @CRLF & "Hours=" & $sgdHours & @CRLF & "CustomLabel=" & $sgdCustom & @CRLF & "ClockStyle=" & $sgdClock & @CRLF & "12-hour_Label=" & $sgd12hr_Label & @CRLF & "24-hour_Label=" & $sgd24hr_label & @CRLF & "Quiet_label=" & $sgdQuiet_label & @CRLF & "Speak_label=" & $sgdSpeak_label & @CRLF & "Display_label=" & $sgdDisplay_label & @CRLF & "ClockStop_Label=" & $sgdExpires & @CRLF & "ClockStopsNever_Label=" & $sgdExpNever & @CRLF & "ClockStopsAfter_Label=" & $sgdExpAfter & @CRLF & "ClockStopsAfterSecs_Label=" & $sgExpSecs & @CRLF & "ClockStopsAfterMins_Label=" & $sgExpMins & @CRLF & "ClockStopsAfterHours_Label=" & $sgExpHours & @CRLF & "ClockStopsAfterDays_Label=" & $sgdExpDays & @CRLF & "ClockStopsAfterWeeks_Label=" & $sgdExpWeeks & @CRLF & "ClockStopsAfterMons_Label=" & $sgdExpMons & @CRLF & "ClockStopsAfterYears_Label=" & $sgdExpYears & @CRLF & "Volume_Label=" & $sgdVolume_label & @CRLF & "ClockStop_Label=Clock stops" & @CRLF & "ClockStopsAfter_Label=After" & @CRLF & "ClockStopsHours_Label=hours" & @CRLF & "ClockStopsNever_Label=Never" & @CRLF & "Start_button=Start" & @CRLF & "Cancel_button=Cancel" & @CRLF & "Tray_pause=Pause" & @CRLF & "Tray_resume=Resume" & @CRLF & "Tray_exit=Stop" & @CRLF If Not FileWrite($hIni, $sIniC) Then MsgBox($MB_ICONWARNING, @ScriptName, "Error writing " & $sFini, 3) FileClose($hIni) EndIf EndIf Global $sFiniV = _IniFileReadFile($sFini) If Not $sFiniV Then _ExitErr("Error reading " & $sFini) ; Read values from TalkTock.ini/alternate .ini $iFreq = _IniFileRead("sFiniV", "TalkTock", "Interval", $idFreq) $vT12or24 = _IniFileRead("sFiniV", "TalkTock", "ClockStyle", $vdT12or24) $bSayAMPM = _IniFileRead("sFiniV", "TalkTock", "SayAMPM", $bdSayAMPM) $sVoice = _IniFileRead("sFiniV", "TalkTock", "Voice", $sdVoice) If StringUpper($sVoice) = "DEFAULT" Then $sVoice = "" $iVol = _IniFileRead("sFiniV", "TalkTock", "Volume", $idVol) $iRate = _IniFileRead("sFiniV", "TalkTock", "TalkRate", $idRate) $iStop = _IniFileRead("sFiniV", "TalkTock", "ClockStops", $idStop) $sUnits = _IniFileRead("sFiniV", "TalkTock", "ClockTimerUnits", $sdUnits) $bQuiet = _IniFileRead("sFiniV", "TalkTock", "Quiet", $bdQuiet) $iDisplay = _IniFileRead("sFiniV", "TalkTock", "Display", $idDisplay) Global $bTimeOnly = _IniFileRead("sFiniV", "Language", "onStart", $bdTimeOnly) $sHi = _IniFileRead("sFiniV", "Language", "onStart", "") $sIntro = _IniFileRead("sFiniV", "Language", "Intro", "") $sHowFreq1 = _IniFileRead("sFiniV", "Language", "Freq1", $sdHowFreq1) $sHowFreq5 = _IniFileRead("sFiniV", "Language", "Freq5", $sdHowFreq5) $sHowFreq10 = _IniFileRead("sFiniV", "Language", "Freq10", $sdHowFreq10) $sHowFreq15 = _IniFileRead("sFiniV", "Language", "Freq15", $sdHowFreq15) $sHowFreq30 = _IniFileRead("sFiniV", "Language", "Freq30", $sdHowFreq30) $sHowFreq60 = _IniFileRead("sFiniV", "Language", "Freq60", $sdHowFreq60) $sHowFreqCustom = _IniFileRead("sFiniV", "Language", "FreqCustom", $sdHowFreqCustom) $sPrefix = _IniFileRead("sFiniV", "Language", "Prefix", "") $sPrefix1 = _IniFileRead("sFiniV", "Language", "Prefix1", $sdPrefix1) $sPause = _IniFileRead("sFiniV", "Language", "onPause", "") $sResume = _IniFileRead("sFiniV", "Language", "onResume", "") $sStopSay = _IniFileRead("sFiniV", "Language", "onStop", "") $sBye = _IniFileRead("sFiniV", "Language", "onStop", "") ; GUI_Labels $sgTitle = _IniFileRead("sFiniV", "GUI_Labels", "Title", $sgdTitle) $sgTop = _IniFileRead("sFiniV", "GUI_Labels", "Top", $sgdTop) $sgMinute = _IniFileRead("sFiniV", "GUI_Labels", "Minute", $sgdMinute) $sgMinutes = _IniFileRead("sFiniV", "GUI_Labels", "Minutes", $sgdMinutes) $sgQuarterHour = _IniFileRead("sFiniV", "GUI_Labels", "QuarterHour", $sgdHour) $sgHalfHour = _IniFileRead("sFiniV", "GUI_Labels", "HalfHour", $sgdHours) $sgHour = _IniFileRead("sFiniV", "GUI_Labels", "Hour", $sgdHour) $sgHours = _IniFileRead("sFiniV", "GUI_Labels", "Hours", $sgdHours) $sgCustom = _IniFileRead("sFiniV", "GUI_Labels", "CustomLabel", $sgdCustom) $sgClock = _IniFileRead("sFiniV", "GUI_Labels", "ClockStyle", $sgdClock) $sg12hr_label = _IniFileRead("sFiniV", "GUI_Labels", "12-hour_Label", $sgd12hr_Label) $sg24hr_label = _IniFileRead("sFiniV", "GUI_Labels", "24-hour_Label", $sgd24hr_label) $sgQuiet_label = _IniFileRead("sFiniV", "GUI_Labels", "Quiet_label", $sgdQuiet_label) $sgSpeak_label = _IniFileRead("sFiniV", "GUI_Labels", "Speak_label", $sgdSpeak_label) $sgDisplay_label = _IniFileRead("sFiniV", "GUI_Labels", "Display_label", $sgdDisplay_label) ; $sgExpires = _IniFileRead("sFiniV", "GUI_Labels", "ClockStop_Label", $sgdExpires) $sgExpNever = _IniFileRead("sFiniV", "GUI_Labels", "ClockStopsNever_Label", $sgdExpNever) $sgExpAfter = _IniFileRead("sFiniV", "GUI_Labels", "ClockStopsAfter_Label", $sgdExpAfter) $sgExpSecs = _IniFileRead("sFiniV", "GUI_Labels", "ClockStopsAfterSecs_Label", $sgdExpSecs) $sgExpMins = _IniFileRead("sFiniV", "GUI_Labels", "ClockStopsAfterMins_Label", $sgdExpMins) $sgExpHours = _IniFileRead("sFiniV", "GUI_Labels", "ClockStopsAfterHours_Label", $sgdExpHours) $sgExpDays = _IniFileRead("sFiniV", "GUI_Labels", "ClockStopsAfterDays_Label", $sgdExpDays) $sgExpWeeks = _IniFileRead("sFiniV", "GUI_Labels", "ClockStopsAfterWeeks_Label", $sgdExpWeeks) $sgExpMons = _IniFileRead("sFiniV", "GUI_Labels", "ClockStopsAfterMons_Label", $sgdExpMons) $sgExpYears = _IniFileRead("sFiniV", "GUI_Labels", "ClockStopsAfterYears_Label", $sgdExpYears) ; Global $sgVolume = _IniFileRead("sFiniV", "GUI_Labels", "Volume_Label", $sgdVolume_label) $sgStart_button = _IniFileRead("sFiniV", "GUI_Labels", "Start_button", $sgdStart_button) $sgCancel_button = _IniFileRead("sFiniV", "GUI_Labels", "Cancel_button", $sgdCancel_button) $sgPause = _IniFileRead("sFiniV", "GUI_Labels", "Tray_pause", $sgdPause) $sgResume = _IniFileRead("sFiniV", "GUI_Labels", "Tray_resume", $sgdResume) $sgExit = _IniFileRead("sFiniV", "GUI_Labels", "Tray_exit", $sgdExit) ; Global $hTrayPA = TrayCreateItem($sgPause, -1, 0) Global $hTrayEX = TrayCreateItem($sgExit, -1, 1) TraySetClick(1) TraySetState($TRAY_ICONSTATE_SHOW) TrayItemSetOnEvent($hTrayPA, "_TrayPause") TrayItemSetOnEvent($hTrayEX, "_TrayExit") ; Postfix pairs: get values Global $aParts[100][2], $aFParts[100][2] $aParts[0][0] = 0 If $bTimeOnly = 0 Then $aParts = PostfixPairsRead() $sFiniV = "" Global $oVox = ObjCreate("SAPI.spVoice") If @error Then _ExitErr("SAPI error") $oVox.Volume = $iVol $oVox.Rate = $iRate ; Args so skip the GUI (except if arg = RESET) If $CmdLine[0] > 0 Then $bArgs = 1 If StringInStr($sCMline, "/s") Then $sVoice = _GetArgValue("/s") If StringInStr($sCMline, "-s") Then $sVoice = _GetArgValue("-s") Global $oVoices If $sVoice Then $oVoices = $oVox.GetVoices() For $vName in $oVoices If StringInStr($vName.GetDescription(), $sVoice) Then $oVox.Voice = $vName ExitLoop EndIf Next EndIf If StringInStr(StringUpper($CmdLine[1]), "RESET") Then Exit MsgBox($MB_OK, @ScriptName, "Default settings restored in " & $sFini) Else Exit MAIN() EndIf EndIf ; GUI interface ; ------------- Global $hgTT = GUICreate($sgTitle, 638, 365, -1, -1, $WS_EX_APPWINDOW) GUISetState(@SW_SHOW, $hgTT) ;#Region ### START Koda GUI section ### Form=TT1.kxf ;$GroupBox1 = GUICtrlCreateGroup("", -8, -32, 526, 822) GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0x000000) GUICtrlSetBkColor(-1, 0xFFFFFF) Global $Label1 = GUICtrlCreateLabel($sgTop & ":", 8, 16, 137, 24) Global $hgA = GUICtrlCreateCheckbox($sgMinute, 16, 48, 113, 17) If $iFreq = 1 Then GUICtrlSetState($hgA, $GUI_CHECKED) Else GUICtrlSetState($hgA, $GUI_UNCHECKED) EndIf Global $hgB = GUICtrlCreateCheckbox("5 " & $sgMinutes, 16, 72, 113, 17) If $iFreq = 5 Then GUICtrlSetState($hgB, $GUI_CHECKED) Else GUICtrlSetState($hgB, $GUI_UNCHECKED) EndIf Global $hgC = GUICtrlCreateCheckbox("10 " & $sgMinutes, 16, 96, 113, 17) If $iFreq = 10 Then GUICtrlSetState($hgC, $GUI_CHECKED) Else GUICtrlSetState($hgC, $GUI_UNCHECKED) EndIf Global $hgD = GUICtrlCreateCheckbox($sgQuarterHour, 16, 120, 113, 17) If $iFreq = 15 Then GUICtrlSetState($hgD, $GUI_CHECKED) Else GUICtrlSetState($hgD, $GUI_UNCHECKED) EndIf Global $hgE = GUICtrlCreateCheckbox($sgHalfHour, 16, 144, 113, 17) If $iFreq = 30 Then GUICtrlSetState($hgE, $GUI_CHECKED) Else GUICtrlSetState($hgE, $GUI_UNCHECKED) EndIf Global $hgF = GUICtrlCreateCheckbox($sgHour, 16, 168, 113, 17) If $iFreq = 60 Then GUICtrlSetState($hgF, $GUI_CHECKED) Else GUICtrlSetState($hgF, $GUI_UNCHECKED) EndIf Global $hgX = GUICtrlCreateCheckbox($sgCustom & ":", 16, 192, 80, 17) Global $hgXt = GUICtrlCreateInput("", 96, 192, 41, 28) Global $Label2 = GUICtrlCreateLabel(" " & $sgMinutes, 144, 192, 60, 24) If Not StringInStr("|1|5|10|15|30|60|", "|" & $iFreq & "|") Then GUICtrlSetState($hgX, $GUI_CHECKED) GUICtrlSetState($hgX, $GUI_ENABLE) GUICtrlSetState($hgXt, $GUI_ENABLE) GUICtrlSetData($hgXt, $iFreq) Else GUICtrlSetState($hgX, $GUI_UNCHECKED) GUICtrlSetState($hgXt, $GUI_DISABLE) EndIf Global $Label3 = GUICtrlCreateLabel($sgClock & ":", 180, 16, 79, 24) Global $hgK = GUICtrlCreateCheckbox($sg12hr_label, 182, 48, 97, 17) If $vT12or24 = 12 Then GUICtrlSetState($hgK, $GUI_CHECKED) Else GUICtrlSetState($hgK, $GUI_UNCHECKED) $bSayAMPM = 0 EndIf Global $hgL = GUICtrlCreateCheckbox($sg24hr_label, 182, 72, 97, 17) If $vT12or24 = 24 Then GUICtrlSetState($hgL, $GUI_CHECKED) $bSayAMPM = 0 Else GUICtrlSetState($hgL, $GUI_UNCHECKED) EndIf Global $Label4 = GUICtrlCreateLabel($sgQuiet_label, 182, 130) Global $hgSpeak = GUICtrlCreateCheckbox($sgSpeak_label, 265, 130, 205, 17) GUICtrlSetState($hgSpeak, $GUI_ENABLE) Global $hgDisplay = GUICtrlCreateCheckbox($sgDisplay_label, 265, 155, 205, 17) GUICtrlSetState($hgDisplay, $GUI_ENABLE) If $bQuiet = 0 Then GUICtrlSetState($hgSpeak, $GUI_CHECKED) GUICtrlSetState($hgDisplay, $GUI_UNCHECKED) Else GUICtrlSetState($hgSpeak, $GUI_UNCHECKED) GUICtrlSetState($hgDisplay, $GUI_CHECKED) EndIf ; Clock stops Global $Label5 = GUICtrlCreateLabel($sgExpires & ":", 390, 16, 90, 24) Global $hgExpNever = GUICtrlCreateCheckbox($sgExpNever, 392, 48, 97, 17) If $iStop = 0 Then GUICtrlSetState($hgExpNever, $GUI_CHECKED + $GUI_ENABLE) Else GUICtrlSetState($hgExpNever, $GUI_UNCHECKED + $GUI_ENABLE) EndIf Global $hgExp = GUICtrlCreateCheckbox($sgExpAfter, 398, 72, 65, 17) If $iStop > 0 Then GUICtrlSetState($hgExp, $GUI_CHECKED + $GUI_ENABLE) Else GUICtrlSetState($hgExp, $GUI_UNCHECKED + $GUI_ENABLE) EndIf Global $hgExpAft = GUICtrlCreateInput("", 456, 64, 41, 28) If $iStop > 0 Then GUICtrlSetState($hgExpAft, $GUI_ENABLE) GUICtrlSetData($hgExpAft, $iStop) Else GUICtrlSetState($hgExpAft, $GUI_DISABLE) EndIf Global $hgExpUsecs = GUICtrlCreateRadio($sgExpSecs, 414, 96, 113, 17) If $iStop > 0 And $sUnits = "S" Then GUICtrlSetState($hgExpUsecs, $GUI_CHECKED + $GUI_ENABLE) Else GUICtrlSetState($hgExpUsecs, $GUI_UNCHECKED + $GUI_DISABLE) EndIf Global $hgExpUmins = GUICtrlCreateRadio($sgExpMins, 414, 120, 113, 17) If $iStop > 0 And $sUnits = "M" Then GUICtrlSetState($hgExpUmins, $GUI_CHECKED + $GUI_ENABLE) Else GUICtrlSetState($hgExpUmins, $GUI_UNCHECKED + $GUI_DISABLE) EndIf Global $hgExpUhours = GUICtrlCreateRadio($sgExpHours, 414, 144, 113, 17) If $iStop > 0 And $sUnits = "H" Then GUICtrlSetState($hgExpUhours, $GUI_CHECKED + $GUI_ENABLE) Else GUICtrlSetState($hgExpUhours, $GUI_UNCHECKED + $GUI_DISABLE) EndIf Global $hgExpUdays = GUICtrlCreateRadio($sgExpDays, 414, 168, 113, 17) If $iStop > 0 And $sUnits = "D" Then GUICtrlSetState($hgExpUdays, $GUI_CHECKED + $GUI_ENABLE) Else GUICtrlSetState($hgExpUdays, $GUI_UNCHECKED + $GUI_DISABLE) EndIf Global $hgExpUweeks = GUICtrlCreateRadio($sgExpWeeks, 414, 192, 113, 17) If $iStop > 0 And $sUnits = "W" Then GUICtrlSetState($hgExpUweeks, $GUI_CHECKED + $GUI_ENABLE) Else GUICtrlSetState($hgExpUweeks, $GUI_UNCHECKED + $GUI_DISABLE) EndIf Global $hgExpUmons = GUICtrlCreateRadio($sgExpMons, 414, 216, 113, 17) If $iStop > 0 And $sUnits = "T" Then GUICtrlSetState($hgExpUmons, $GUI_CHECKED + $GUI_ENABLE) Else GUICtrlSetState($hgExpUmons, $GUI_UNCHECKED + $GUI_DISABLE) EndIf Global $hgExpUyears = GUICtrlCreateRadio($sgExpYears, 414, 240, 113, 17) If $iStop > 0 And $sUnits = "Y" Then GUICtrlSetState($hgExpUyears, $GUI_CHECKED + $GUI_ENABLE) Else GUICtrlSetState($hgExpUyears, $GUI_UNCHECKED + $GUI_DISABLE) EndIf Global $iX = 8 GUICtrlCreateLabel($sgVolume_label, 8, 230+12) Global $hgV = GUICtrlCreateSlider(8, 255+12, 360) GUICtrlSetLimit($hgV, 100, 1) GUICtrlSetData($hgV, $iVol) GUICtrlSetState($hgV, $GUI_SHOW) GUICtrlCreateLabel("0", $iX, 280, 360) GUICtrlCreateLabel("20", $iX + 1*71, 280, 360) GUICtrlCreateLabel("40", $iX + 2*70, 280, 360) GUICtrlCreateLabel("60", $iX + 1 + 3*70, 280, 360) GUICtrlCreateLabel("80", $iX - 2 + 4*69, 280, 360) GUICtrlCreateLabel("100", $iX - 2 + 5*69, 280, 360) GUICtrlCreateGroup("", -99, -99, 1, 1) Global $hgStart = GUICtrlCreateButton($sgStart_button, 534, 22, 92, 30, $BS_DEFPUSHBUTTON) GUICtrlSetState($hgStart, $GUI_FOCUS) Global $hgCancel = GUICtrlCreateButton($sgCancel_button, 534, 62, 92, 31) GUISetState(@SW_SHOW) ; #EndRegion ### END Koda GUI section ### If $bQuiet = 0 Then If $sHi Then _SayTxt($sHi) EndIf WHILE 1 Switch GUIGetMsg() Case $hgA $iFreq = 1 GUICtrlSetState($hgA, $GUI_CHECKED) GUICtrlSetState($hgB, $GUI_UNCHECKED) GUICtrlSetState($hgC, $GUI_UNCHECKED) GUICtrlSetState($hgD, $GUI_UNCHECKED) GUICtrlSetState($hgE, $GUI_UNCHECKED) GUICtrlSetState($hgF, $GUI_UNCHECKED) GUICtrlSetState($hgX, $GUI_UNCHECKED) GUICtrlSetState($hgXt, $GUI_DISABLE) Case $hgB $iFreq = 5 GUICtrlSetState($hgA, $GUI_UNCHECKED) GUICtrlSetState($hgB, $GUI_CHECKED) GUICtrlSetState($hgC, $GUI_UNCHECKED) GUICtrlSetState($hgD, $GUI_UNCHECKED) GUICtrlSetState($hgE, $GUI_UNCHECKED) GUICtrlSetState($hgF, $GUI_UNCHECKED) GUICtrlSetState($hgX, $GUI_UNCHECKED) GUICtrlSetState($hgXt, $GUI_DISABLE) Case $hgC $iFreq = 10 GUICtrlSetState($hgA, $GUI_UNCHECKED) GUICtrlSetState($hgB, $GUI_UNCHECKED) GUICtrlSetState($hgC, $GUI_CHECKED) GUICtrlSetState($hgD, $GUI_UNCHECKED) GUICtrlSetState($hgE, $GUI_UNCHECKED) GUICtrlSetState($hgF, $GUI_UNCHECKED) GUICtrlSetState($hgX, $GUI_UNCHECKED) GUICtrlSetState($hgXt, $GUI_DISABLE) Case $hgD $iFreq = 15 GUICtrlSetState($hgA, $GUI_UNCHECKED) GUICtrlSetState($hgB, $GUI_UNCHECKED) GUICtrlSetState($hgC, $GUI_UNCHECKED) GUICtrlSetState($hgD, $GUI_CHECKED) GUICtrlSetState($hgE, $GUI_UNCHECKED) GUICtrlSetState($hgF, $GUI_UNCHECKED) GUICtrlSetState($hgX, $GUI_UNCHECKED) GUICtrlSetState($hgXt, $GUI_DISABLE) Case $hgE $iFreq = 30 GUICtrlSetState($hgA, $GUI_UNCHECKED) GUICtrlSetState($hgB, $GUI_UNCHECKED) GUICtrlSetState($hgC, $GUI_UNCHECKED) GUICtrlSetState($hgD, $GUI_UNCHECKED) GUICtrlSetState($hgE, $GUI_CHECKED) GUICtrlSetState($hgF, $GUI_UNCHECKED) GUICtrlSetState($hgX, $GUI_UNCHECKED) GUICtrlSetState($hgXt, $GUI_DISABLE) Case $hgF $iFreq = 60 GUICtrlSetState($hgA, $GUI_UNCHECKED) GUICtrlSetState($hgB, $GUI_UNCHECKED) GUICtrlSetState($hgC, $GUI_UNCHECKED) GUICtrlSetState($hgD, $GUI_UNCHECKED) GUICtrlSetState($hgE, $GUI_UNCHECKED) GUICtrlSetState($hgF, $GUI_CHECKED) GUICtrlSetState($hgX, $GUI_UNCHECKED) GUICtrlSetState($hgXt, $GUI_DISABLE) Case $hgX $bCanned = 0 GUICtrlSetState($hgA, $GUI_UNCHECKED) GUICtrlSetState($hgB, $GUI_UNCHECKED) GUICtrlSetState($hgC, $GUI_UNCHECKED) GUICtrlSetState($hgD, $GUI_UNCHECKED) GUICtrlSetState($hgE, $GUI_UNCHECKED) GUICtrlSetState($hgF, $GUI_UNCHECKED) GUICtrlSetState($hgX, $GUI_CHECKED) GUICtrlSetState($hgXt, $GUI_ENABLE) Case $hgXt $bCanned = 0 $iFreq = GUICtrlRead($hgXt) Case $hgK $vT12or24 = 12 $bSayAMPM = 0 GUICtrlSetState($hgK, $GUI_CHECKED) GUICtrlSetState($hgL, $GUI_UNCHECKED) Case $hgL $vT12or24 = 24 $bSayAMPM = 0 GUICtrlSetState($hgK, $GUI_UNCHECKED) GUICtrlSetState($hgL, $GUI_CHECKED) Case $hgDisplay $bQuiet = 1 GUICtrlSetState($hgSpeak, $GUI_UNCHECKED) GUICtrlSetState($hgDisplay, $GUI_CHECKED) Case $hgSpeak $bQuiet = 0 GUICtrlSetState($hgSpeak, $GUI_CHECKED) GUICtrlSetState($hgDisplay, $GUI_UNCHECKED) Case $hgV $iVol = GUICtrlRead($hgV) GUICtrlSetState($hgV, $GUI_ENABLE) Global $aCartesian = MouseGetPos() ToolTip($iVol, $aCartesian[0], $aCartesian[1], "", 0, 2) Sleep(500) ToolTip("") GUICtrlSetState($hgV, $GUI_CHECKED) Case $hgExp GUICtrlSetState($hgExp, $GUI_CHECKED) GUICtrlSetState($hgExpNever, $GUI_UNCHECKED) GUICtrlSetState($hgExpAft, $GUI_ENABLE) GUICtrlSetState($hgExpUsecs, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($hgExpUmins, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($hgExpUhours, $GUI_CHECKED + $GUI_ENABLE) GUICtrlSetState($hgExpUdays, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($hgExpUweeks, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($hgExpUmons, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($hgExpUyears, $GUI_UNCHECKED + $GUI_ENABLE) Case $hgExpAft $iStop = GUICtrlRead($hgExpAft) If Not StringIsDigit($iStop) Then $iStop = 0 Case $hgExpUsecs $sUnits = "S" Case $hgExpUmins $sUnits = "M" Case $hgExpUhours $sUnits = "H" Case $hgExpUdays $sUnits = "D" Case $hgExpUweeks $sUnits = "W" Case $hgExpUmons $sUnits = "T" Case $hgExpUyears $sUnits = "Y" Case $hgExpNever $iStop = 0 GUICtrlSetState($hgExpNever, $GUI_CHECKED) GUICtrlSetState($hgExp, $GUI_UNCHECKED) GUICtrlSetState($hgExpAft, $GUI_DISABLE) GUICtrlSetState($hgExpUsecs, $GUI_UNCHECKED + $GUI_DISABLE) GUICtrlSetState($hgExpUmins, $GUI_UNCHECKED + $GUI_DISABLE) GUICtrlSetState($hgExpUhours, $GUI_CHECKED + $GUI_DISABLE) GUICtrlSetState($hgExpUdays, $GUI_UNCHECKED + $GUI_DISABLE) GUICtrlSetState($hgExpUweeks, $GUI_UNCHECKED + $GUI_DISABLE) GUICtrlSetState($hgExpUmons, $GUI_UNCHECKED + $GUI_DISABLE) GUICtrlSetState($hgExpUyears, $GUI_UNCHECKED + $GUI_DISABLE) Case $hgStart GUISetState(@SW_HIDE, $hgTT) MAIN() Case $hgCancel ContinueCase Case $GUI_EVENT_CLOSE ; _SayTxt($sBye) If Not $sFini2 Then WriteTTini() Exit EndSwitch WEND ; Function definitions ; -------------------- Func MAIN() ; TalkTock If $sFini2 = "" And $CmdLine[0] > 0 Then ; ---------------------------------------- If StringInStr($CmdLine[1], "/L") Then Exit MsgBox($MB_OK, @ScriptName, _ListVoices()) If StringInStr($CmdLine[1], "/source") Then Exit _ShowSource("txt") If StringInStr($CmdLine[1], "/?") = 1 Or StringInStr($CmdLine[1], "-?") = 1 Or StringInStr($CmdLine[1], "/h") = 1 Or StringInStr($CmdLine[1], "-h") = 1 Then Exit _ShowHelp() If StringInStr($CmdLine[1], "sayhelp") Then Exit _SayHelp() If StringInStr($CmdLine[1], "kill") Then Local $aP = ProcessList(@ScriptName) Local $iP = $aP[0][0] - 1 If $iP > 0 Then ; Local $sT = "Killing " & $iP & @ScriptName ; _Splash($sT & " process(es)") _Splash("Killing " & StringTrimRight(@ScriptName, 4)) Sleep(1000) SplashOff() While ProcessClose(@ScriptName) Sleep(100) WEnd Exit Else _ExitErr("No running " & StringTrimRight(@ScriptName, 4) & " processes") EndIf EndIf If StringInStr($sCMline, "/i") Then $iFreq = _GetArgValue("/i") If StringInStr($sCMline, "-i") Then $iFreq = _GetArgValue("-i") If StringInStr($sCMline, "/c") Then $vT12or24 = _GetArgValue("/c") If StringInStr($sCMline, "-c") Then $vT12or24 = _GetArgValue("-c") If StringInStr($sCMline, "/v") Then $iVol = _GetArgValue("/v") If StringInStr($sCMline, "-v") Then $iVol = _GetArgValue("-v") If StringInStr($sCMline, "/q") Or StringInStr($sCMline, "-q") Then $bQuiet = 1 If StringInStr($sCMline, "/qq") Or StringInStr($sCMline, "-qq") Then $bQuiet = 0 If StringInStr($sCMline, "/t") Or StringInStr($sCMline, "-t") Then $bTimeOnly = 1 $bSayAMPM = 0 EndIf If StringInStr($sCMline, "/r") Then $iRate = _GetArgValue("/r") If StringInStr($sCMline, "-r") Then $iRate = _GetArgValue("-r") Local $sU = "H" If StringInStr($sCMline, "/u ") Then $sU = _GetArgValue("/u") If StringInStr($sCMline, "-u ") Then $sU = _GetArgValue("-u") If StringInStr($sU, "=") Then Local $aU = StringSplit($sU, "=") $sUnits = $aU[1] If $aU[0] > 1 Then $iStop = $aU[2] If Not $iStop Then $iStop = 0 Switch $sU Case "S" $sUnits = "seconds" Case "M" $sUnits = "minutes" Case "H" $sUnits = "hours" Case "D" $sUnits = "days" Case "W" $sUnits = "weeks" Case "T" $sUnits = "months" Case "Y" $sUnits = "years" EndSwitch EndIf If StringInStr($sCMline, "/usefile") Then $sFini = _GetArgValue("/usefile") If StringInStr($sCMline, "-usefile") Then $sFini = _GetArgValue("-usefile") EndIf ; -------------------- If $bTimeOnly = 1 Then $sHi = "" #cs $sIntro = "" $sHowFreq1 = "" $sHowFreq5 = "" $sHowFreq10 = "" $sHowFreq15 = "" $sHowFreq30 = "" $sHowFreq60 = "" $sHowFreqCustom = "" #ce $sPrefix = "" $sPrefix1 = "" $sMidnight = "" $sMidday = "" $sPause = "" $sResume = "" $sStopSay = "" $sBye = "" EndIf #cs; debug ;Exit MsgBox(0,"", _ MsgBox(0,"", _ "$bTimeOnly = " & $bTimeOnly & @CRLF & _ "$iFreq = " & $iFreq & @CRLF & _ "$vT12or24 = " & $vT12or24 & @CRLF & _ "$sVoice = " & $sVoice & @CRLF & _ "$iVol = " & $iVol & @CRLF & _ "$iRate = " & $iRate & @CRLF & _ "$iStop = " & $iStop & @CRLF & _ "$sUnits = " & $sUnits & @CRLF & _ "$bQuiet = " & $bQuiet & @CRLF & _ "$iDisplay = " & $iDisplay & @CRLF) #ce; debug ; Failsafe defaults If Not StringIsDigit(String($iFreq)) Then $iFreq = 15 If Not $vT12or24 = "24" Then $vT12or24 = 12 If Not StringIsDigit(String($iVol)) Then $iVol = 80 If $iVol > 100 Then $iVol = 100 If String(Abs($iRate)) <> String($iRate) Then $iRate = 0 If $iRate < -10 Or $iRate > 10 Then $iRate = 0 If Not StringIsDigit(String($iStop)) Then $iStop = 0 If Not StringInStr("|S|M|H|D|W|T|Y|", ("|" & $sUnits & "|")) Then $sUnits = "H" Local $sAllFreqs = "|1|5|10|15|30|60|", $sHowFreq = "" If StringInStr($sAllFreqs, "|" & $iFreq & "|") < 1 Then $bCanned = 0 If Not $bCanned Then If StringIsDigit(String($iFreq)) Then $iFreq = Int($iFreq) If $iFreq < 1 Then Exit _ShowHelp() Else EndIf EndIf If $bCanned Then Switch $iFreq Case 1 $sHowFreq = $sHowFreq1 Case 5 $sHowFreq = $sHowFreq5 Case 10 $sHowFreq = $sHowFreq10 Case 15 $sHowFreq = $sHowFreq15 Case 30 $sHowFreq = $sHowFreq30 Case 60 $sHowFreq = $sHowFreq60 EndSwitch Else $sHowFreq = $iFreq & " " & $sHowFreqCustom EndIf If Not $sFini2 Then If Not $bArgs Then WriteTTini() EndIf If $bQuiet = 0 Then If $sIntro Then _SayTxt($sIntro & " " & $sHowFreq) Else $sHowFreq = StringReplace($sHowFreq, "minnit", " minute") $sHowFreq = StringReplace($sHowFreq, "'", "h") If StringLen($sHowFreq) > 10 Then $sHowFreq = @CRLF & $sHowFreq If $sHowFreq Then If $sIntro Then _Splash($sIntro & " " & $sHowFreq) EndIf Sleep(2000) SplashOff() EndIf If $iStop > 0 Then $iIter = _SetTimer($iStop, $sUnits) If $bCanned Then While 1 Do Sleep(200) Until @SEC = 00 And Mod(@MIN, $iFreq) = 0 _SayTime($vT12or24) _CheckTimer() Sleep(45000) WEnd Else ; Custom interval Local $iMin, $iNext While 1 $iMin = @MIN _CheckTimer() If $iFreq = 60 Then Sleep(60500) $iNext = StringFormat("%02i", Mod($iMin + $iFreq, 60)) Do Sleep(100) Until Int(@MIN) = Int($iNext) And Int(@SEC) = 0 _SayTime($vT12or24) WEnd EndIf EndFunc ;==>MAIN ; --------------- Func _GetArgValue($sArg) ; Get value (if any) following /SWitch (arg) Local $sVal = "" If $CmdLine[0] > 1 Then For $i = 1 To $CmdLine[0] If $sArg = $CmdLine[$i] Then If $CmdLine[0] > $i Then $sVal = StringStripWS($CmdLine[$i + 1], 1) If StringInStr($sVal, "/") = 1 Or StringInStr($sVal, "-") = 1 Then If StringInStr($sArg, "r") = 2 And StringInStr($sVal, "-") And StringIsDigit(StringTrimLeft($sVal, 1)) Then Return $sVal Else Return "" EndIf EndIf EndIf EndIf Next EndIf Return $sVal EndFunc ;==>_GetArgValue Func _SetTimer($iN, $sUnits = "H") If StringLen($sUnits) > 1 Then $sUnits = StringLeft($sUnits, 3) If $sUnits = "mon" Then $sUnits = "T" $sUnits = StringUpper(StringLeft($sUnits, 1)) EndIf Local $iM = 0 Switch $sUnits Case "S" $iM = 0.16 Case "M" $iM = 1 Case "H" $iM = 60 Case "D" $iM = 1440 Case "W" $iM = 10080 Case "T" $iM = 43200 Case "Y" $iM = 525600 EndSwitch Return Ceiling(($iM * $iN) / $iFreq) EndFunc ;==>_SetTimer Func _CheckTimer() If $iIter > -1 Then $iIter -= 1 If $iIter = 0 Then Exit MsgBox($MB_OK, StringTrimRight(@ScriptName, 4), StringTrimRight(@ScriptName, 4) & " quitting...", 5) Return EndFunc ;==>_CheckTimer Func _ExitErr($sMg, $iSecs = 0) Exit MsgBox($MB_OK + $MB_ICONERROR, @ScriptName, $sMg, $iSecs) EndFunc ;==>_ExitErr Func _IniFileRead($sVarName, $sSection, $sKey, $sDefault) #cs; ----------------------------------------------- IniRead with default text encoding @error codes: 1 = Variable $sVarName Not Declared 2 = Error reading contents of $sVarName 3 = Section not found 4 = Key not found 5 = Key not found in section #ce; ----------------------------------------------- If Not IsDeclared($sVarName) Then If $sDefault Then Return $sDefault Else Return SetError(1, "Variable " & $sVarName & " is not declared", "") EndIf EndIf Local $sFc = Eval($sVarName) If Not $sFc Then If $sDefault Then Return $sDefault Else Return SetError(2, "Error reading INI file contents", "") EndIf EndIf Local $sCrLf = @LF $sFc = StringReplace($sFc, @CRLF, $sCrLf) Local $iXsec = StringInStr(StringUpper($sFc), $sCrLf & "[" & StringUpper($sSection) & "]") If $iXsec < 1 Then If $sDefault Then Return $sDefault Else Return SetError(3, "Section not found", "") EndIf EndIf $iXsec += StringLen($sCrLf & "[" & StringUpper($sSection) & "]") Local $sSecC = $sCrLf & StringTrimLeft($sFc, $iXsec) If StringInStr($sSecC, $sCrLf & "[") And StringInStr($sSecC, "]" & $sCrLf) > StringInStr($sSecC, $sCrLf & "[") Then _ $sSecC = StringTrimRight($sSecC, StringLen($sSecC) - StringInStr($sSecC, $sCrLf & "[")) If Not StringInStr(StringUpper($sSecC), StringUpper($sKey) & "=") Then If $sDefault Then Return $sDefault Else Return SetError(4, "Key not found", "") EndIf EndIf Local $sVal0 = StringTrimLeft($sSecC, StringInStr($sSecC, $sCrLf & $sKey & "=")) $sVal0 = StringTrimRight($sVal0, 1 + StringLen($sVal0) - StringInStr($sVal0, String($sCrLf))) Local $sValue = StringTrimLeft($sVal0, StringInStr($sVal0, "=")) If Not $sValue Then $sValue = $sDefault Return SetError(0, 0, $sValue) EndFunc ;==>_IniFileRead Func _IniFileReadFile($sFn) #cs; ------------------------------------------------ Read INI file contents into a (string) variable @error codes: 1 = $sVarName Is Not Declared 2 = Error reading $sVarName 3 = Section does not exit 4 = Key does not exit #ce; ------------------------------------------------ If Not FileExists($sFn) Then Return SetError(1, 0, "") Local $h = FileOpen($sFn) If $h = -1 Then Return SetError(2, 0, "") Local $sFc = FileRead($h) If Not FileClose($h) Then Return SetError(3, 0, "") If StringRight($sFc, 1) = Chr(26) Then $sFc = StringTrimRight($sFc, 1) Return @CRLF & $sFc EndFunc ;==>_IniFileReadFile Func _ListVoices() $oVox = ObjCreate("SAPI.spVoice") If @error Then Exit _ExitErr("Error creating SAPI object", 10) $oVoices = $oVox.GetVoices() Local $sVlist = "" For $vName in $oVoices $sVlist &= $vName.GetDescription() & @CRLF Next Return $sVlist EndFunc ;==>_ListVoices Func _PauseVoice($iBeats = 1) If StringIsDigit(String($iBeats)) Then $iBeats = Int($iBeats) Sleep($iBeats * 100) EndIf Return EndFunc ;==>_PauseVoice Func _SayHelp() _SayTxt("Welcome to TalkTock, The Talking Clock.") _PauseVoice(1) _SayTxt("To get started, command START, space, forward slash, M,I,N, space, TalkTock, Enter. Choose your settings, and click Start.") _PauseVoice(1) _SayTxt("For command-line help, command TalkTock, space, forward slash, question mark, and hit Enter.") _PauseVoice(1) _SayTxt("To view and customize all available TalkTock settings, open TalkTock dot I,N,I, in any text editor.") _PauseVoice(1) _SayTxt("I hope you enjoy TalkTock!") Return EndFunc ;==>_SayHelp Func _SayTime($vTime12or24 = 12) Local $h = Int(@HOUR) Local $sAMPM = "" Local $sPostfix = PostfixPairsSet() If $vTime12or24 = "12" Then If $bSayAMPM Then Select Case $h = 0 If @MIN = "00" Then $sAMPM = $sMidnight Else $sAMPM = "AM" EndIf Case $h < 12 $sAMPM = "AM" Case $h = 12 If @MIN = "00" Then $sAMPM = $sMidday Else $sAMPM = "PM" EndIf Case Else $sAMPM = "PM" EndSelect EndIf If $h > 11 Then $h = Mod($h, 12) If $h = 0 Then $h = 12 EndIf If $sPrefix1 And Int($h) = 1 Then $sPrefix = $sPrefix1 If Not $sPostfix Then $sPostfix = $sAMPM Local $sTime = $sPrefix & " " & $h & ":" & @MIN & " " & $sPostfix If $bQuiet > 0 Then _Splash($sTime) If $iDisplay < 1 Then $iDisplay = 1 Sleep(Int(1000 * $iDisplay)) SplashOff() Else _SayTxt($sTime) EndIf Return EndFunc ;==>_SayTime Func _SayTxt($sIn) ; Text-to-Speech Local $iRC = -1 If $sIn Then $oVox.Speak($sIn) $iRC = StringLen($sIn) EndIf Return $iRC EndFunc ;==>_SayTxt Func _ShowHelp() MsgBox($MB_OK, @ScriptName & " - Talking Clock", $sHelp) EndFunc ;==>_ShowHelp Func _ShowSource($postfx) ; Show source code Local $Ext If Not $postfx Then $Ext = "txt" Else $Ext = $postfx EndIf Local $TmpFile = @TempDir & "\ausource." & $Ext If FileExists($TmpFile) Then If FileGetAttrib($TmpFile) = "R" Then FileSetAttrib($TmpFile, "-R") EndIf Select Case $Ext = "txt" FileInstall("X:\ausource.txt", $TmpFile, 1) Case $Ext = "pdf" ;FileInstall("X:\ausource.pdf", $TmpFile, 1) EndSelect Sleep(50) ShellExecute($TmpFile, "", @TempDir, "open") EndFunc ;==>_ShowSource Func _Splash($sTxt) SplashTextOn(@ScriptName, $sTxt, 650, 150, -1, -1, 32, "", 14, 600) Return EndFunc ;==>_Splash Func _TmpFile($sDir = @TempDir, $sExt = "tmp", $iLen = 8, $sPre = "") ; Generate a non-existent 8.3 filename ; Returns null string on failure Local $aA = StringSplit("ABCDEFGHIJKLMNPQRSTUVWXYZ123456789", "") Local $sX = "nul", $itr = 0 If $sPre Then $iLen -= StringLen($sPre) While FileExists($sX) $itr += 1 $sX = $sPre For $i = 1 To $iLen $sX &= $aA[Random(1, $aA[0])] Next $sX = $sDir & "\" & $sX & "." & $sExt If $itr > 50 Then $sX = "" ExitLoop EndIf WEnd Return $sX EndFunc ;==>_TmpFile Func _TrayPause() If TrayItemGetText($hTrayPA) = $sgPause Then TrayItemSetText($hTrayPA, $sgResume) If $bQuiet = 0 Then _SayTxt($sPause) Else _Splash($sPause) Sleep(1500) SplashOff() EndIf Else TrayItemSetText($hTrayPA, $sgPause) If $bQuiet = 0 Then _SayTxt($sResume) Else _Splash($sResume) Sleep(1500) SplashOff() EndIf Return EndIf Do Sleep(200) Until TrayItemGetState($hTrayPA) Or TrayItemGetState($hTrayEX) EndFunc ;==>_TrayPause Func _TrayExit() If Not $sFini2 Then If Not $bArgs Then WriteTTini() EndIf If $bQuiet = 0 Then _SayTxt($sBye) Else _Splash($sBye) Sleep(1000) SplashOff() EndIf Exit EndFunc ;==>_TrayExit Func PostfixPairsRead() $aFParts[0][0] = 0 Local $sValPt = "", $sValSp = "" For $n = 1 To 99 $sValPt = _IniFileRead("sFiniV", "Language", "Range" & $n, "") If $sValPt Then $sValSp = _IniFileRead("sFiniV", "Language", "Phrase" & $n, "") $aFParts[$n][0] = $sValPt $aFParts[$n][1] = $sValSp Else $aFParts[0][0] = $n - 1 ExitLoop EndIf Next Return $aFParts EndFunc ;==>PostfixPairsRead Func PostfixPairsSet() Local $vTime = String(@HOUR & @MIN) Local $sPostfix = "", $aPtt If $bTimeOnly = 0 And $aParts[0][0] > 0 Then For $z = 1 To $aParts[0][0] $aPtt = StringSplit($aParts[$z][0], "-") If $vTime >= $aPtt[1] And $vTime <= $aPtt[2] Then ExitLoop Next $sPostfix = $aParts[$z][1] EndIf Return $sPostfix EndFunc ;==>PostfixPairsSet Func WriteTTini() IniWrite($sFini, "TalkTock", "Interval", $iFreq) IniWrite($sFini, "TalkTock", "ClockStyle", $vT12or24) IniWrite($sFini, "TalkTock", "SayAMPM", $bSayAMPM) If $sVoice = "" Then $sVoice = "default" IniWrite($sFini, "TalkTock", "Voice", $sVoice) IniWrite($sFini, "TalkTock", "Volume", $iVol) IniWrite($sFini, "TalkTock", "TalkRate", $iRate) IniWrite($sFini, "TalkTock", "ClockStops", $iStop) IniWrite($sFini, "TalkTock", "ClockTimerUnits", $sUnits) IniWrite($sFini, "TalkTock", "Quiet", $bQuiet) IniWrite($sFini, "TalkTock", "Display", $iDisplay) EndFunc ;==>WriteTTini Func RestartTT() Local $hgRE = GUICreate(@ScriptName, 350, 150, -1, -1, $ES_CENTER) GUISetState(@SW_HIDE, $hgRE) GUICtrlCreateLabel(@ScriptName & " is running. What would you like to do?", 18, 22, 337, 24) Local $hgREStart = GUICtrlCreateButton("Restart", 20, 55, 70, -1, $BS_DEFPUSHBUTTON) Local $hgREQuit = GUICtrlCreateButton("Quit", 105, 55, 70, -1, -1) Local $hgRECancel = GUICtrlCreateButton("Cancel", 190, 55, 70, -1, -1) ;---------- Local $aTTp = ProcessList(@ScriptName) Local $iThis = @AutoItPID GUISetState(@SW_SHOW, $hgRE) While 1 Switch GUIGetMsg($hgRE) Case $hgREStart For $q = 1 To $aTTp[0][0] If $aTTp[$q][1] <> $iThis Then ProcessClose($aTTp[$q][1]) Next GUIDelete($hgRE) ExitLoop Case $hgREQuit For $q = 1 To $aTTp[0][0] If $aTTp[$q][1] <> $iThis Then ProcessClose($aTTp[$q][1]) Next ContinueCase Case $hgRECancel ContinueCase Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd ;---------- EndFunc ;==>ReStartTT Settings file (TalkTock.ini): Settings file for TalkTock.exe, Talking Clock ; [TalkTock] ;; Interval between time announcements, in minutes Interval=15 ;; 12- or 24-hour clock ClockStyle=12 ;; Say AM/PM? 1=Yes 0=No; applies to 12-hour clock only SayAMPM=1 ;; TTS voice Voice=default ;Voice=Microsoft George ;; Volume, range 1 to 100 Volume=80 ;; Speaking rate, range -10 to 10 TalkRate=0 ;; Clock stop timer units ;; S=secs M=mins H=hours D=days W=weeks T=months Y=years ClockTimerUnits=H ;; Clock stops after how many timer units? (0 = clock never stops) ClockStops=0 ;; Quiet operation, time shown on screen (1=yes 0=no) Quiet=0 ;; Duration, in seconds, of on-screen time display ;; Fractional (decimal) values are allowed (e.g., Display=3.5) Display=2.5 [Language] ;; Translate the phrases and labels below into your chosen language. ;; Any language with a TTS function (a "Voice") in its language pack ;; should work. To use other languages, edit TalkTock.ini using the ;; UTF-8 character set ; ;; TimeOnly: 1=Yes (phrases set below will NOT be spoken); 0=No TimeOnly=0 ; ; Welcome and Intro messages ;; Comment out (prepend ";") to suppress these messages onStart=Welcome to TalkTock, the Talking Clock Intro=The time will be announced every ; ; Interval descriptions Freq1=minnit Freq5=5 minutes at the 5-minute mark Freq10=10 minutes at the 10-minute mark Freq15=15 minutes on the quarter hour Freq30=30 minutes on the half hour Freq60='our on the hour FreqCustom=minutes ;; Spoken prefix Prefix=It's ;; No prefix (just announce the time): ;Prefix= ;Prefix=It's ;Prefix=It's now ;Prefix=The time is ;; Singular prefix: Prefix1 defines the singular inflection ;; for "one o'clock" in applicable languages, e.g., Italian ;Prefix1= ;; Postfix at midnight (0000 hours) and midday (1200 hours) ;; See also Postfix pairs, below At0000Say=midnight At1200Say=noon ; ;; Postfix pairs (optional) ;; ------------------------ ;; Alternatives to saying "AM/PM" (or equivalent) after the time ;; If time falls within Range, TalkTock says ;; Phrase after saying the time ;; You can set as many, or as few, of these pairs as you like ;; Note: Range# settings must have content (a time range hhmm-hhmm) ;; Phrase# settings can be a phrase or empty (say nothing) ;Range1=0000-0000 ;Phrase1=Midnight ;Range2=0001-0329 ;Phrase2=A.M. ;Range3=0330-1159 ;Phrase3=in the morning ;Range4=1200-1200 ;Phrase4=Noon ;Range5=1201-1659 ;Phrase5=in the afternoon ;Range6=1700-1959 ;Phrase6=in the evening ;Range7=2000-2359 ;Phrase7=at night ;; ------------------------ ; ; Pause/Resume/Stop ;; Comment out (prepend ";") to suppress these messages onPause=TalkTock paused onResume=TalkTock resumed onStop=Goodbye [GUI_Labels] Title=TalkTock - Talking Clock Top=Say the time every Minute=minute Minutes=minutes QuarterHour=quarter hour HalfHour=half hour Hour=hour Hours=hours CustomLabel=Custom ClockStyle=Clock style 12-hour_Label=12-hour 24-hour_Label=24-hour Quiet_label=Time is: Speak_label=spoken Display_label=displayed ClockStop_Label=Clock stops ClockStopsNever_Label= Never ClockStopsAfter_Label= After ClockStopsAfterSecs_Label=secs ClockStopsAfterMins_Label=mins ClockStopsAfterHours_Label=hours ClockStopsAfterDays_Label=days ClockStopsAfterWeeks_Label=weeks ClockStopsAfterMons_Label=months ClockStopsAfterYears_Label=years Volume_Label=Volume ClockStop_Label=Clock stops ClockStopsAfter_Label=After ClockStopsHours_Label=hours ClockStopsNever_Label=Never Start_button=Start Cancel_button=Cancel Tray_pause=Pause Tray_resume=Resume Tray_exit=Stop Enjoy!1 point
-
How do I Format my computer with AutoIt
JLogan3o13 reacted to JockoDundee for a topic
You are making a strawman argument; if you look back at my statements, statements that were intentionally written in the counterfactual plusquamperfect, I would hope you would agree that I was just looking to satisfy the curiosity of @JLogan3o13insofar as someone might plausibly, if even erroneously, think that the task at hand might be accomplished in Autoit. Whether it can or not was not the point of my reply.1 point -
How do I Format my computer with AutoIt
Earthshine reacted to argumentum for a topic
Nope. The OP is asking for a fresh install. AutoIt itself is an interface for other programs in your example @JockoDundee. There is plenty of resources in the freeware ( or included on the OS ) world. Getting to know AutoIt is good. But not the tool(s) for this.1 point -
New UX Window in AutoIt v3
edgi reacted to Se7enstars for a topic
1 point -
Fan speed (open hardware monitor)
silver_ghost reacted to Scampy for a topic
Hi! How to display the CPU fan speed according to this example: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <StaticConstants.au3> If not ProcessExists("OpenHardwareMonitor.exe") Then Msgbox (16, "Error", "Please start OpenHardwareMonitor.exe") Exit EndIf $wbemFlagReturnImmediately = 0x10 $wbemFlagForwardOnly = 0x20 $strComputer = "." $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\OpenHardwareMonitor") GUICreate ("CPU", 200,200) GUICtrlCreateLabel ("Temperature", 10, 10, 100, 20) GUICtrlCreateLabel ("Fan speed", 10, 40, 100, 20) $CPUTemp = GUICtrlCreateLabel("", 130, 10, 50, 20) $CPUFan = GUICtrlCreateLabel("", 130, 40, 50, 20) GUISetState() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch $colItems = $objWMIService.ExecQuery("SELECT * FROM Sensor", "WQL",$wbemFlagReturnImmediately + $wbemFlagForwardOnly) For $objItem in $colItems if $objItem.SensorType = 'Temperature' and StringInStr($objItem.Parent, 'cpu') Then If StringInStr($objItem.Name , "Package") Then _GuiCtrlSetData($CPUTemp, $objItem.Value & " °C") EndIf EndIf if $objItem.SensorType = 'Fan' and StringInStr($objItem.Parent, 'mainboard') Then If StringInStr($objItem.Name , "Fan #1") Then _GuiCtrlSetData($CPUFan, $objItem.Value & " RPM") EndIf EndIf Next WEnd Func _GUICtrlSetData($iCtrlID, $sData) If GUICtrlRead($iCtrlID, 1) <> $sData Then GUICtrlSetData($iCtrlID, $sData) EndFunc ;==>_GUICtrlSetData Sensor "Fan" does not work. Or I'm doing something wrong?1 point -
You have to search for the CMD windows and hide it: Something like that: $var = WinList() For $i = 1 To $var[0][0] If $var[$i][0] <> "" And BitAND(WinGetState($var[$i][1]), 2) Then If WinGetProcess($var[$i][0], "") = @AutoItPID Then WinSetState($var[$i][1], "", @SW_HIDE) ExitLoop EndIf EndIf Next I used the code above in Head-Tail to have a semi CLI version. Br, UEZ1 point
-
USB drive Monitor Example
Earthshine reacted to ptrex for a topic
USB Monitor - using WMI Event notification Some one in the Support Section asked if it was possible to have a notification if a USB drive was Connected / Disconnected. Well here is an example using the WMI Event notification : $strComputer = "." $objWMIService = ObjGet("winmgmts:" & $strComputer & "rootcimv2") $colEvents = $objWMIService.ExecNotificationQuery _ ("Select * From __InstanceOperationEvent Within 5 Where " _ & "TargetInstance isa 'Win32_LogicalDisk'") While 1 $objEvent = $colEvents.NextEvent If $objEvent.TargetInstance.DriveType = 2 Then Select Case $objEvent.Path_.Class()="__InstanceCreationEvent" Consolewrite("Drive " & $objEvent.TargetInstance.DeviceId & "has been added." & @CR) Case $objEvent.Path_.Class()="__InstanceDeletionEvent" Consolewrite("Drive " & $objEvent.TargetInstance.DeviceId & "has been removed."& @CR) EndSelect EndIf WEnd Enjoy !! ptrex1 point -
GET BIOS INFO [CPU temperature]
silver_ghost reacted to GaryFrost for a topic
If the system has it i believe this get's the info wanted (needs beta) ; Generated by AutoIt Scriptomatic $wbemFlagReturnImmediately = 0x10 $wbemFlagForwardOnly = 0x20 $colItems = "" $strComputer = "localhost" $Output="" $Output = $Output & "Computer: " & $strComputer & @CRLF $Output = $Output & "==========================================" & @CRLF $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\CIMV2") $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_TemperatureProbe", "WQL", _ $wbemFlagReturnImmediately + $wbemFlagForwardOnly) If IsObj($colItems) then For $objItem In $colItems $Output = $Output & "Accuracy: " & $objItem.Accuracy & @CRLF $Output = $Output & "Availability: " & $objItem.Availability & @CRLF $Output = $Output & "Caption: " & $objItem.Caption & @CRLF $Output = $Output & "ConfigManagerErrorCode: " & $objItem.ConfigManagerErrorCode & @CRLF $Output = $Output & "ConfigManagerUserConfig: " & $objItem.ConfigManagerUserConfig & @CRLF $Output = $Output & "CreationClassName: " & $objItem.CreationClassName & @CRLF $Output = $Output & "CurrentReading: " & $objItem.CurrentReading & @CRLF $Output = $Output & "Description: " & $objItem.Description & @CRLF $Output = $Output & "DeviceID: " & $objItem.DeviceID & @CRLF $Output = $Output & "ErrorCleared: " & $objItem.ErrorCleared & @CRLF $Output = $Output & "ErrorDescription: " & $objItem.ErrorDescription & @CRLF $Output = $Output & "InstallDate: " & WMIDateStringToDate($objItem.InstallDate) & @CRLF $Output = $Output & "IsLinear: " & $objItem.IsLinear & @CRLF $Output = $Output & "LastErrorCode: " & $objItem.LastErrorCode & @CRLF $Output = $Output & "LowerThresholdCritical: " & $objItem.LowerThresholdCritical & @CRLF $Output = $Output & "LowerThresholdFatal: " & $objItem.LowerThresholdFatal & @CRLF $Output = $Output & "LowerThresholdNonCritical: " & $objItem.LowerThresholdNonCritical & @CRLF $Output = $Output & "MaxReadable: " & $objItem.MaxReadable & @CRLF $Output = $Output & "MinReadable: " & $objItem.MinReadable & @CRLF $Output = $Output & "Name: " & $objItem.Name & @CRLF $Output = $Output & "NominalReading: " & $objItem.NominalReading & @CRLF $Output = $Output & "NormalMax: " & $objItem.NormalMax & @CRLF $Output = $Output & "NormalMin: " & $objItem.NormalMin & @CRLF $Output = $Output & "PNPDeviceID: " & $objItem.PNPDeviceID & @CRLF $strPowerManagementCapabilities = $objItem.PowerManagementCapabilities(0) $Output = $Output & "PowerManagementCapabilities: " & $strPowerManagementCapabilities & @CRLF $Output = $Output & "PowerManagementSupported: " & $objItem.PowerManagementSupported & @CRLF $Output = $Output & "Resolution: " & $objItem.Resolution & @CRLF $Output = $Output & "Status: " & $objItem.Status & @CRLF $Output = $Output & "StatusInfo: " & $objItem.StatusInfo & @CRLF $Output = $Output & "SystemCreationClassName: " & $objItem.SystemCreationClassName & @CRLF $Output = $Output & "SystemName: " & $objItem.SystemName & @CRLF $Output = $Output & "Tolerance: " & $objItem.Tolerance & @CRLF $Output = $Output & "UpperThresholdCritical: " & $objItem.UpperThresholdCritical & @CRLF $Output = $Output & "UpperThresholdFatal: " & $objItem.UpperThresholdFatal & @CRLF $Output = $Output & "UpperThresholdNonCritical: " & $objItem.UpperThresholdNonCritical & @CRLF if Msgbox(1,"WMI Output",$Output) = 2 then ExitLoop $Output="" Next Else Msgbox(0,"WMI Output","No WMI Objects Found for class: " & "Win32_TemperatureProbe" ) Endif Func WMIDateStringToDate($dtmDate) Return (StringMid($dtmDate, 5, 2) & "/" & _ StringMid($dtmDate, 7, 2) & "/" & StringLeft($dtmDate, 4) _ & " " & StringMid($dtmDate, 9, 2) & ":" & StringMid($dtmDate, 11, 2) & ":" & StringMid($dtmDate,13, 2)) EndFunc1 point -
Help with function and GUI
UE_morf_boon reacted to argumentum for a topic
#include <AutoItConstants.au3> #include <ButtonConstants.au3> #include <EditConstants.au3> #include <Misc.au3> #include <MsgBoxConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt('MouseCoordMode', 0) Opt("GUIOnEventMode", 1) $data = "" #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Form2", 405, 294, 334, 476) GUISetOnEvent($GUI_EVENT_CLOSE, "Form2Close") Global $var1 = False $Button1 = GUICtrlCreateButton("Button1", 24, 184, 73, 41) GUICtrlSetOnEvent(-1, "Button1Click") $BoxID = GUICtrlCreateEdit("", 48, 24, 321, 145) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func Button1Click() $var1 = Not $var1 GUICtrlSetData($BoxID, "click = " & $var1 & @CRLF, "1") If $var1 = False Then MsgBox(0, 'test', 'detected false') Else MsgBox(0, 'test', 'detected true') EndIf EndFunc ;==>Button1Click Func Form2Close() Exit EndFunc ;==>Form2Close anyway, this is my last post on this thread. Stay away from bot coding in this forum.0 points