realkiller Posted June 22, 2007 Share Posted June 22, 2007 i am trying to make a database but so fare no suc6, i am stuck with adding information to the database#include <GuiConstants.au3>#include <GuiCombo.au3>#NoTrayIcon$database = FileRead("database.txt",100000)$file = FileOpen("database.txt", 1)Opt('MustDeclareVars',1)Dim $Label,$Input,$Btn_Insert,$Combo,$Btn_Exit,$msg,$Status,$i_index, $readGuiCreate("UP Database", 392, 254)$Label = GuiCtrlCreateLabel("Enter String to Insert", 20, 20, 120, 20)$Input = GuiCtrlCreateInput("", 160, 20, 180, 20)$Btn_Insert = GuiCtrlCreateButton("Add String", 210, 50, 90, 30)$Combo = GuiCtrlCreateCombo("", 70, 100, 270, 100,$CBS_SIMPLE)GUICtrlSetData($Combo,$database)$Btn_Exit = GuiCtrlCreateButton("Exit", 150, 200, 90, 30)$Status = GUICtrlCreateLabel("",0,234,392,20,BitOR($SS_SUNKEN,$SS_CENTER))GuiSetState()While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit FileClose($file) ExitLoop Case $msg = $Btn_Insert If(StringLen(GUICtrlRead($Input)) > 0) Then$read = GUICtrlRead($Input) FileWriteLine($file,"{BACKSPACE}"&"|"&$read) $i_index =_GUICtrlComboInsertString($Combo,_GUICtrlComboGetCurSel($Combo),GUICtrlRead($Input)) GUICtrlSetData($Status,"Database Geupdate: " & $i_index) EndIf EndSelectWEnd Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
November Posted June 22, 2007 Share Posted June 22, 2007 i am trying to make a database but so fare no suc6, i am stuck with adding information to the databaseHi there... and what is your problem in the database creation?Can you be more specific?Cheers Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
realkiller Posted June 22, 2007 Author Share Posted June 22, 2007 if i insert a text it saves the text in the database.txt wrong and the next time you run the prog it reads the database wrong Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
November Posted June 22, 2007 Share Posted June 22, 2007 if i insert a text it saves the text in the database.txt wrong and the next time you run the prog it reads the database wrongHi there,How it should read then?Give us an example please...One thing that i saw was the backspace! Be more specific please!Best Regards. Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
realkiller Posted June 22, 2007 Author Share Posted June 22, 2007 (edited) see Attachments, if you run the file you will see at the end of the list a wrong character i try to remove it with backspace in the source but that wont work Edited June 22, 2007 by realkiller Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
November Posted June 22, 2007 Share Posted June 22, 2007 see Attachments, if you run the file you will see at the end of the list a wrong character i try to remove it with backspace in the source but that wont workI runned the script and no weird char to mee!Witch is the version of autoit that you are running?Cheers! Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
realkiller Posted June 22, 2007 Author Share Posted June 22, 2007 see image Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
November Posted June 22, 2007 Share Posted June 22, 2007 (edited) see imageI saw the image e no strange chars when i run in my pc...Check your version of auto it.Create a new database fileCheck what kind of txt file are you saving the db (ANSI, unicode, UTF-8)Cheers Edited June 22, 2007 by november Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
realkiller Posted June 22, 2007 Author Share Posted June 22, 2007 (edited) i tryed all formats but doesn't work, i just reinstalled autoit and that doesnt work also. i wonder why it is work in your case, can you compile it without password then i can decompile again Edited June 22, 2007 by realkiller Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
November Posted June 22, 2007 Share Posted June 22, 2007 i tryed all formats but doesn't workHi again..Im out of ideas!Your code in my pc works like a charm...Maybe is the codepage... i dont know... just a wild guess!I really run out of ideas!Sorry but i think i cant help you more :SCheers m8! Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
realkiller Posted June 22, 2007 Author Share Posted June 22, 2007 thx for helping, mabay you can compile the source? and post it here Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
November Posted June 22, 2007 Share Posted June 22, 2007 thx for helping, mabay you can compile the source? and post it hereSure no problem m8, here it goesCheers Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] 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