SlimShady Posted July 16, 2004 Share Posted July 16, 2004 (edited) All my UDFs are in one file. Download the file below:http://www.autoitscript.com/fileman/users/SlimShady/MyUDFs.au3Here are all the UDFs I created.StringTrim($String, $start, $end, $StartOccur, $EndOccur)PercentFrom($percent, $value)TimeDiff($time, $min, $Dir)GlobalVarsRead($VarName, $Section = 'Other')GlobalVarsDelete($VarName = '', $Section = 'Other')GlobalVarsWrite($VarName, $VarValue = '', $Section = '', $File = '')ControlReadLine($window, $Text = '', $control = 1, $LineNum = 1)ControlAddLine($window, $Text, $control, $Line)ReplaceLine($File, $LineNum, $NewLine)ReadLine($File, $LineNum)SubString($String, $start, $end, $StartOccur, $EndOccur)FileReadAll($File)SaveFile($File, $Text)_FileLineDelete($fileName, $lineNum); $lineNum >= 1_FileLineInsert($fileName, $lineNum, $line, $end = @crlf); $lineNum >= 1CreateURLShortcut($File, $URL)ReadURLShortcut($File)CountSubs(ByRef $Text, $Subs, $Opt = 0)Txt2Arr($Str, $SepChar)ParseFilename($File)Assoc($Filename)CurrentMonth($num, $lang)CurrentTime()CurrentDay($num, $lang)ControlSendPlus($Title, $Text, $className, $String, $flag)GetLines($File, $SubString)ParseTag($Line, $Tag, $mode = 0)ArrName2Arr($mode, $var, $char, $Arr)FileOpenDialogEx($Title, $filter, $Opt, $Filename)GetDir($Filename)AddToArray($Arr, $value)ConvWeekDay($sOldWeekDay, $mode = 0)DelFromArray($Arr, $Loc)Alphabetize($array)Swap(ByRef $v1, ByRef $v2)MergeToArray(ByRef $Arr1, ByRef $Arr2)BinarySearch($Arr, $target)IsFolder($Path)FileReadToArray($File, ByRef $TmpVal)_Sleep($Delay)StringStripLF(ByRef $Str)FileCountLines($File)_INIWrite($gINIFile, $gINISection, $gINIKey, $gINIKeyValue)_INIRead($gINIFile, $gINISection, $gINIKey, $gINIKeyValue_default = "")_INIDelete($gINIFile, $gINISection, $gINIKey = "")_Calc($Expr, $Del = 0)_Execute($LineofCode, $Wait = True, $rUsername = "", $rDomain = "", $rPassword = "", $rOpts = 1)CalcTime($Action)GetFolder($sFilename)GetParent($sFilename)GetFilename($sFilename)ParseString($Cmd, $Del = 0)GetPath($Str)SynchroCopy($File1, $File2)NewFileCopy($File1, $File2)FileNewer($SourceFile, $DestFile)AutoItHandle()_DIR($Folder = "", $Opts = "")IsVisible($handle)_Debug($msg = '', $ShowWin = False, $Prefix = True)Pause()_GUICtrlCreateMyDummy()_GUICtrlSendToMyDummy($hWnd, $idDummy, $sData = "")_GUICtrlReadMyDummy($hWnd, $idDummy) Edited October 27, 2005 by SlimShady AOK 1 Link to comment Share on other sites More sharing options...
SlimShady Posted July 16, 2004 Author Share Posted July 16, 2004 - Added all functions to first post. Link to comment Share on other sites More sharing options...
magaf Posted July 17, 2004 Share Posted July 17, 2004 (edited) thx for sharing it, ive found a problem with FileDeleteLine - it wont delete the line if its the last line (any other line it will) edit: i saw whats the problem and i dont think deleting the last line is possible without using an array (or a temp file) which.. some1 thinks otherwise? Edited July 17, 2004 by magaf Link to comment Share on other sites More sharing options...
SlimShady Posted July 17, 2004 Author Share Posted July 17, 2004 No problem. Updated FileDeleteLine. - Added some checks so it deletes any line you want. Link to comment Share on other sites More sharing options...
tutor2000 Posted July 19, 2004 Share Posted July 19, 2004 No problem.Updated FileDeleteLine.- Added some checks so it deletes any line you want.Since someone brought up beta vs official release;What ver do I need to run your udf'sThanks by the wayRick Link to comment Share on other sites More sharing options...
SlimShady Posted July 19, 2004 Author Share Posted July 19, 2004 (edited) It depends on which function you want to use.See the descriptions in the file.If you see requirements: none you can use the current version.Else use the latest beta.Jon told us that v3.0.102 will be soon released officially. Edited July 19, 2004 by SlimShady Link to comment Share on other sites More sharing options...
SlimShady Posted October 27, 2005 Author Share Posted October 27, 2005 As requested by i110gic I *kick* this topic. I also uploaded my latest version. Link to comment Share on other sites More sharing options...
randallc Posted October 28, 2005 Share Posted October 28, 2005 Hi, These look to be good work to me! Are some of them already in the main "Official" UDF list? Would they benefit by checking if file opens for large files (100Mb etc) and having the option to use DOS processing in that case? [see a FileDeleteLine and findstrDos in my signature for instance]? Best, Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
busysignal Posted October 29, 2005 Share Posted October 29, 2005 - Added all functions to first post.@SlimShady, Wow! You ! Nice set of tools thanks for the post!Cheers.. Link to comment Share on other sites More sharing options...
AOK Posted January 23, 2020 Share Posted January 23, 2020 On 7/16/2004 at 6:26 PM, SlimShady said: All my UDFs are in one file. Download the file below: http://www.autoitscript.com/fileman/users/SlimShady/MyUDFs.au3 Now I know that sounds weird... but the link is dead. And my #include <ControlSendPlus.au3> ends with error: can’t open include file <ControlSendPlus.au3>. Checked a couple of topics none helped. The reason - because ControlSend every now and then makes the first 2 letters/symbols lines read from a file capital. And since I am sending them to a search box - it all becomes useless 😞 It's a name a.ant....=A>ant..... PLS assist. Thanks in advance, PS:The last time I used this was more than 10 years ago. I can't believe it's still the same and it works.... almost Link to comment Share on other sites More sharing options...
argumentum Posted January 23, 2020 Share Posted January 23, 2020 43 minutes ago, AOK said: Now I know that sounds weird... but the link is dead. 2020 - 2004 = 16 years AND not in the forums since 2011. Do look for the needed functionality in current UDFs. Nice looking avatar you've got Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
AOK Posted January 23, 2020 Share Posted January 23, 2020 With what do you suggest to change ControlSendPlus or how to send my ControlSend my FileReadLine accurately? The even weirder is that when I put MsgBox. It's always read correctly, but when ControlSending it - it gets the above described situation. And about those 16 years and missing author since 2011 - 2004 there's AutoIt v3 and the last minor update is like 2 years ago.... Here the time has stopped Link to comment Share on other sites More sharing options...
AOK Posted January 23, 2020 Share Posted January 23, 2020 Found it here. Here you everyone after me - looking for it 😉 ControlSendPlus.au3 argumentum 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now