Zedna Posted May 28, 2013 Posted May 28, 2013 (edited) I have got this simple function for reduction of more than 3 spaces to only two spaces ConsoleWrite(ReduceSpaces(' abc def 1 2 ')& @CRLF) ConsoleWrite(ReduceSpaces('a b c d e')& @CRLF) ConsoleWrite(ReduceSpaces('abc')& @CRLF) ConsoleWrite(ReduceSpaces('')& @CRLF) ; 3 and more spaces reduces to 2 spaces Func ReduceSpaces($s) Return StringRegExpReplace($s, "\x20{3,}", " ") EndFunc But I want also more general version of this function where as parameters will be number of spaces.Here is my function but it's not optimal and I hope it can be done by some more clever RegExp without FOR/NEXT loop. Please some RegExp guru help me increase my RegExp experiencies :-) ; N1 and more spaces reduces to N2 spaces Func ReduceSpaces($s, $n1=3, $n2=2) $space2 = '' For $i = 1 To $n2 $space2 &= ' ' Next Return StringRegExpReplace($s, "\x20{"&$n1&",}", $space2) EndFunc Edited May 28, 2013 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
kylomas Posted May 28, 2013 Posted May 28, 2013 (edited) Zedna, One possible way... #include <string.au3> $string = 'abc def 123 456 ' & @crlf & ' mmmm 12' ConsoleWrite(ReduceSpaces($string,3,2) & @LF) ; N1 and more spaces reduces to N2 spaces Func ReduceSpaces($s, $n1=3, $n2=2) local $spaces = _stringrepeat(' ',$n2) Return StringRegExpReplace($s, "\x20{"&$n1&",}", $spaces) EndFunc kylomas edit: hmmm...unintended consequence...it can also expand spaces to whatever you like... #include <string.au3> $string = 'abc def 123 456 ' & @crlf & ' mmmm 12' ConsoleWrite(ReduceSpaces($string,2,40) & @LF) ; N1 and more spaces reduces to N2 spaces Func ReduceSpaces($s, $n1=3, $n2=2) local $spaces = _stringrepeat(' ',$n2) Return StringRegExpReplace($s, "\x20{"&$n1&",}", $spaces) EndFunc Edited May 28, 2013 by kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
Moderators Solution Melba23 Posted May 28, 2013 Moderators Solution Posted May 28, 2013 (edited) Zedna,Try this one:ConsoleWrite("|" & ReduceSpaces(' abc def 1 2 ') & "|" & @CRLF) ConsoleWrite("|" & ReduceSpaces('a b c d e') & "|" & @CRLF) ConsoleWrite("|" & ReduceSpaces('abc') & "|" & @CRLF) ConsoleWrite("|" & ReduceSpaces('') & "|" & @CRLF) Func ReduceSpaces($sString, $iAccept = 4, $iReplace = 2) If $iReplace > $iAccept Then Return SetError(1, 0, "") EndIf Return StringRegExpReplace($sString, "(\x20{" & $iReplace & "})\x20{" & $iAccept - $iReplace + 1 & ",}", "$1") EndFuncWe look for the Replace number of spaces followed by enough spaces to take it over the Accept limit - if found we replace them all by the Replace number of spaces - which we captured when searching. Obviously you need to accept at least the same number as you expect to replace - hence the check. It works for me when I play around with the different values. M23 Edited May 28, 2013 by Melba23 Better explanation - I hope Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Zedna Posted May 28, 2013 Author Posted May 28, 2013 @kylomas_stringrepeat does the same FOR/NEXT loop internally as my original (not optimal) version@MelbaThanks!!Not tested yet but it looks very good.Nice view on problem from different angle :-) Resources UDF ResourcesEx UDF AutoIt Forum Search
Moderators Melba23 Posted May 28, 2013 Moderators Posted May 28, 2013 Zedna, Nice view on problem from different angleEdward de Bono was always one of my heroes. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
kylomas Posted May 28, 2013 Posted May 28, 2013 (edited) Zedna, @kylomas _stringrepeat does the same FOR/NEXT loop internally as my original (not optimal) version Yes, just thought I would offer it...should have known that you already considered it... Speedy recovery by the way! kylomas editL spelling Edited May 28, 2013 by kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
Zedna Posted May 28, 2013 Author Posted May 28, 2013 I did testing of Melba's solution and there was bug: Instead of $iAccept - $iReplace + 1 should be $iAccept - $iReplace I also changed behaviour at error state, when error occurs (bad parametres) then original (not empty) string returned. So here is final version ConsoleWrite("|" & ReduceSpaces(' abc def 1 2 3 ',5,2) & "|" & @CRLF) ConsoleWrite("|" & ReduceSpaces(' abc def 1 2 3 ',4,2) & "|" & @CRLF) ConsoleWrite("|" & ReduceSpaces(' abc def 1 2 3 ',3,2) & "|" & @CRLF) ConsoleWrite("|" & ReduceSpaces('a b c d e') & "|" & @CRLF) ConsoleWrite("|" & ReduceSpaces('abc') & "|" & @CRLF) ConsoleWrite("|" & ReduceSpaces('') & "|" & @CRLF) Func ReduceSpaces($sString, $iAccept = 3, $iReplace = 2) If $iReplace > $iAccept Then Return SetError(1, 0, $sString) Return StringRegExpReplace($sString, "(\x20{" & $iReplace & "})\x20{" & $iAccept - $iReplace & ",}", "$1") EndFunc Thanks Resources UDF ResourcesEx UDF AutoIt Forum Search
Moderators Melba23 Posted May 28, 2013 Moderators Posted May 28, 2013 Zedna,Sorry, I misunderstood the limit for change - I am glad you were able to fix it. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
guinness Posted May 29, 2013 Posted May 29, 2013 @kylomas _stringrepeat does the same FOR/NEXT loop internally as my original (not optimal) version Not in the AutoIt beta, this is a lot more optimisied. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
Zedna Posted May 29, 2013 Author Posted May 29, 2013 Not in the AutoIt beta, this is a lot more optimisied. Thanks for info I will look at it. I'm old school guy. I use 3.2.12.1 as my release a 3.3.7.23 as my latest beta. It's due to many script breaking changes and many my live big projects (the most compatible with 3.2.12.1 and few compatible with 3.3.7.x) where I would make changes and testing to follow these script breaking changes from newer release/beta versions. So I don't have installed newer release/beta on my computer, I look at changes in changelogs and and download only ZIP packages of newer release/beta to look at it. I would be happy to have possibility to install/use more AutoIt/Scite4AutoIt3 versions into different folders at the same time so I could compile all my older projects with older AutoIt and I could use latest release/beta for new projects. Unfortunatelly it's not possible as far as I know :-( If there is some trick how to do it, please share it with me, thanks. Resources UDF ResourcesEx UDF AutoIt Forum Search
guinness Posted May 29, 2013 Posted May 29, 2013 This is the beta version of _StringRepeat >> #2172 (the while loop is the most important and doesn't reflect the version in the beta.) What about using AutoItWrapper to change the AutoIt install path e.g. #AutoIt3Wrapper_Autoit3Dir= ;Optionally override the base AutoIt3 install directory. #AutoIt3Wrapper_Aut2exe= ;Optionally override the Aut2exe.exe to use for this script #AutoIt3Wrapper_AutoIt3= ;Optionally override the Autoit3.exe to use for this script Source: http://www.autoitscript.com/autoit3/scite/docs/directives.html UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
Zedna Posted May 29, 2013 Author Posted May 29, 2013 (edited) What about using AutoItWrapper to change the AutoIt install path e.g. #AutoIt3Wrapper_Autoit3Dir= ;Optionally override the base AutoIt3 install directory. #AutoIt3Wrapper_Aut2exe= ;Optionally override the Aut2exe.exe to use for this script #AutoIt3Wrapper_AutoIt3= ;Optionally override the Autoit3.exe to use for this script Source: http://www.autoitscript.com/autoit3/scite/docs/directives.html As far as I know there is problem with standard include files. If I manually copy new beta (from sfx or zip) to some nonstandard folder and use these directives, include folder is still not changed (?). Edited May 29, 2013 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
guinness Posted May 29, 2013 Posted May 29, 2013 I honestly don't know as I've always had a stable version and beta version. But it seems you want more than 2 installations of AutoIt. _StringRepeat: v3.3.9.5+ ; #FUNCTION# ==================================================================================================================== ; Name ..........: _StringRepeat ; Description ...: Repeats a string a specified number of times. ; Syntax.........: _StringRepeat ( $sString, $iRepeatCount ) ; Parameters ....: $sString - String to repeat ; $iRepeatCount - Number of times to repeat the string ; Return values .: Success - Returns string with specified number of repeats ; Failure - Returns an empty string and sets @error = 1 ; |@error - 0 = No error. ; |@error - 1 = One of the parameters is invalid ; Author ........: Jeremy Landes <jlandes at landeserve dot com> ; Modified.......: guinness - Removed Select...EndSelect statement and replaced with an If...EndIf as well as optimised the code. ; Remarks .......: ; Related .......: ; Link ..........: ; Example .......: Yes ; =============================================================================================================================== Func _StringRepeat($sString, $iRepeatCount) ; Casting Int() takes care of String/Int, Numbers. $iRepeatCount = Int($iRepeatCount) ; Zero is a valid repeat integer. If StringLen($sString) < 1 Or $iRepeatCount < 0 Then Return SetError(1, 0, "") Local $sResult = "" While $iRepeatCount > 1 If BitAND($iRepeatCount, 1) Then $sResult &= $sString $sString &= $sString $iRepeatCount = BitShift($iRepeatCount, 1) WEnd Return $sString & $sResult EndFunc ;==>_StringRepeat UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
Zedna Posted March 24, 2015 Author Posted March 24, 2015 (edited) On 5/29/2013 at 9:58 AM, Zedna said: I use 3.2.12.1 as my release a 3.3.7.23 as my latest beta. It's due to many script breaking changes and many my live big projects (the most compatible with 3.2.12.1 and few compatible with 3.3.7.x) where I would make changes and testing to follow these script breaking changes from newer release/beta versions. So I don't have installed newer release/beta on my computer, I would be happy to have possibility to install/use more AutoIt/Scite4AutoIt3 versions into different folders at the same time so I could compile all my older projects with older AutoIt and I could use latest release/beta for new projects. Unfortunatelly it's not possible as far as I know 😞 If there is some trick how to do it, please share it with me, thanks. Just for the reference: My solution is as follows: I unpacked latest release+beta+Scite4AutoIt3 from ZIP packages to different directory: "C:\Program Files\AutoIt3312" https://www.autoitscript.com/autoit3/files/archive/autoit/ In "C:\Program Files\AutoIt3" I have got installed my main 3.2.12.1+3.3.7.23+old scite4autoit3 AU3 scripts are opened/ran/compiled in my default 3.2.12.1 editor+autoit+compiler by default (when opened from file manager by Enter or doubleclick). When I need to open/run/compile AU3 in latest release/beta then I open it in new scite4autoit3 from Total Commander by Start menu: Quote title: AU3 3.3.12.0 command: C:\Program Files\AutoIt3312\SciTe\SciTE.exe param: %p%n dir: %p Edited July 9, 2020 by Zedna added striped backslashes in paths Resources UDF ResourcesEx UDF AutoIt Forum Search
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