In another forum, I was requesting way to create UserDefinedFunction in SQLite. I was hoping to find a way to create autoit functions and call them within SQLite part of SQL. With my limited knowledge, I was only able to get this functionality by using the "load_extension" in SQLite and calling functions written in C Language. This is how I did it: Due to SQLite security, this function is turn off so to activate, I had to modify the SQLite.au3 library. I added the following statement to the "_SQLite_Open" function ======================= Func _SQLite_Open($sDatabase_Filename = Default, $iAccessMode = Default, $iEncoding = Default) . . . . $aaa=dllcall($g_hDll_SQLite,"int:cdecl","sqlite3_enable_load_extension","ptr",SetExtended($avRval[0], $avRval[2]),"int",1) Return SetExtended($avRval[0], $avRval[2]) EndFunc ;==>_SQLite_Open ======================= Once this done, I downloaded an existing library that adds multiple functions from: http://www.sqlite.org/contrib : the file is called "extension-functions.c". after downloading "extension-functions.c", I compiled it using MinGW as explained in the file and create a library called "extension-functions.so". I have attached the modified SQLite.au3 library, the compiled SQLite library and also an example. IT would be nice for an expert with Autoit to see if a function written in C would allow to call autoit functions. One last favor, to the owner for the SQLite.au3 library... Please add the change above to the library so that I do not need to do it manually everytime is updated. References: http://www.sqlite.org/cvstrac/wiki?p=LoadableExtensions http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite http://www.sqlite.org/contrib Example.zip