Sign in to follow this  
Followers 0
DirtyBanditos

Ini Read lidel prob

6 posts in this topic

#1 ·  Posted (edited)

: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

Share this post


Link to post
Share on other sites

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

<{POST_SNAPBACK}>

Hi JdeB thx for fast Help . :idiot:

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0