Big ini read, found data problem

08/11/2015 19:16 mlukac89#1
Hi i have big ini and i have problem with searching data in it.

My script is need to:
open ini
search items i write in search field
put in list items that it founded
when i click on item it need to show up in edit field

But mine main problem is that i can't get all items in my list like here [Only registered and activated users can see links. Click Here To Register...], because ini have multiple items with same name like, Blode ring, Blode ring, Blode ring, Briliant blode ring, Inteligent blode ring, Glorious blode ring so i need to get them all on my listbox so i can choose what to edit.

I tried to convert it to .txt and .ini but didn't end up with any positive results.

here is ini file [Only registered and activated users can see links. Click Here To Register...]

Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <File.au3>
#include <Array.au3>

#Region ### START Koda GUI section ###
$hGUI = GUICreate("Form1", 684, 364, 607, 439)
GUICtrlCreateGroup(" Search ", 8, 16, 342, 297)
GUICtrlCreateLabel("Search for text", 22, 40, 73, 17)
$hSearchInput = GUICtrlCreateInput("", 23, 60, 185, 21)
$hFinddAllButton = GUICtrlCreateButton("Find All", 222, 58, 75, 25)
GUICtrlCreateLabel("Found Items ( click to edit )", 22, 102, 131, 17)
$hList = GUICtrlCreateList("", 22, 120, 313, 175)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup(" Edit Item", 355, 16, 321, 137)
GUICtrlCreateLabel("Name", 372, 40, 32, 17)
$hNameInput = GUICtrlCreateInput("", 371, 60, 289, 21)
$hSaveButton = GUICtrlCreateButton("Save", 587, 112, 75, 25)
 GUICtrlCreateLabel("Item ID", 372, 95, 38, 17)
