DirtyBanditos Posted December 30, 2004 Share Posted December 30, 2004 (edited) Hi all my last prob i have a inputbox wis ini write and ini read but ini write wörks fine for me ,but not ini read wy i understand=? Thx all for help me out. I need help for make a inputbox that create my ini and wen i restart my prog then check for my createt ini and read or write it wen not fund it=? $test1= @SCRIPTDIR & '\cfg.ini' IniRead($sFile, 'test1', 'test1', $test1) $test1 = InputBox("DirtyBanditos", "Please enter your Cdkey 1.", " DirtyBanditos test1", "") $test1=inputbox('test1', 'test1', ' DirtyBanditos test1') $test1= @SCRIPTDIR & '\cfg.ini' iniwrite($sFile, 'test1', 'test1', $test1) Edited December 30, 2004 by DirtyBanditos Link to comment Share on other sites More sharing options...
Developers Jos Posted December 30, 2004 Developers Share Posted December 30, 2004 (edited) $test1 = IniRead($sFile, 'test1', 'test1', "default value") Edited December 30, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
DirtyBanditos Posted December 30, 2004 Author Share Posted December 30, 2004 $test1 = IniRead($sFile, 'test1', 'test1', "default value")<{POST_SNAPBACK}>Hi JdeB thx for fast Help . Link to comment Share on other sites More sharing options...
DirtyBanditos Posted December 30, 2004 Author Share Posted December 30, 2004 (edited) Hi JdeB thx for fast Help . <{POST_SNAPBACK}> Wat i make wrong i have called this in code exampel and not wörks!i understand wat i made wrong(($test1= @SCRIPTDIR & '\cfg.ini'$test1 = IniRead($sFile, 'test1', 'test1', '$test1')$test1 = InputBox("DirtyBanditos", "Please enter your Cdkey 1.", " DirtyBanditos test1", "")$test1=inputbox('test1', 'test1', ' DirtyBanditos test1')$test1= @SCRIPTDIR & '\cfg.ini'iniwrite($sFile, 'test1', 'test1', $test1) Edited December 30, 2004 by DirtyBanditos Link to comment Share on other sites More sharing options...
Einzeinbleth Posted December 30, 2004 Share Posted December 30, 2004 Wat i make wrong i have called this in code exampel and not wörks!i understand wat i made wrong(($test1= @SCRIPTDIR & '\cfg.ini'$test1 = IniRead($sFile, 'test1', 'test1', '$test1')$test1 = InputBox("DirtyBanditos", "Please enter your Cdkey 1.", " DirtyBanditos test1", "")$test1=inputbox('test1', 'test1', ' DirtyBanditos test1')$test1= @SCRIPTDIR & '\cfg.ini'iniwrite($sFile, 'test1', 'test1', $test1)<{POST_SNAPBACK}>Thats strange... in first line you set $test1 as filein second you set $test1 as eeeee dunno i think it should be:$sFile=@SCRIPTDIR & '\cfg.ini' $test1=IniRead($sFile, 'test1', 'test1', 'default') $test2=InputBox("DirtyBanditos", "Please enter your Cdkey 1.", $test1) iniwrite($sFile, 'test1', 'test1', $test2)My code does:1. Set $sFile as script directory / cfg.ini2. set $test1 as "BLE" in ini file: [test1] test1=BLE3. set $test2 as that what say user, and default will be last used [$test1]4. Write $test2 to ini file:[test1] test1=What_The_User_Typed_In_Input_BoxI think its ok ... try it Link to comment Share on other sites More sharing options...
DirtyBanditos Posted December 30, 2004 Author Share Posted December 30, 2004 (edited) Thats strange... in first line you set $test1 as filein second you set $test1 as eeeee dunno i think it should be:$sFile=@SCRIPTDIR & '\cfg.ini' $test1=IniRead($sFile, 'test1', 'test1', 'default') $test2=InputBox("DirtyBanditos", "Please enter your Cdkey 1.", $test1) iniwrite($sFile, 'test1', 'test1', $test2)My code does:1. Set $sFile as script directory / cfg.ini2. set $test1 as "BLE" in ini file: [test1] test1=BLE3. set $test2 as that what say user, and default will be last used [$test1]4. Write $test2 to ini file:[test1] test1=What_The_User_Typed_In_Input_BoxI think its ok ... try it<{POST_SNAPBACK}> Thx Einzeinbleth i like you nice learn exampel for me but its hard( I check your help code out and test it Yes wörks perfect for me thx you. Edited December 30, 2004 by DirtyBanditos 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