AZJIO Posted January 10, 2013 Share Posted January 10, 2013 (edited) Download IniVirtual.7z (v0.6 20.07.2013)_IniVirtual_Delete_IniVirtual_Initial_IniVirtual_Read_IniVirtual_ReadSection_IniVirtual_ReadSectionNames_IniVirtual_RenameSection_IniVirtual_Write_IniVirtual_WriteSection_IniVirtual_Save_IniVirtual_IsDuplicateSections_IniVirtual_IsDuplicateKeysConverts the ini-file into an array and work with it in memory. Upon completion, you can save the file. There is no limitation section 32767 characters. If the beginning or end of the value is space, the value in quotes.For compatibility with version 3.3.10.2 (and 3.3.11.4), at the beginning of each regular expression add (*LF)Alternative:>IniVirtualSPE (AZJIO)>IniEx (DXRW4E)>IniString (ResNullius & MrCreatoR (G.Sandler))>discussion Edited April 16, 2014 by AZJIO FaridAgl and Norm73 1 1 My other projects or all Link to comment Share on other sites More sharing options...
guinness Posted January 10, 2013 Share Posted January 10, 2013 A nice idea. A couple of new functions which aren't in _IniString. 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 Link to comment Share on other sites More sharing options...
JohnOne Posted January 10, 2013 Share Posted January 10, 2013 I've used in the past. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
FaridAgl Posted January 10, 2013 Share Posted January 10, 2013 Hommm, sounds interesting, going to give a try. Thanks. http://faridaghili.ir Link to comment Share on other sites More sharing options...
AZJIO Posted January 10, 2013 Author Share Posted January 10, 2013 (edited) I know about _IniString, I even made a translation. But it does not work if the section names have characters that are in RegExp. If before the "=" there is a space, the parameter is not found. If the value has spaces on the left or the right, the quotes aren't added. If you frequently read and write data, it parses the file each time.Here's an example that works faster than _IniString_Read in 10 times.IniVirtualSPEUpdateAdded ignoring of the commented-out keys Edited January 11, 2013 by AZJIO My other projects or all Link to comment Share on other sites More sharing options...
AZJIO Posted January 13, 2013 Author Share Posted January 13, 2013 (edited) I tried to do on nested "Scripting.Dictionary". But not working. expandcollapse popup#include <Array.au3> $o_Mem_Ini = _IniVirtual_Initial(FileRead(@ScriptDir & "\Test.ini")) $sKey = _IniVirtual_Read($o_Mem_Ini, "boot loader", "timeout", "NotFound") MsgBox(4096, 'Результат', $sKey) Func _IniVirtual_Initial($sText) Local $oTmp $sText = StringRegExpReplace($sText, '(?s)\h*(\r\n)\h*', '\1') ; Удаление пробельных символов в начале и в конце каждой строки. (упрощает слудующее рег.выр. и в параметрах лишнее) Local $aSection = StringRegExp($sText, '(?s)(?:\r\n|\A)\[\h*(.*?)\h*\]\r\n(.*?)(?=\r\n\[\h*.*?\h*\]\r\n|\z)', 3) Local $oMainINI= ObjCreate('Scripting.Dictionary') $oMainINI.CompareMode = 0 For $i = 0 To UBound($aSection) - 1 Step 2 If Not $oMainINI.Exists($aSection[$i]) Then $oTmp = ObjCreate('Scripting.Dictionary') ; используем временную переменную для удобства использования в цикле $oTmp.CompareMode = 0 $aKeyVal = StringRegExp($aSection[$i], '(?m)^(.+?)\h*=\h*(["'']?)(.*?)\2\r?$', 3) ; учитывает пробелы между элементами и обрамление кавычками ; Заполняем вложенные объект For $j = 0 To UBound($aKeyVal) - 1 Step 3 If Not $oTmp.Exists($aKeyVal[$j]) Then ; если не существует ключ объекта, тогда $oTmp.Add($aKeyVal[$j], $aKeyVal[$j + 2]) ; добавляем ключ объекта EndIf Next $oMainINI.Add($aSection[$i], $oTmp) ; Добавляем объект как значение, где ключ является имя секции EndIf Next Return $oMainINI EndFunc ;==>_IniVirtual_Initial Func _IniVirtual_Read($oMainINI, $sSection, $sKey, $sDefault = '') If $oMainINI.Exists($sSection) Then ; если существует ключ $sSection в объекте, тогда $oValue = $oMainINI.Item($sSection) ; читаем значение ключа $sSection, которое является вложенным обектом Else ; иначе Return $sDefault ;значение по умолчанию EndIf ; MsgBox(0, 'Сообщение', VarGetType($oValue)) $Array = $oValue.Keys() ; тест - извлекаем все ключи из объекта $oValue MsgBox(0, 'Сообщение', UBound($Array)) _ArrayDisplay($Array, 'Array') If $oValue.Exists($sKey) Then Return $oValue.Item($sKey) ; читает значение Else Return $sDefault EndIf EndFunc ;==>_IniVirtual_Read Func _IniVirtual_ReadSectionNames($oMainINI) ; извлечение корневых ключей без проблем $aSection = $oMainINI.Keys() Return $aSection EndFunc Have tried a combination of array and "Scripting. Dictionary" but creating a longer time than "_IniVirtual_Initial" expandcollapse popup#include <Array.au3> $sIniFileText = FileRead(@ScriptDir & "\Sample.ini") $timer = TimerInit() $a_Mem_Ini = _IniVirtualSD_Initial($sIniFileText) $timer = Round(TimerDiff($timer), 2) & ' ms' MsgBox(0, "Initialization time", $timer) ; $timer = TimerInit() ; $Res = _IniVirtualSD_Read($a_Mem_Ini, 'Section2', 'Key1', 'тест') ; $timer = Round(TimerDiff($timer), 2) & ' ms' ; MsgBox(0, "time " & $timer, $Res) ; $timer = TimerInit() ; $Res = _IniVirtualSD_ReadSection($a_Mem_Ini, 'Section2') ; $timer = Round(TimerDiff($timer), 2) & ' ms' ; _ArrayDisplay($Res, "time " & $timer) Func _IniVirtualSD_Initial($s_INI_Text) Local $aSection, $d, $u $s_INI_Text = StringRegExpReplace($s_INI_Text, '\h+\r\n\h*|\r\n\h+|\s+\z', @CRLF) $s_INI_Text = StringRegExpReplace($s_INI_Text, '\](?=\r\n\[|\z)', ']' & @CRLF) $aSection = StringRegExp($s_INI_Text, '(?s)(?:\r\n|\A)\[\h*(.*?)\h*\]\r\n(.*?)(?=\r\n\[|\z)', 3) $u = UBound($aSection) Local $a_Ini_Virtual2D[$u / 2 + 1][2] = [[$u / 2]] For $i = 0 To $u - 1 Step 2 $d = Int($i / 2) + 1 $a_Ini_Virtual2D[$d][0] = $aSection[$i] $a_Ini_Virtual2D[$d][1] = __IniVirtualSD_GetKeysVal($aSection[$i + 1]) Next Return $a_Ini_Virtual2D EndFunc ;==>_IniVirtualSD_Initial Func __IniVirtualSD_GetKeysVal($vData) $vData = StringRegExp($vData, '(?m)^([^;].*?)\h*=\h*(["'']?)(.*?)\2\r?$', 3) Local $d, $u = UBound($vData) Local $oDict = ObjCreate('Scripting.Dictionary') $oDict.CompareMode = 0 For $i = 0 To $u - 1 Step 3 If Not $oDict.Exists($vData[$i]) Then ; $oDict.Item($vData[$i]) = $vData[$i + 2] $oDict.Add($vData[$i], $vData[$i + 2]) EndIf Next Return $oDict EndFunc ;==>__IniVirtualSD_GetKeysVal Func _IniVirtualSD_Read($a_Ini_Virtual2D, $sSection, $sKey, $sDefault = '') Local $i = _ArraySearch($a_Ini_Virtual2D, $sSection, 1, 0, 0, 0, 1, 0) If @error Then Return $sDefault If $a_Ini_Virtual2D[$i][1].Exists($sKey) Then Return $a_Ini_Virtual2D[$i][1] .Item($sKey) Else Return $sDefault EndIf EndFunc ;==>_IniVirtualSD_Read Func _IniVirtualSD_ReadSection($a_Ini_Virtual2D, $sSection) Local $i = _ArraySearch($a_Ini_Virtual2D, $sSection, 1, 0, 0, 0, 1, 0) If @error Then Return SetError(1, 0, 0) Local $aKey = $a_Ini_Virtual2D[$i][1] .Keys() Return $aKey EndFunc ;==>_IniVirtualSD_ReadSection Edited January 13, 2013 by AZJIO My other projects or all Link to comment Share on other sites More sharing options...
michaelslamet Posted July 20, 2013 Share Posted July 20, 2013 AZJIO, Thank you for this great script. I tried it: $sRes = _IniVirtualSPE_Read($s_ini_Text, "Section1", "Key1", "") and $sRes = _IniVirtualSPE_Read($s_ini_Text, "section1", "key1", "") Bring different result. Section1 versus section1 Key1 versus key1 How to make it not casesensitive? Link to comment Share on other sites More sharing options...
guinness Posted July 20, 2013 Share Posted July 20, 2013 (edited) Change CompareMode to 1. Edited July 20, 2013 by guinness 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 Link to comment Share on other sites More sharing options...
michaelslamet Posted July 20, 2013 Share Posted July 20, 2013 Change CompareMode to 1. Where to change this? I read the IniVirtualSPE.au3 and found nothing about CompareMode Link to comment Share on other sites More sharing options...
guinness Posted July 20, 2013 Share Posted July 20, 2013 I only looked at #6 as I couldn't download the ZIP. 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 Link to comment Share on other sites More sharing options...
michaelslamet Posted July 20, 2013 Share Posted July 20, 2013 I only looked at #6 as I couldn't download the ZIP. #6 post is quite different with the one on 7z final file, maybe #6 is use for experiment. This is the code: Func _IniVirtualSPE_Read($s_INI_Text, $sSection, $sKey, $sDefault = '') $sSection = StringRegExpReplace($sSection, '[][{}()*+?.\\^$|=<>#]', '\\$0') Local $aSection = StringRegExp($s_INI_Text, '(?s)(?:\r\n|\A)\h*\[\h*' & $sSection & '\h*\]\h*\r\n\s*([^\[\s].*?)(?=\r\n\h*\[|\s*\z)', 1) ; èçâëå÷åíèå êîíòåíòà ñåêöèè If @error Then Return $sDefault $aSection = StringRegExp($aSection[0], '(?m)^\h*' & StringRegExpReplace($sKey, '[][{}()*+?.\\^$|=<>#]', '\\$0') & '\h*=\h*(.*?)\h*\r?$', 1) ; èçâëå÷åíèå ïàðàìåòðà If @error Then Return $sDefault Switch StringLeft($aSection[0], 1) & StringRight($aSection[0], 1) ; åñëè ïàðàìåòðû â êàâû÷êàõ, òî óäàëåíèå êàâû÷åê " è ' Case '""', "''" $aSection[0] = StringTrimLeft(StringTrimRight($aSection[0], 1), 1) EndSwitch Return $aSection[0] EndFunc ;==>_IniVirtualSPE_Read At first I'm looking for some switch in the parameter, but seems it's not provided Link to comment Share on other sites More sharing options...
guinness Posted July 20, 2013 Share Posted July 20, 2013 Change (?s) to (?is) and (?m) to (?im) for now. 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 Link to comment Share on other sites More sharing options...
michaelslamet Posted July 20, 2013 Share Posted July 20, 2013 Change (?s) to (?is) and (?m) to (?im) for now. Wow, you're fast! And it works great!! Thanks alot, guinness Link to comment Share on other sites More sharing options...
guinness Posted July 20, 2013 Share Posted July 20, 2013 ?i basically means...well look in the help file under StringRegExp. I don't know why AZJIO made these functions case-sensitive? 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 Link to comment Share on other sites More sharing options...
michaelslamet Posted July 20, 2013 Share Posted July 20, 2013 ?i basically means...well look in the help file under StringRegExp. I don't know why AZJIO made these functions case-sensitive? ?i mean ignore string case in SRE, yes I read about it Thanks for pointing it. As far as I remember, the standard IniRead function is not case sensitive Link to comment Share on other sites More sharing options...
AZJIO Posted July 20, 2013 Author Share Posted July 20, 2013 I have not had a case of this error. Will be updated later. My other projects or all Link to comment Share on other sites More sharing options...
guinness Posted July 20, 2013 Share Posted July 20, 2013 As far as I remember, the standard IniRead function is not case sensitiveThey're not. But AZJIO appears to be on the case.You're lucky that I'm in regular expression mode today -_0! 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 Link to comment Share on other sites More sharing options...
michaelslamet Posted July 20, 2013 Share Posted July 20, 2013 They're not. But AZJIO appears to be on the case. You're lucky that I'm in regular expression mode today -_0! Link to comment Share on other sites More sharing options...
michaelslamet Posted July 20, 2013 Share Posted July 20, 2013 I have not had a case of this error. Will be updated later. Thanks I use your _File_Operation intensively and I think I need to use your iniVirtualSPE intensively too. Thanks for providing these great scripts! Link to comment Share on other sites More sharing options...
AZJIO Posted July 20, 2013 Author Share Posted July 20, 2013 Update My other projects or all 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