Jump to content

"IniRead Section" not reading mor that 1000 keys ?!


Recommended Posts

Hi all,

I have a script that reads an INI file's section with more than 14000 keys and inserting them

into a combobox, but unfortunately it only reads 1000 keys! and i didn't find any notes about

this in the command help remarks, any notes please? ;)

Link to comment
Share on other sites

Why not Try with sqlite database files

My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Link to comment
Share on other sites

Why not Try with sqlite database files

the problem is that i had a data base at first, but sqlite commands are not taking it as a database, an error shows that the file is encrypted or not a database, but i tried many databases extension, also didn't work, so i tried to read the INI file's keys and insert it into a new AutoIt-database, but i couldn't edit it with any program, like MSACCESS 2012 or MSEXCEL..

so what to do? even with SQL, is there any solution?

Link to comment
Share on other sites

You can't use SQLite with an ini file, you have to create a database first, and then add your data to it. That would take a bit of knowledge of how to use SQLite first though.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

You can't use SQLite with an ini file, you have to create a database first, and then add your data to it. That would take a bit of knowledge of how to use SQLite first though.

I know how to use SQLite, and i know i cant use it with ini, the problem is i can't edit the databases that AutoIt creates with any program! so i transformed the db into an INI file, but i had that problem too.

Link to comment
Share on other sites

You could give a try to bypass the 32K limitation.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

You could give a try to bypass the 32K limitation.

that's great thank you! it solved my first part of the problem, the second one, is that my INI file has unicode charts, so i can read form it but i cant write using INIWrite, so i tried FileWrite, it's the only command that writes to files without damaging their data using FileOpen, but unfortunately i need to write to an exact line, i tried _FileWriteToLine but it damages the unicode ini file, and can't work with FileOpen.

Help please..

Link to comment
Share on other sites

I know how to use SQLite, and i know i cant use it with ini, the problem is i can't edit the databases that AutoIt creates with any program! so i transformed the db into an INI file, but i had that problem too.

U can u have to download SQLite Database Browser

This Link may help for download SQLite Database Browser

Regards

Phoenix XL

My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...