
jondolar
Active Members-
Posts
25 -
Joined
-
Last visited
Everything posted by jondolar
-
Thanks to both of you. Details.....details....details! Serge
-
HI everyone Trying to do something rather simple i.e. Deleting a section from ini file with the following code: $res = IniDelete("D:\autoit3\Serge\SergeINI.txt", "[8]") MsgBox (0,"",$res) The $res return 1 but when I opening the file manually, the section, it's key and value are still there. [8] 8=8 What am I doing wrong? Regards and TIA Serge
-
Wow...I'm impressed. Played with it for just 5 min. I'm already Hooked. Great idea, well implemented. I'l be leaving for Europe on saturday, back on Oct 5th. When I'm back, I'l give you a hand with French as one of the languages. Again great job Regards Serge
-
Hi everybody. I found a nice and free SQLite database manager called EasySQLIte 2, written by Jan Verhoeven and available here: Jan's freeware collection The progran uses Jscript as it's scripting language. My question is: Does anybody know Jscript and is it be possible to interact with that DB and Jscript using autoIt3? Regards and TIA Serge
-
Meta tags?... be interested to have info on that. Serge
-
Since Writing/Reading to/from a text file is so fast, I suppose you could read the entire file to an array, do your search/replace there then write the entire pseudo ini file back to disk and still use IniReadSection to fetch a specific "Record" and IniDelete to delete a specific "record". For a veryvery small file, pure ini is ok but when you go past 100 entries, it is extremely slow (1000 entries = 15 sec) Regards Serge
-
HiI actually made an interesting small discovery. Using FileWriteLine to simulate an INI file like this: $i = 0 $handle = FileOpen("D:\autoit3\Serge\SergeINI.txt", 1 ); Write a simulated INI file while $i <= 10000 FileWriteLine($handle, "[" & $i & "]") FileWriteLine($handle, $i & "=" & $i) $i = $i + 1 wend FileClose($handle)You write at hi speed txt file and can still use IniReadSection for example: $i = 0 $var = IniReadSection("D:\Autoit3\Serge\SergeINI.txt", "4"); Read ini/txt file If @error Then MsgBox(4096, "", "Error occured, probably no INI file.") Else For $i = 1 To $var[0][0] MsgBox(4096, "", "Key: " & $var[$i][0] & @CRLF & "Value: " & $var[$i][1]) Next EndIf Interesting Serge
-
Hi I did some search on the forum with "Data Paging". Did'nt find anything. To make sure that my terminology is right, let me explain what I mean by paging. Suppose I want to make a simple "Disk based" (rather than loading the entire file in memory) database program and that I can display only 25 records at a time. I would need to load 25 records at a time plus maybe the 25 previous records and the next 25 records in a buffer, then manage the reading and writing of these chunks of data. As something similar beign discussed on this forum? If so can you point me in the right direction. TIA Serge
-
Hi Kurt Poor's man database ;o) Not adequeate I guess.
-
I'm new to Autoit3 and experimenting. I wanted to compare the Write speed of both an Ini file and a plain text file the result for an ini file with 1,000 elements is 15 sec with the following code: $i = 0 While $i <= 1000 IniWrite("D:\Autoit3\Serge\MYINI.ini", $i, $i, $i) $i = $i + 1 Wend To write 100,000 elements to a plain text file took only a few seconds with: $i = 0 $handle = FileOpen("D:\autoit3\Serge\Sergetxt.txt", 1 ) while $i <= 100000 FileWriteLine($handle, $i & " The quick Brown Fox Jumped over the fence") $i = $i + 1 wend FileClose($handle) Any Idea why writing to an ini file is so slow? Regards Serge
-
Thanks for the suggestion. It works when run by itself. My confidence in ths Autoedit is greatly reduced ;o) Serge Tested the script dirctly. It takes 15 sec per 1000 writes. That's awfully long. Is that normal?
-
I don't understand what's wrong. I tried to run the script with the Autoed editor with both the production version and the latest Beta by toggling between the two with Toggleau3Beta.au3. Same results as stated before. I'm baffeled! Serge
-
Hi everyone I'm writing to an ini file for testing purposes. $i = 0 While $i <= 1000 IniWrite("D:\Autoit3\Serge\MYINI.ini", $i, $i, $i) ;Sleep(100) $i = $i + 1 Wend Without Sleep(100), The output looks like that: [0] 0=0 [1] 1=1 [2] 2=2 [3] 3=3 . . . [497] 497=497 [498] 498=498 it stops anywhere between 490 and 530. (File erased between each run) If I use Sleep(100), it stops around 57. My question: any idea while it stops like that? Any workaround? This should easilly go 10,000 if I wanted to unless there is something I don't understand. AFAK the theoretical limit for an ini file with win 9x is 64k and this limit was removed for win XP. TIA Serge
-
HiI work on a Fujitsu Laptop 1.5 years old, Windows XP Pro. The display driver has never been toutched and has all default settings. What OS setting would you suggest to look at? TIA Serge Additional info: If I use AutoEd instead of SciTe. Then F8 (run) works ok. F9 (Sintax check) behave like SciTe i.e. Black out screen , Console then back to AutoEd
-
F5 doesn't do it, Ctrl+F5 do it exactly as before even with the additional line. Serge
-
The addition of that line solved the entire problem i.e no black screen, no console, just the Mssagebox opened on top of the Script in SciTe. This is the message of the output pan if your interested. >"D:\AutoIt3\SciTe\CompileAU3\CompileAU3.exe" /run /prod /ErrorStdOut /in "D:\AutoIt3\Examples\msgbox.au3" /autoit3dir "d:\AutoIt3" /UserParams >Running: (3.1.1.0):\AutoIt3\autoit3.exe "D:\AutoIt3\Examples\msgbox.au3" >AutoIT3.exe ended. >Exit code: 0 Time: 14.238 Now, what should I do to "normalize" SciTe bhaviour? TIA Serge
-
Behave exactly like it is run from SciTe minus the SciTe Screen at the end:Screen goes black See briefly console See the GUI Serge
-
After running again this morning this is the content on the output pan of SciTe: >"D:\AutoIt3\SciTe\CompileAU3\CompileAU3.exe" /run /prod /ErrorStdOut /in "D:\AutoIt3\Examples\GUI\SampleControls.au3" /autoit3dir "d:\AutoIt3" /UserParams >Running AU3Check...D:\AutoIt3\SciTe\Defs\Production\Au3Check\au3check.dat >AU3Check Ended. No Error(s). >Running: (3.1.1.0):\AutoIt3\autoit3.exe "D:\AutoIt3\Examples\GUI\SampleControls.au3" What you suggested running produce an error message. See screen capture attatched Serge
-
Emoticons were enabled. Thats what. The true ouput is: >"d:\AutoIt3\SciTe\CompileAU3\CompileAU3.exe" /run /prod /ErrorStdOut /in >"D:\AutoIt3\Examples\GUI\SampleControls.au3" /autoit3dir "d:\AutoIt3" /UserParams >Running AU3Check...D:\AutoIt3\SciTe\Defs\Production\Au3Check\au3check.dat >AU3Check Ended. No Error(s). >Running: (3.1.1.0):\AutoIt3\autoit3.exe >D:\AutoIt3\Examples\GUI\SampleControls.au3 >AutoIT3.exe ended. >Exit code: 0 Time: 15.582
-
It happens with all the sample scripts for example InputBox.au3 They all behave the same.
-
I have the latest version 1.66 now. Same problem Serge
-
Hi Newb here on Windows XP Pro SCIte 1.64 with the AutiIt install I can run a sample script prom SCIte with F5, no problem. I would just like to know why: 1- my screen goes blank for about one second then, 2- I briefly see the DOS console then 3- I get back to SCIte and see the messagebox (sample script) on top of SCIte. This does not happen when running the same sample script directly (double clicking on it) Any possibility of going directly to 3 ;D ? I tried the same scripts in Autoed. Worked perfectly Here is the text of the SCIte output pane if it can be of any help: >"D:\AutoIt3\SciTe\CompileAU3\CompileAU3.exe" /run /prod /ErrorStdOut /in "D:\AutoIt3\Examples\GUI\SampleControls.au3" /autoit3dir "d:\AutoIt3" /UserParams >Running AU3Check...D:\AutoIt3\SciTe\Defs\Production\Au3Check\au3check.dat >AU3Check Ended. No Error(s). >Running: (3.1.1.0)biggrin.gif:\AutoIt3\autoit3.exe "D:\AutoIt3\Examples\GUI\SampleControls.au3" Hope someone can help sad.gif TIA Serge PS. The same question was asked a few days ago but produced no solution
-
Here is the text of the output pane if it can be of any help: >"D:\AutoIt3\SciTe\CompileAU3\CompileAU3.exe" /run /prod /ErrorStdOut /in "D:\AutoIt3\Examples\GUI\SampleControls.au3" /autoit3dir "d:\AutoIt3" /UserParams >Running AU3Check...D:\AutoIt3\SciTe\Defs\Production\Au3Check\au3check.dat >AU3Check Ended. No Error(s). >Running: (3.1.1.0):\AutoIt3\autoit3.exe "D:\AutoIt3\Examples\GUI\SampleControls.au3" Hope someone can help TIA Serge
-
Hi Thanks for the feedback. I dowloaded and reinstaled from the link you provided. Same behaviour. Regards Serge
-
Hi Newb here on Windows XP Pro SCIte 1.64 with the AutiIt install I can run a script prom SCIte with F5, no problem. I would just like to know why: 1- my screen goes blank for about one second then, 2- I briefly see the DOS console then 3- I get back to SCIte and see the messagebox (sample script) on top of SCIte. This does not happen when running the script directly (double clicking on it) Any possibility of going directly to 3 ;D ? I tried the same scripts in Autoed. Worked perfectly Here is the text of the output pane if it can be of any help: >"D:\AutoIt3\SciTe\CompileAU3\CompileAU3.exe" /run /prod /ErrorStdOut /in "D:\AutoIt3\Examples\GUI\SampleControls.au3" /autoit3dir "d:\AutoIt3" /UserParams >Running AU3Check...D:\AutoIt3\SciTe\Defs\Production\Au3Check\au3check.dat >AU3Check Ended. No Error(s). >Running: (3.1.1.0)biggrin.gif:\AutoIt3\autoit3.exe "D:\AutoIt3\Examples\GUI\SampleControls.au3" Hope someone can help sad.gif TIA Serge