$hItemID = GUICtrlCreateInput("", 369, 112, 57, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER,$ES_READONLY))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$hOpenIniButton = GUICtrlCreateButton("Open INI for Edit", 8, 328, 105, 25)
$hWriteIniButton = GUICtrlCreateButton("Write Modified INI", 123, 328, 105, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Global $file, $sFile

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $hOpenIniButton
            _FileOpen()
        Case $hFinddAllButton
            $sRead = GUICtrlRead($hSearchInput) ; input field for search
            $oFile = FileReadToArray($file)
            For $i = 0 To UBound($oFile) - 1 ; Loop through the array.
                GUICtrlSetData($hList, "Results = " & $oFile[$i] & @CRLF) ; Display the contents of the array.
            Next

    EndSwitch
WEnd

; open file
Func _FileOpen()

    Global $file = FileOpenDialog("Open INI for edit", "", "INI file (*.txt)")

    If FileExists($file) Then

        $sFile = FileOpen($file)

        If @error Then
            MsgBox(48, "Error", "Error = " & @error & ", Extended = " & @extended)
        Else
            GUICtrlSetState($hOpenIniButton, $GUI_DISABLE)
        EndIf
    Else
        MsgBox(48, "Error", "Error = " & @error & ", Extended = " & @extended)
    EndIf

EndFunc
And if u ask me why i dont use ini read or ini read section names its because of this, this is all section numbers

Code:
Local $realmcf1[40] = [5991, 5993, 5994, 5995, 6130, 6400, 6499, 6500, 6640, 6642, 6643, 6644, 6650, 6652, 6653, 6654, 6660, 6662, 6663, 6664, 6670, 6672, 6673, 6674, 6680, 6682, 6683, 6684, 6690, 6692, 6693, 6694, 6700, 6701, 6702, 6703, 8613, 8615, 8616, 8617]
Local $realmcf2[40] = [5996, 5998, 5999, 6000, 6635, 6637, 6638, 6639, 6645, 6647, 6648, 6649, 6655, 6657, 6658, 6659, 6665, 6667, 6668, 6669, 6675, 6677, 6678, 6679, 6685, 6687, 6688, 6689, 6695, 6697, 6698, 6699, 6704, 6705, 6706, 6707, 8618, 8620, 8621, 8622]
Local $realmel1[170] = [3917, 3919, 3920, 3921, 3922, 3923, 3925, 3926, 3927, 3928, 3929, 3931, 3932, 3933, 3934, 3951, 3953, 3954, 3955, 3956, 3957, 3959, 3960, 3961, 3962, 3963, 3965, 3966, 3967, 3968, 3981, 3983, 3984, 3985, 3986, 3987, 3989, 3990, 3991, 3992, 3993, 3995, 3996, 3997, 3998, 4099, 4405, 4406, 4407, 4408, 4410, 4411, 4412, 4413, 4415, 4416, 4417, 4428, 4429, 4430, 4433, 4435, 4436, 4437, 4440, 4441, 4442, 4443, 4445, 4446, 4447, 4458, 4459, 4460, 4462, 4464, 4465, 4466, 4467, 4469, 4470, 4471, 4472, 4474, 4475, 4476, 4487, 4488, 4489, 4492, 4494, 4495, 4496, 4497, 4499, 4500, 4501, 4502, 4504, 4505, 4506, 4517, 4518, 4519, 4522, 4524, 4525, 4526, 4527, 4529, 4530, 4531, 4532, 4534, 4535, 4536, 4547, 4548, 4549, 4775, 5739, 5740, 5741, 5742, 5743, 5744, 5745, 5746, 5747, 5748, 5749, 5750, 5755, 5756, 5757, 8623, 8625, 8626, 8627, 8628, 8629, 8631, 8632, 8633, 8634, 8635, 8637, 8638, 8639, 8640, 8685, 8686, 8687, 8688, 8689, 8690, 8691, 8692, 8693, 8694, 8695, 8696, 8697, 8698, 8699, 8700, 8701, 8702, 8703, 8704]
Local $realmel2[150] = [20900, 20901, 20902, 20903, 20904, 20905, 20906, 20907, 20908, 20909, 20910, 20911, 20912, 20913, 20914, 20915, 20916, 20917, 20918, 20919, 20920, 20921, 20922, 20923, 20924, 20925, 20926, 20927, 20928, 20929, 20930, 20931, 20932, 20933, 20934, 20935, 20936, 20937, 20938, 20939, 20940, 20941, 20942, 20943, 20944, 20945, 20946, 20947, 20948, 20949, 20950, 20951, 20952, 20953, 20954, 20955, 20956, 20957, 20958, 20959, 20960, 20961, 20962, 20963, 20964, 20965, 20966, 20967, 20968, 20969, 20970, 20971, 20972, 20973, 20974, 20975, 20976, 20977, 20978, 20979, 20980, 20981, 20982, 20983, 20984, 20985, 20986, 20987, 20988, 20989, 20990, 20991, 20992, 20993, 20994, 20995, 20996, 20997, 20998, 20999, 21010, 21011, 21012, 21013, 21014, 21015, 21016, 21017, 21018, 21019, 21020, 21021, 21022, 21023, 21024, 21025, 21026, 21027, 21028, 21029, 21030, 21031, 21032, 21033, 21034, 21035, 21036, 21037, 21038, 21039, 21040, 21041, 21042, 21043, 21044, 21045, 21046, 21047, 21048, 21049, 21050, 21051, 21052, 21053, 21054, 21055, 21056, 21057, 21058, 21059]
Local $uaccs[34] = [5006, 5020, 5010, 20349, 5019, 20351, 20346, 5008, 5014, 5021, 5011, 20347, 5018, 5016, 5017, 5012, 5026, 5024, 5027, 5028, 20348, 5013, 5009, 5015, 20342, 5005, 20343, 20345, 5023, 5007, 20341, 20350, 20344, 5022]
Local $chests[4] = [4750, 4751, 3616, 3617]
Local $jewels[9] = [7524, 7522, 7516, 7518, 7519, 7520, 7521, 7523, 7517]
Local $pots[26] = [6275, 3498, 6273, 4774, 1127, 233, 235, 7394, 10260, 4773, 1126, 232, 234, 7393, 10000, 4772, 1125, 190, 193, 7392, 9999, 6224, 1050, 1049, 1053, 1052]
Local $nonelite1[618] = [324, 327, 328, 329, 70, 73, 74, 75, 76, 79, 80, 81, 337, 336, 339, 340, 341, 565, 8033, 8050, 8052, 8053, 8054, 8056, 8058, 8060, 8061, 8062, 8057, 8063, 8065, 8066, 8067, 8073, 8068, 8055, 8042, 8034, 8035, 8037, 7929, 7931, 7932, 7933, 8049, 8044, 8046, 8047, 8048, 8043, 8038, 8040, 8041, 8070, 8071, 8072, 9245, 9246, 9253, 9247, 9249, 9250, 9251, 8997, 8993, 8994, 8995, 8996, 9312, 9307, 9309, 9310, 9244, 9242, 8074, 8076, 8078, 8079, 8080, 8075, 8081, 8083, 8084, 8085, 9228, 9223, 9225, 9226, 9227, 9252, 9311, 8031, 7829, 7990, 7909, 7911, 7912, 7913, 7991, 7993, 7994, 7995, 7996, 7998, 7999, 8000, 8086, 7914, 7916, 7989, 7988, 7831, 7832, 7833, 7974, 7976, 7977, 7978, 7904, 7906, 7907, 7908, 7979, 7981, 7983, 7985, 7986, 7917, 7918, 8087, 8018, 8013, 8019, 8021, 8022, 8023, 8024, 7924, 7926, 7927, 7928, 8030, 8025, 8027, 8028, 8029, 8017, 8016, 8001, 8003, 8004, 8005, 8088, 8006, 8008, 8009, 8010, 8011, 7919, 7921, 7922, 7923, 8012, 8014, 8036, 564, 567, 568, 569, 1129, 1128, 1131, 1132, 1133, 2004, 1999, 2001, 2002, 2003, 2010, 2005, 2007, 2008, 2009, 3061, 3060, 3062, 3063, 3064, 5101, 5102, 5103, 5104, 5105, 342, 345, 346, 347, 348, 351, 352, 353, 52, 55, 56, 57, 355, 354, 357, 358, 359, 571, 570, 573, 574, 575, 1135, 1134, 1137, 1138, 1139, 2011, 2013, 2015, 2016, 2017, 2012, 2018, 2020, 2021, 2022, 3086, 3085, 3087, 3088, 3089, 5116, 5117, 5118, 5119, 5120, 666, 669, 670, 671, 672, 675, 676, 677, 94, 97, 98, 99, 679, 678, 681, 682, 683, 685, 684, 687, 688, 689, 1141, 1140, 1143, 1144, 1145, 2023, 2025, 2027, 2028, 2029, 2024, 2030, 2032, 2033, 2034, 3111, 3110, 3112, 3113, 3114, 5131, 5132, 5133, 5134, 5135, 172, 175, 176, 177, 178, 181, 182, 183, 184, 187, 188, 189, 373, 372, 375, 376, 377, 577, 576, 579, 580, 581, 1147, 1146, 1149, 1150, 1151, 2035, 2037, 2039, 2040, 2041, 2036, 2042, 2044, 2045, 2046, 3136, 3135, 3137, 3138, 3139, 5146, 5147, 5148, 5149, 5150, 690, 693, 694, 695, 696, 699, 700, 701, 130, 133, 134, 135, 703, 702, 705, 706, 707, 709, 708, 711, 712, 713, 1153, 1152, 1155, 1156, 1157, 2047, 2049, 2051, 2052, 2053, 2048, 2054, 2056, 2057, 2058, 3161, 3160, 3162, 3163, 3164, 5161, 5162, 5163, 5164, 5165, 384, 387, 388, 389, 378, 381, 382, 383, 166, 169, 170, 171, 391, 390, 393, 394, 395, 583, 582, 585, 586, 587, 1159, 1158, 1161, 1162, 1163, 2059, 2061, 2063, 2064, 2065, 2060, 2066, 2068, 2069, 2070, 3186, 3185, 3187, 3188, 3189, 5176, 5177, 5178, 5179, 5180, 5029, 5030, 5031, 5032, 5070, 5071, 5072, 5073, 5082, 5083, 5084, 5085, 5372, 5094, 5095, 5096, 5097, 5375, 5299, 5300, 5301, 5302, 5378, 5311, 5312, 5313, 5314, 5381, 5323, 5324, 5325, 5326, 5384, 5335, 5336, 5337, 5338, 5387, 5347, 5348, 5349, 5350, 5390, 5359, 5360, 5361, 5362, 2843, 2845, 2846, 2847, 2908, 2910, 2911, 2912, 2923, 2925, 2926, 2927, 2959, 2938, 2940, 2941, 2942, 2965, 2953, 2955, 2956, 2957, 3629, 3624, 3626, 3627, 3628, 3647, 3642, 3644, 3645, 3646, 3665, 3660, 3662, 3663, 3664, 3864, 3859, 3861, 3862, 3863, 5191, 5192, 5194, 5193, 5195, 2838, 2840, 2841, 2842, 2853, 2855, 2856, 2857, 2868, 2870, 2871, 2872, 2958, 2883, 2885, 2886, 2887, 2962, 2898, 2900, 2901, 2902, 3683, 3678, 3680, 3681, 3682, 3701, 3696, 3698, 3699, 3700, 3719, 3714, 3716, 3717, 3718, 3882, 3877, 3879, 3880, 3881, 5206, 5207, 5209, 5208, 5210, 64, 67, 68, 69, 330, 333, 334, 335, 2085, 2087, 2088, 2089, 2251, 2252, 2254, 2255, 2256, 2257, 2258, 2260, 2261, 2262, 2263, 2264, 2266, 2267, 2268, 2269, 2270, 2272, 2273, 2274, 3051, 3050, 3052, 3053, 3054, 3066, 3065, 3067, 3068, 3069, 5106, 5107, 5108, 5109, 5110, 46]
Local $nonelite2[618] = [49, 50, 51, 58, 61, 62, 63, 2090, 2092, 2093, 2094, 2299, 2300, 2302, 2303, 2304, 2305, 2306, 2308, 2309, 2310, 2311, 2312, 2314, 2315, 2316, 2317, 2318, 2320, 2321, 2322, 3076, 3075, 3077, 3078, 3079, 3091, 3090, 3092, 3093, 3094, 5121, 5122, 5123, 5124, 5125, 82, 85, 86, 87, 88, 91, 92, 93, 2095, 2098, 2099, 2100, 2347, 2348, 2350, 2351, 2352, 2353, 2354, 2356, 2357, 2358, 2359, 2360, 2362, 2363, 2364, 2365, 2366, 2368, 2369, 2370, 3101, 3100, 3102, 3103, 3104, 3116, 3115, 3117, 3118, 3119, 5136, 5137, 5138, 5139, 5140, 366, 369, 370, 371, 360, 363, 364, 365, 2101, 2103, 2104, 2105, 2395, 2396, 2398, 2399, 2400, 2401, 2402, 2404, 2405, 2406, 2407, 2408, 2410, 2411, 2412, 2413, 2414, 2416, 2417, 2418, 3126, 3125, 3127, 3128, 3129, 3141, 3140, 3142, 3143, 3144, 5151, 5152, 5153, 5154, 5155, 118, 121, 122, 123, 124, 127, 128, 129, 2106, 2108, 2109, 2110, 2443, 2444, 2446, 2447, 2448, 2449, 2450, 2452, 2453, 2454, 2455, 2456, 2458, 2459, 2460, 2461, 2462, 2464, 2465, 2466, 3151, 3150, 3152, 3153, 3154, 3166, 3165, 3167, 3168, 3169, 5166, 5167, 5168, 5169, 5170, 154, 157, 158, 159, 160, 163, 164, 165, 2111, 2113, 2114, 2115, 2492, 2491, 2494, 2495, 2496, 2498, 2497, 2500, 2501, 2502, 2504, 2503, 2506, 2507, 2508, 2510, 2509, 2512, 2513, 2514, 3176, 3175, 3177, 3178, 3179, 3191, 3190, 3192, 3193, 3194, 5181, 5182, 5183, 5184, 5185, 5066, 5067, 5068, 5069, 5074, 5075, 5076, 5077, 5086, 5087, 5088, 5089, 5373, 5098, 5099, 5100, 5294, 5376, 5303, 5304, 5305, 5306, 5379, 5315, 5316, 5317, 5318, 5382, 5327, 5328, 5329, 5330, 5385, 5339, 5340, 5341, 5342, 5388, 5351, 5352, 5353, 5354, 5391, 5363, 5364, 5365, 5366, 2903, 2905, 2906, 2907, 2913, 2915, 2916, 2917, 2928, 2930, 2931, 2932, 2963, 2943, 2945, 2946, 2947, 2971, 2966, 2968, 2969, 2970, 3635, 3630, 3632, 3633, 3634, 3653, 3648, 3650, 3651, 3652, 3676, 3666, 3668, 3669, 3670, 3870, 3865, 3867, 3868, 3869, 5196, 5197, 5199, 5198, 5200, 2848, 2850, 2851, 2852, 2858, 2860, 2861, 2862, 2873, 2875, 2876, 2877, 2960, 2888, 2890, 2891, 2892, 2983, 2978, 2980, 2981, 2982, 3689, 3684, 3686, 3687, 3688, 3707, 3702, 3704, 3705, 3706, 3725, 3720, 3722, 3723, 3724, 3888, 3883, 3885, 3886, 3887, 5211, 5212, 5214, 5213, 5215, 2145, 2147, 2148, 2149, 2151, 2153, 2154, 2155, 2227, 2228, 2230, 2231, 2232, 2238, 2233, 2235, 2236, 2237, 2239, 2240, 2242, 2243, 2244, 2245, 2246, 2248, 2249, 2250, 3056, 3055, 3057, 3058, 3059, 3071, 3070, 3072, 3073, 3074, 5111, 5112, 5113, 5114, 5115, 5501, 5502, 5503, 5504, 5505, 7875, 7870, 7872, 7873, 7874, 2157, 2159, 2160, 2161, 2163, 2164, 2166, 2167, 2275, 2276, 2278, 2279, 2280, 2281, 2282, 2284, 2285, 2286, 2287, 2288, 2290, 2291, 2292, 2293, 2294, 2296, 2297, 2298, 3081, 3080, 3082, 3083, 3084, 3096, 3095, 3097, 3098, 3099, 5126, 5127, 5128, 5129, 5130, 5506, 5507, 5508, 5509, 5510, 7845, 7840, 7842, 7843, 7844, 2169, 2171, 2172, 2173, 2175, 2177, 2178, 2179, 2323, 2324, 2326, 2327, 2328, 2329, 2330, 2332, 2333, 2334, 2335, 2336, 2338, 2339, 2340, 2341, 2342, 2344, 2345, 2346, 3106, 3105, 3107, 3108, 3109, 3121, 3120, 3122, 3123, 3124, 5141, 5142, 5143, 5144, 5145, 5511, 5512, 5513, 5514, 5515, 7851, 7846, 7848, 7849, 7850, 2205, 2207, 2208, 2209, 2211, 2213, 2214, 2215, 2371, 2372, 2374, 2375, 2376, 2382, 2377, 2379, 2380, 2381, 2383, 2384, 2386, 2387, 2388, 2389, 2390, 2392, 2393, 2394, 3131, 3130, 3132, 3133, 3134, 3146, 3145, 3147, 3148, 3149, 5156, 5157, 5158, 5159, 5160, 5516, 5517, 5518, 5519, 5520, 6956, 6951, 6953, 6954, 6955, 2181, 2183, 2184, 2185, 2187, 2189, 2190, 2191, 2419, 2420, 2422, 2423, 2424, 2425, 2426, 2428, 2429, 2430, 2431, 2432, 2434, 2435, 2436, 2437, 2438, 2440, 2441, 2442, 3156, 3155, 3157]
Local $nonelite3[619] = [3158, 3159, 3171, 3170, 3172, 3173, 3174, 5171, 5172, 5173, 5174, 5175, 5521, 5522, 5523, 5524, 5525, 7857, 7852, 7854, 7855, 7856, 2192, 2195, 2196, 2197, 2198, 2201, 2202, 2203, 2468, 2467, 2470, 2471, 2472, 2474, 2473, 2476, 2477, 2478, 2480, 2479, 2482, 2483, 2484, 2486, 2485, 2488, 2489, 2490, 3181, 3180, 3182, 3183, 3184, 3196, 3195, 3197, 3198, 3199, 5186, 5187, 5188, 5189, 5190, 5526, 5527, 5528, 5529, 5530, 6998, 6993, 6995, 6996, 6997, 5078, 5079, 5080, 5081, 5090, 5091, 5092, 5093, 5374, 5295, 5296, 5297, 5298, 5377, 5307, 5308, 5309, 5310, 5380, 5319, 5320, 5321, 5322, 5383, 5331, 5332, 5333, 5334, 5386, 5343, 5344, 5345, 5346, 5389, 5355, 5356, 5357, 5358, 5392, 5367, 5368, 5369, 5370, 5393, 5371, 5394, 5395, 5396, 7862, 7858, 7859, 7860, 7861, 2918, 2920, 2921, 2922, 2933, 2935, 2936, 2937, 2964, 2948, 2950, 2951, 2952, 2977, 2972, 2974, 2975, 2976, 3641, 3636, 3638, 3639, 3640, 3659, 3654, 3656, 3657, 3658, 3677, 3671, 3673, 3674, 3675, 3876, 3871, 3873, 3874, 3875, 5201, 5202, 5204, 5203, 5205, 5531, 5532, 5533, 5534, 5535, 7839, 7834, 7836, 7837, 7838, 2863, 2865, 2866, 2867, 2878, 2880, 2881, 2882, 2961, 2893, 2895, 2896, 2897, 2989, 2984, 2986, 2987, 2988, 3695, 3690, 3692, 3693, 3694, 3713, 3708, 3710, 3711, 3712, 3731, 3726, 3728, 3729, 3730, 3894, 3889, 3891, 3892, 3893, 5216, 5217, 5219, 5218, 5220, 5536, 5537, 5538, 5539, 5540, 7864, 7865, 7867, 7868, 7869, 1949, 16, 545, 6, 5047, 5046, 5045, 5235, 5234, 8112, 8100, 8099, 8098, 8097, 8096, 8095, 8094, 8093, 8101, 8102, 8103, 8111, 8110, 8109, 8108, 8107, 8106, 8105, 8104, 8092, 8091, 8090, 3293, 3292, 3291, 3290, 3289, 3288, 3287, 3286, 3294, 3295, 5242, 8089, 8565, 7968, 5056, 5055, 5054, 5244, 5243, 3285, 9241, 9308, 8064, 8059, 8051, 8045, 8039, 7930, 8032, 8026, 8069, 8077, 8082, 9325, 9324, 9188, 9220, 9219, 9248, 9243, 9224, 7925, 8020, 8015, 7830, 9315, 9314, 9313, 9189, 9216, 9213, 9280, 7975, 7905, 7980, 7920, 8007, 8002, 7915, 7997, 7992, 7910, 7987, 9279, 3284, 839, 5222, 5221, 3211, 3210, 3209, 3208, 3207, 3206, 5223, 5033, 5034, 1046, 26, 537, 538, 19, 1933, 1, 5035, 3205, 3204, 3203, 502, 2221, 1045, 31, 1895, 488, 18, 1965, 1896, 1897, 503, 3202, 3201, 3200, 1901, 1900, 504, 1899, 1898, 11, 43, 1956, 1951, 1950, 15, 1047, 12, 5050, 5049, 5048, 25, 551, 838, 1955, 550, 1954, 1953, 319, 1952, 552, 44, 5238, 5237, 5236, 3260, 1939, 1938, 536, 1937, 1936, 318, 1935, 3261, 3262, 3263, 3271, 3270, 3269, 3268, 3267, 3266, 3265, 3264, 1934, 5233, 3259, 3258, 1940, 1941, 1948, 544, 1947, 1946, 543, 2218, 1944, 40, 1943, 1942, 34, 3257, 3256, 526, 1929, 1928, 525, 2223, 1927, 524, 1926, 1925, 27, 1924, 1930, 2226, 3255, 3254, 3253, 3252, 3251, 3250, 3249, 3248, 1932, 1931, 527, 13, 3272, 5059, 3299, 3298, 3297, 3296, 1964, 1963, 558, 1962, 1961, 557, 2219, 3301, 3302, 5058, 5057, 5247, 5246, 5245, 3308, 3307, 3306, 3305, 3304, 3303, 561, 38, 5239, 3283, 3282, 3281, 3280, 3279, 3278, 3277, 3276, 3275, 3274, 5240, 5241, 1959, 1958, 24, 1957, 498, 14, 559, 9, 5053, 5052, 5051, 3273, 1913, 20, 317, 4, 5038, 5037, 5036, 5226, 5225, 5224, 3223, 3222, 514, 1910, 516, 513, 2225, 518, 512, 1912, 515, 41, 2222, 517, 1911, 3221, 3220, 508, 2224, 507, 1906, 1905, 1904, 491, 2216, 1903, 35, 1902, 1907, 2217, 3219, 3218, 3217, 3216, 3215, 3214, 3213, 3212, 2220, 1909, 509, 10, 3224, 5044, 3239, 3238, 3237, 3236, 1923, 1922, 37, 1921, 1920, 519, 1919, 3240, 3241, 5043, 5042, 5232, 5231, 5230, 3247, 3246, 3245, 3244, 3243, 3242, 492, 2, 5227, 3235, 3234, 3233, 3232, 3231, 3230, 3229, 3228, 3227, 3226, 5228, 5229, 1918, 1917, 521, 1916, 1915, 520, 1914, 494, 5041, 5040, 5039, 3225]
Local $nonelite4[140] = [4920, 5473, 5494, 5495, 5496, 5497, 5498, 5499, 5541, 5500, 5542, 5543, 5544, 5545, 5417, 5416, 5415, 5414, 5413, 5412, 5411, 5410, 5409, 5408, 5407, 5406, 5405, 5404, 5403, 5402, 5401, 5400, 5399, 5398, 5397, 5558, 4922, 5546, 5547, 5548, 5549, 5550, 5551, 5553, 5552, 5554, 5555, 5556, 5557, 5438, 5437, 5436, 5435, 5434, 5433, 5432, 5431, 5430, 5429, 5428, 5427, 5426, 5425, 5424, 5423, 5422, 5421, 5420, 5419, 5418, 2727, 2728, 2729, 2730, 2731, 2732, 2733, 2734, 2735, 2736, 2737, 2738, 2739, 2740, 2741, 2742, 2743, 3732, 3733, 3734, 3735, 3736, 3737, 3738, 3739, 3740, 3741, 3742, 3743, 5248, 5249, 5250, 5060, 5061, 5062, 2711, 2712, 2713, 2714, 2715, 2716, 2717, 2718, 2719, 2720, 2721, 2722, 2723, 2724, 2725, 2726, 2990, 3744, 3745, 3746, 3747, 3748, 3749, 3750, 3751, 3752, 3753, 3754, 3755, 5251, 5252, 5253, 5063, 5064, 5065]
Local $elemstones[4][5] = [[264, 244, 260, 252, 256], [265, 245, 261, 253, 257], [266, 246, 262, 254, 258], [267, 247, 263, 255, 259]]
Local $shieldsnohh[9] = [8, 23, 29, 42, 269, 532, 533, 534, 535]
Local $shieldshh[3] = [529, 530, 531]
Local $pendants[40] = [7530, 7538, 9037, 7558, 7542, 7526, 7534, 7554, 7546, 7550, 7531, 7539, 9038, 7559, 7543, 7527, 7535, 7555, 7547, 7551, 7532, 7540, 9039, 7560, 7544, 7528, 7536, 7556, 7548, 7552, 7529, 7537, 9036, 7557, 7541, 7525, 7533, 7553, 7545, 7549]
Local $passports[10] = [7007, 7006, 7005, 7004, 7003, 7002, 4801, 4800, 198, 213]
Local $bsloot[11] = [12716, 12718, 12719, 20476, 20337, 20338, 20489, 9345, 9341, 9343, 9344]
Local $evtboxes[4] = [4755, 6388, 20593, 9062]
Local $naccs[100] = [196, 197, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 1786, 1787, 1788, 1789, 1790, 1791, 1792, 1793, 1794, 1795, 1796, 1797, 1798, 1799, 1800, 1801, 1802, 1803, 1804, 1805, 1806, 1807, 1808, 1809, 1810, 1811, 1812, 1813, 1814, 1815, 12600, 12601, 12602, 12603, 12604, 12605, 12606, 12607, 12608, 12609, 12610, 12611, 12612, 12613, 12614, 12615, 12616, 12617, 12618, 12619, 12620, 12621, 12622, 12623, 12624, 12625, 12626, 12627, 12628, 12629, 12630, 12631, 12632, 12633, 12634, 12635, 12636, 12637, 12638, 12639, 12640, 12641, 12642, 12643, 12644, 12645, 12646, 12647, 12648, 12649]
Local $raccs[43] = [7498, 7499, 7500, 7525, 7526, 7527, 7528, 7529, 7530, 7531, 7532, 7533, 7534, 7535, 7536, 7537, 7538, 7539, 7540, 7541, 7542, 7543, 7544, 7545, 7546, 7547, 7548, 7549, 7550, 7551, 7552, 7553, 7554, 7555, 7556, 7557, 7558, 7559, 7560, 9036, 9037, 9038, 9039]
Local $prayers[168] = [463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 474, 475, 480, 481, 588, 589, 591, 592, 594, 595, 597, 598, 599, 600, 601, 603, 604, 605, 606, 607, 608, 609, 610, 611, 613, 614, 616, 617, 840, 841, 1169, 1170, 1172, 1173, 1829, 1831, 1833, 1835, 1837, 1839, 1841, 1843, 1845, 1847, 1849, 1851, 1853, 1855, 1856, 1857, 1860, 1861, 1862, 1865, 1866, 1867, 1870, 1871, 1872, 1875, 1876, 1877, 1880, 1881, 1882, 1885, 1886, 1887, 1890, 1891, 1892, 6074, 6075, 6076, 11695, 11696, 11697, 11698, 11699, 11700, 11701, 11702, 11703, 11704, 11705, 11706, 11707, 11708, 11709, 11710, 11711, 11712, 11713, 11714, 11715, 11716, 11717, 11718, 11719, 11720, 11721, 11722, 11723, 11724, 11725, 11726, 11727, 11728, 11729, 11730, 11731, 11732, 11733, 11734, 11735, 11736, 11737, 11738, 11739, 11740, 11741, 11742, 11743, 11744, 11745, 11746, 11747, 11748, 11749, 11750, 11751, 11752, 11753, 11754, 11755, 11756, 11757, 11758, 11759, 11760, 11761, 11762, 11763, 11764, 11765, 11766, 11767, 11768, 11769, 11770, 11771, 11772, 11773, 11774, 11775, 11776, 11777, 11778]
Local $combiprayers[48] = [12725, 12726, 12727, 12728, 12731, 12732, 12733, 12734, 12737, 12738, 12739, 12740, 12743, 12744, 12745, 12746, 12749, 12750, 12751, 12752, 12755, 12756, 12757, 12758, 12761, 12762, 12763, 12764, 12767, 12768, 12769, 12770, 12773, 12774, 12775, 12776, 12779, 12780, 12781, 12782, 12785, 12786, 12787, 12788, 12791, 12792, 12793, 12794]
Local $elitearmors[530] = [4101, 4102, 4103, 4104, 4105, 4106, 4107, 4108, 4109, 4110, 4111, 4112, 4113, 4114, 4115, 4116, 4117, 4118, 4119, 4120, 4121, 4122, 4123, 4124, 4125, 4126, 4127, 4128, 4129, 4130, 4131, 4132, 4133, 4134, 4135, 4136, 4137, 4138, 4139, 4140, 4141, 4142, 4143, 4144, 4145, 4146, 4147, 4148, 4149, 4150, 4151, 4152, 4153, 4154, 4155, 4156, 4157, 4158, 4159, 4160, 4161, 4162, 4163, 4164, 4165, 4166, 4167, 4168, 4169, 4170, 4171, 4172, 4173, 4174, 4175, 4176, 4177, 4178, 4179, 4180, 4181, 4182, 4183, 4184, 4185, 4186, 4187, 4188, 4189, 4190, 4191, 4192, 4193, 4194, 4195, 4196, 4197, 4198, 4199, 4200, 4201, 4202, 4203, 4204, 4205, 4206, 4207, 4208, 4209, 4210, 4211, 4212, 4213, 4214, 4215, 4216, 4217, 4218, 4219, 4220, 4221, 4222, 4223, 4224, 4225, 4226, 4227, 4228, 4229, 4230, 4231, 4232, 4233, 4234, 4235, 4236, 4237, 4238, 4239, 4240, 4241, 4242, 4243, 4244, 4245, 4246, 4247, 4248, 4249, 4250, 4251, 4252, 4253, 4254, 4255, 4256, 4257, 4258, 4259, 4260, 4261, 4262, 4263, 4264, 4265, 4266, 4267, 4268, 4269, 4270, 4271, 4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281, 4282, 4283, 4284, 4285, 4286, 4287, 4288, 4289, 4290, 4291, 4292, 4293, 4294, 4295, 4296, 4297, 4298, 4299, 4300, 4301, 4302, 4303, 4304, 4305, 4306, 4307, 4308, 4309, 4310, 4311, 4312, 4313, 4314, 4315, 4316, 4317, 4318, 4319, 4320, 4321, 4322, 4323, 4324, 4325, 4326, 4327, 4328, 4329, 4330, 4331, 4332, 4333, 4334, 4335, 4336, 4337, 4338, 4339, 4340, 4341, 4342, 4343, 4344, 4345, 4346, 4347, 4348, 4349, 4350, 4351, 4352, 4353, 4354, 4355, 4356, 4357, 4358, 4359, 4360, 4361, 4362, 4363, 4364, 4365, 4366, 4367, 4368, 4369, 4370, 4371, 4372, 4373, 4374, 4375, 4376, 4377, 4378, 4379, 4380, 4381, 4382, 4383, 4384, 4385, 4386, 4387, 4388, 4389, 4390, 4391, 4392, 4393, 4394, 4395, 4396, 4397, 4398, 4399, 4400, 4401, 4402, 4403, 4404, 5254, 5255, 5256, 5257, 5258, 5259, 5260, 5261, 5262, 5263, 5264, 5265, 5266, 5267, 5268, 5269, 5270, 5271, 5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281, 5282, 5283, 5284, 5285, 5286, 5287, 5288, 5289, 5290, 5291, 5292, 5293, 5601, 5602, 5603, 5604, 5605, 5606, 5607, 5608, 5609, 5610, 5611, 5612, 5613, 5614, 5615, 5616, 5617, 5618, 5619, 5620, 5621, 5622, 5623, 5624, 5625, 5626, 5627, 5628, 5629, 5630, 5631, 5632, 5633, 5634, 5635, 5636, 5637, 5638, 5639, 5640, 5677, 5678, 5679, 5680, 5681, 5682, 5683, 5684, 5685, 5686, 5687, 5688, 5689, 5690, 5691, 5692, 5693, 5694, 5695, 5696, 5697, 5698, 5699, 5700, 5701, 5702, 5703, 5704, 5705, 5706, 5707, 5708, 5709, 5710, 5711, 5712, 5713, 5714, 5715, 5716, 5717, 5718, 5719, 5720, 5721, 5722, 5723, 5724, 9197, 9198, 9199, 9200, 9201, 9288, 9290, 9291, 9292, 9293, 9326, 9328, 9329, 9330, 9331, 9500, 9501, 9502, 9503, 9504, 9505, 9506, 9507, 9508, 9509, 9510, 9511, 9512, 9513, 9514, 9515, 9516, 9517, 9518, 9519, 9520, 9521, 9522, 9523, 9524, 9525, 9526, 9527, 9528, 9529, 9530, 9531, 9532, 9533, 9534, 9535, 9536, 9537, 9538, 9539, 9540, 9541, 9542, 9543, 9544, 9645, 9646, 9647, 9648, 9649, 9650, 9651, 9652, 9653, 9654, 9655, 9656, 9657, 9658, 9659, 9660, 9661, 9662, 9663, 9664, 9665, 9666, 9667, 9668, 9669, 9670, 9671, 9672, 9673, 9674, 9675, 9676, 9677, 9678, 9679, 9680, 9681, 9682]
Local $eliteweaponsnohh[120] = [4001, 4002, 4003, 4004, 4008, 4009, 4010, 4011, 4012, 4016, 4017, 4018, 4019, 4020, 4024, 4025, 4026, 4027, 4028, 4032, 4033, 4034, 4035, 4036, 4040, 4041, 4042, 4043, 4044, 4048, 4049, 4050, 4051, 4052, 4056, 4057, 4058, 4059, 4060, 4064, 4065, 4066, 4067, 4068, 4072, 4073, 4074, 4075, 4076, 4080, 4081, 4082, 4083, 4084, 4088, 4584, 4585, 4586, 4587, 4588, 4589, 4590, 4591, 4592, 4593, 4594, 4595, 4596, 4597, 4598, 4599, 4743, 4744, 4745, 4746, 4747, 4748, 5644, 5645, 5646, 5647, 5651, 5652, 5653, 5654, 5655, 5656, 5657, 5658, 5662, 5663, 5664, 5665, 5666, 5667, 5668, 5669, 5670, 5671, 5672, 5673, 5674, 5675, 5676, 9207, 9209, 9281, 9289, 9553, 9554, 9555, 9556, 9560, 9747, 9748, 9749, 9750, 9754, 9996, 9998]
Local $eliteweaponshh[45] = [4005, 4006, 4007, 4013, 4014, 4015, 4021, 4022, 4023, 4029, 4030, 4031, 4037, 4038, 4039, 4045, 4046, 4047, 4053, 4054, 4055, 4061, 4062, 4063, 4069, 4070, 4071, 5648, 5649, 5650, 5659, 5660, 5661, 4077, 4078, 4079, 4085, 4086, 4087, 9557, 9558, 9559, 9751, 9752, 9753]
Local $nonfjewels[14] = [7501, 7502, 7503, 7504, 7505, 7506, 7507, 7508, 7509, 7510, 7511, 7512, 7513, 7514]
Local $combimats[12] = [1175, 1176, 1177, 1178, 1974, 1975, 1976, 1977, 2118, 2116, 2119, 2117]
08/12/2015 14:01 lolkop#2
Using *.ini files for lots of data, is a realy bad idea. Better use normal files, or even a database.

When using normal files, regular expressions are the best way to go.

Here's a simple example for a searchengine for your ini file:
Code:
#include <array.au3>
_ArrayDisplay(StringRegExp(FileRead('ItemTemplateAll1.ini'), "[1]=(.*"&InputBox("Search for", "Enter your Text:")&".*)", 3))
The example should return all entries containing your input.
08/12/2015 14:40 warfley#3
Don't use textiles at all, use binary files.
You could use this kind of file format:
Header:
ItemCount (4 Byte) then for every item the Position (4 Byte) in the file.

Then begins the content:
For each ITEM:
ID (4Byte)
LengthOfName (4 Byte)
Name (LengthOfName Byte)
Other stuff
Other Stuff

This format is easy to read, you don't need to load the complete list into the memory to process it but its a bit difficult to write
08/12/2015 15:03 lolkop#4
Quote:
Originally Posted by warfley View Post
Don't use textiles at all, use binary files.
You could use this kind of file format:
Header:
ItemCount (4 Byte) then for every item the Position (4 Byte) in the file.

Then begins the content:
For each ITEM:
ID (4Byte)
LengthOfName (4 Byte)
Name (LengthOfName Byte)
Other stuff
Other Stuff

This format is easy to read, you don't need to load the complete list into the memory to process it but its a bit difficult to write
Working in memory is allways better, than working in the filesystem (Memory>HDD). Even when you're working with files, larger than your physical memory, you should try to read as big as possible parts of the file and handle it in the memory.

Beside that, Autoit is extremely slow in File-Operations (especially Binary-Operations).
08/12/2015 15:22 warfley#5
Quote:
Working in memory is allways better, than working in the filesystem (Memory>HDD). Even when you're working with files, larger than your physical memory, you should try to read as big as possible parts of the file and handle it in the memory.
of course memory is faster, but if you have a program that needs only to load one Item at the time, why should you read all the file at once? Lets say the file is about 600 MB big, i don't want to waste 600MB of my Memory on something i might not even need to load. That this is faster was more about string Processing, because running through the whole text for every single Item is pretty much waste of Processor Time, and you can still load all Items into an Array (or something like this) than working on Memory with binary data is way faster than everything working text based
08/12/2015 15:27 mlukac89#6
@lokop u see results on yours example [Only registered and activated users can see links. Click Here To Register...]
so there is only 5 "Blode Ring" this works fine

This ini file its not mine, its from the game that contains data like droping items, so i need to edit them, but problem is that ini is 16 mb big and there is like few items with same name like
- Blode ring
- Inteligent Blode Ring
- Briliant Blode Ring
- Glorious Blode Ring
So i need to change only Blode Ring not inteligent, briliant, glorious rows

I edit code a bit but still i can read only small ini files but not big

Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <File.au3>
#include <Array.au3>
#include <FileConstants.au3>
#include <GuiListView.au3>


#Region ### START Koda GUI section ###
$hGUI = GUICreate("INI Editor", 684, 364, 607, 439)
GUICtrlCreateGroup(" Search ", 8, 16, 342, 297)
GUICtrlCreateLabel("Search for text", 22, 40, 73, 17)
$hSearchInput = GUICtrlCreateInput("", 23, 60, 185, 21)
$hFinddAllButton = GUICtrlCreateButton("Find All", 222, 58, 75, 25)
GUICtrlCreateLabel("Found Items ( click to edit )", 22, 102, 131, 17)
;~ $hList = GUICtrlCreateList("", 22, 120, 313, 175)
$hList = GUICtrlCreateListView("", 22, 120, 313, 175)
; Add columns
_GUICtrlListView_InsertColumn($hList, 0, "ID", 50)
_GUICtrlListView_InsertColumn($hList, 1, "Item name", 350)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup(" Edit Item", 355, 16, 321, 137)
GUICtrlCreateLabel("Name", 372, 40, 32, 17)
$hNameInput = GUICtrlCreateInput("", 371, 60, 289, 21)
$hSaveButton = GUICtrlCreateButton("Save", 587, 112, 75, 25)
 GUICtrlCreateLabel("Item ID", 372, 95, 38, 17)
$hItemID = GUICtrlCreateInput("", 369, 112, 57, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER,$ES_READONLY))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$hOpenIniButton = GUICtrlCreateButton("Open INI for Edit", 8, 328, 105, 25)
$hWriteIniButton = GUICtrlCreateButton("Write Modified INI", 123, 328, 105, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Global $file, $sFile

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $hOpenIniButton
            _FileOpen()
        Case $hFinddAllButton
            If Not FileExists($file) Then
                MsgBox(48, "Error", "test.ini not found!")
            EndIf

            $sections = IniReadSectionNames($file)
            $test = GuiCtrlRead($hSearchInput)   ; read the search input
            For $i = 1 to $sections[0]    ; loop through sections
                $tmp = IniRead($file, $sections[$i], "1", "not found")  ; read key named "1"
;~                 If StringInStr($tmp, $test) Then GUICtrlSetData($hList, "[" & $sections[$i] & "]   " & $tmp)
                If StringInStr($tmp, $test) Then
                    _GUICtrlListView_BeginUpdate($hList)
                    GUICtrlCreateListViewItem("[" & $sections[$i] & "]|" & $tmp, $hList) ; populate list with founded items
                    _GUICtrlListView_EndUpdate($hList)
                EndIf
            Next

    EndSwitch
WEnd

; open file
Func _FileOpen()

    Global $file = FileOpenDialog("Open INI for edit", "", "INI files (*.*)")

    If FileExists($file) Then

        $sFile = FileOpen($file)

        If @error Then
            MsgBox(48, "Error", "Error = " & @error & ", Extended = " & @extended)
        Else
            GUICtrlSetState($hOpenIniButton, $GUI_DISABLE)
        EndIf
    Else
        MsgBox(48, "Error", "Error = " & @error & ", Extended = " & @extended)
    EndIf

EndFunc
08/12/2015 15:51 BladeTiger12#7
Then try this function instead of StringInStr:

Code:
Func Compare($Str1, $Str2)
	If StringLen($Str1) <> StringLen($Str2) Then Return False

	For $i = 1 To StringLen($Str1)
		If StringMid($Str1, $i, 1) <> StringMid($Str2, $i, 1) Then
			Return False
		EndIf
	Next

	Return True
EndFunc
08/12/2015 16:47 mlukac89#8
Quote:
Originally Posted by BladeTiger12 View Post
Then try this function instead of StringInStr:

Code:
Func Compare($Str1, $Str2)
    If StringLen($Str1) <> StringLen($Str2) Then Return False

    For $i = 1 To StringLen($Str1)
        If StringMid($Str1, $i, 1) <> StringMid($Str2, $i, 1) Then
            Return False
        EndIf
    Next

    Return True
EndFunc
Your function reads me all .ini items in list
08/12/2015 17:10 BladeTiger12#9
This function dont ready anything from your ini.
It just compare 2 strings.
Code:
If Compare($tmp, $test) Then
            _GUICtrlListView_BeginUpdate($hList)
            GUICtrlCreateListViewItem("[" & $sections[$i] & "]|" & $tmp, $hList) ; populate list with founded items
            _GUICtrlListView_EndUpdate($hList)
EndIf
08/12/2015 17:36 mlukac89#10
Quote:
Originally Posted by BladeTiger12 View Post
This function dont ready anything from your ini.
It just compare 2 strings.
Code:
If Compare($tmp, $test) Then
            _GUICtrlListView_BeginUpdate($hList)
            GUICtrlCreateListViewItem("[" & $sections[$i] & "]|" & $tmp, $hList) ; populate list with founded items
            _GUICtrlListView_EndUpdate($hList)
EndIf
Yea i used it like that and it need 3-4 min to find 1 string, so this is too slow, @lolkop's example is very good but i don't know how to put that founded results from _ArrayDisplay() in my listview

Code:
        Case $hFinddAllButton

            $sections = IniReadSectionNames($file)         ; read section names
            $test = GuiCtrlRead($hSearchInput)           ; read the search input

            ; loop through sections
            For $i = 1 to $sections[0]

                $tmp = IniRead($file, $sections[$i], "1", "not found")  ; read key named "1"
;~                 If StringInStr($tmp, $test) Then GUICtrlSetData($hList, "[" & $sections[$i] & "]   " & $tmp)
                If Compare($tmp, $test) Then ; If StringInStr($tmp, $test) Then
                    _GUICtrlListView_BeginUpdate($hList)
                    GUICtrlCreateListViewItem("[" & $sections[$i] & "]|" & $tmp, $hList) ; populate list with founded items
                    _GUICtrlListView_EndUpdate($hList)
                EndIf
            Next
08/12/2015 20:08 BladeTiger12#11
Ahh, just do smth. like that:

Code:
For $i = 0 To UBound($YourArray) -1
    ; $YourArray[$i] = Result from index $i
Next
08/12/2015 22:04 mlukac89#12
This works on small ini and give me all results from search field but won't work with big ini :(, try download this game ini u have in first post and try to find "Blode" without ""

Code:
        Case $hFinddAllButton

            ; check if ini is opened
            ; check if empty field

            $sections = IniReadSectionNames($file)         ; read section names
            $test = GuiCtrlRead($hSearchInput)           ; read the search input

;~                 _ArrayDisplay(StringRegExp(FileRead('ItemTemplateAll1.ini'), "[1]=(.*"&InputBox("Search for", "Enter your Text:")&".*)", 3))

            ; loop through sections
            For $i = 1 To $sections[0]

                ; read key named "1"
                $tmp = IniRead($file, $sections[$i], "1", "")

                #cs
                    Checks if a string contains a given substring

                    Return Value
                    Success: the position of the substring.
                    Failure: 0 if substring not found.
                    @error: 1 = Invalid "start" or "occurrence" parameter given.
                #ce
                If StringInStr($tmp, $test) Then
                    If @error Then
                        MsgBox(48, "Error", "Error : " & @error & ", Extended : " & @extended)
                    Else
                        ; populate list with founded items
                        _GUICtrlListView_BeginUpdate($hList)
                        GUICtrlCreateListViewItem("[" & $sections[$i] & "]|" & $tmp, $hList)
                        _GUICtrlListView_EndUpdate($hList)
                    EndIf
                EndIf

            Next
08/12/2015 22:29 BladeTiger12#13
Yeah, but what you want to do?
You can just break(ExitLoop), if script found a entry.

AutoIt is just toooo~ slow for that big ini.
08/12/2015 22:42 mlukac89#14
I want this [Only registered and activated users can see links. Click Here To Register...] in listview like this [Only registered and activated users can see links. Click Here To Register...] so when i click on item, that item appears here [Only registered and activated users can see links. Click Here To Register...] so i can edit it and save back to ini.

Is in c++, delphi, c# this things works faster ?
08/13/2015 00:38 warfley#15
Quote:
Originally Posted by mlukac89 View Post
I want this [Only registered and activated users can see links. Click Here To Register...] in listview like this [Only registered and activated users can see links. Click Here To Register...] so when i click on item, that item appears here [Only registered and activated users can see links. Click Here To Register...] so i can edit it and save back to ini.

Is in c++, delphi, c# this things works faster ?
Yeah they are a lot faster, i won't even say that it is more difficult to do this than in AutoIt, but you need to learn more to get started with these languages.