My script reads values from 50000 keys from a .ini file (in a loop) and compares it with a user-entered value, then displays the value of the matching key to the user. Func READINI()
Local $startpos = 0
Local $loop = 50000
For $i = $startpos To $loop Step 1
Local $var = IniRead("database.ini", "db", $i, "Not Found")
If $var = $some_user_entered_value Then ; equals it
MsgBox(4096, "Found", $var & " was found at " & $i) ;was found!
ExitLoop 1 ;no use for further compare
EndIf
GUICtrlSetData($progress_bar, $i / $loop * 100) ; set progress bar value
Next
GUICtrlSetData($progress_bar, 0) ; set it back to zero
EndFunc Is there anyway to speed it up? does high process priority work? I also tried from this forum but they were slower than builtin disk I/O functions........