Jump to content

Ini Read lidel prob


Recommended Posts

:idiot: 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. :D 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 by DirtyBanditos
Link to comment
Share on other sites

  • Developers

$test1 = IniRead($sFile, 'test1', 'test1', "default value")

Edited 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

Hi JdeB thx for fast Help . :D

<{POST_SNAPBACK}>

:idiot: 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 by DirtyBanditos
Link to comment
Share on other sites

:idiot: 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 file

in 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.ini

2. set $test1 as "BLE" in ini file:

[test1]
test1=BLE

3. 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_Box

I think its ok ... try it

Link to comment
Share on other sites

Thats strange... in first line you set $test1 as file

in 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.ini

2. set $test1 as "BLE" in ini file:

[test1]
test1=BLE

3. 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_Box

I think its ok ... try it

<{POST_SNAPBACK}>

;) Thx Einzeinbleth i like you :idiot: nice learn exampel for me but its hard( :D

I check your help code out and test it :D

Yes wörks perfect for me thx you. :lol:

Edited by DirtyBanditos
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...