/?do=embed#entry1102929'' frameborder='0' data-embedContent>>
I would like to present AU3 Tools - Quick Updater :
Global $URL_Scite = 'http://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/' _INET_DownloadIfNotEqual("AutoIt3Wrapper.exe") _INET_DownloadIfNotEqual("Obfuscator.exe") _INET_DownloadIfNotEqual("SciTE.exe") _INET_DownloadIfNotEqual("SciteConfig.exe") _INET_DownloadIfNotEqual("Tidy.exe") _INET_DownloadIfNotEqual("SciLexer.dll") Func _INET_DownloadIfNotEqual($fFileToDownlad) Local $fLocalDestination If _INET_CompareSize_IsEqual($fFileToDownlad) = False Then $fLocalDestination = _INET_GetUpdate($fFileToDownlad) FileMove($fLocalDestination, @ScriptDir & '\' & $fFileToDownlad, 1) EndIf EndFunc ;==>_INET_DownloadIfNotEqual Func _INET_CompareSize_IsEqual($fFileToDownlad) Local $nWebSize = InetGetSize($URL_Scite & $fFileToDownlad) Local $nLocalSize = FileGetSize(@ScriptDir & '\' & $fFileToDownlad) If $nWebSize = $nLocalSize Then Return True Else Return False EndIf EndFunc ;==>_INET_CompareSize_IsEqual Func _INET_GetUpdate($fFileToDownlad) Local $fLocalDestination = @TempDir & "\" & $fFileToDownlad Local $hDownload = InetGet($URL_Scite & $fFileToDownlad, $fLocalDestination, 1, 1) Do Sleep(250) Until InetGetInfo($hDownload, 2) ; Check if the download is complete. Local $nBytes = InetGetInfo($hDownload, 0) InetClose($hDownload) ; Close the handle to release resources. Return $fLocalDestination EndFunc ;==>_INET_GetUpdate HOW TO USE:
Simply compile and run waiting to download current updates tools
If You want to replace file in SciTE4AutoIt dir then run it script from directory where SciTE4AutoIt is instaled
This is a really fast set up, update tool contains no error checking requires no configuration requires that the target downloaded files were not used by other Windows processes EDIT: CAUTION: EDIT: WORD JOKE : as they say on the commercial "before use, read the label or contact your doctor or pharmacist"
Right now, I am working on a script that requires me to destroy the SciLexer control in my GUI. Unfortunately, the UDF doesnt seem to have a destory function, and it doesnt even mention how to destroy it. I know that on the page, people mention hiding it, but they didnt say how, and there isnt a function to do this either.
Does anbody know how to hide, or preferably, destroy the SciLexer control?
SciLexer UDF Topic
After taking a look at the Scintilla documentation, I have found that there is an ILexer object which can be used to "release", or destroy the lexer, but I dont know anything about objects, and I know that autoiIt is not object oriented. I also dont know whether this can be done with a DLL call (I dont know much about using DLL calls either, but I assume they call a specified function inside a DLL?).
Anway, I will not be able to write the code myself (Assuming it doesnt exist) without help, but does anybody have an idea how releasing the control may be acieved?
Solution thanks to Kip (The person who originally wrote the UDF) via inbox. Thanks Kip.