SYRAU3 Posted June 10, 2012 Share Posted June 10, 2012 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 More sharing options...
JohnOne Posted June 10, 2012 Share Posted June 10, 2012 Only the first 32767 chars are read for legacy reasons. 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...
PhoenixXL Posted June 10, 2012 Share Posted June 10, 2012 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 More sharing options...
SYRAU3 Posted June 10, 2012 Author Share Posted June 10, 2012 I saw it, but that's not working! Link to comment Share on other sites More sharing options...
JohnOne Posted June 10, 2012 Share Posted June 10, 2012 What is not working? 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...
SYRAU3 Posted June 10, 2012 Author Share Posted June 10, 2012 Why not Try with sqlite database filesthe 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 More sharing options...
JohnOne Posted June 10, 2012 Share Posted June 10, 2012 Split the section into sections of less than 32767 chars 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...
SYRAU3 Posted June 10, 2012 Author Share Posted June 10, 2012 What is not working?it only reads 1000 keys Link to comment Share on other sites More sharing options...
SYRAU3 Posted June 10, 2012 Author Share Posted June 10, 2012 the chars are less than 10, but the keys are 14000 Link to comment Share on other sites More sharing options...
JohnOne Posted June 10, 2012 Share Posted June 10, 2012 I'm not following here, perhaps it's a language thing. If you have 14000 keys which are just "0=0" Then that alone is 42000 chars, 10000 more that it will read. 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...
SYRAU3 Posted June 10, 2012 Author Share Posted June 10, 2012 thank you very much, what about the sql db issue? Link to comment Share on other sites More sharing options...
BrewManNH Posted June 10, 2012 Share Posted June 10, 2012 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 GudeHow 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 More sharing options...
SYRAU3 Posted June 10, 2012 Author Share Posted June 10, 2012 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 More sharing options...
water Posted June 10, 2012 Share Posted June 10, 2012 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 - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
SYRAU3 Posted June 10, 2012 Author Share Posted June 10, 2012 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 More sharing options...
SYRAU3 Posted June 11, 2012 Author Share Posted June 11, 2012 the problem fixed with INIReadSectionEx, but i can't use INIDelete or INIWrite as the file is protected (unicode chars inside) Link to comment Share on other sites More sharing options...
PhoenixXL Posted June 11, 2012 Share Posted June 11, 2012 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 BrowserThis Link may help for download SQLite Database BrowserRegardsPhoenix 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 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