Jump to content
Sign in to follow this  
DirtyBanditos

Input box to ini

Recommended Posts

DirtyBanditos

Hi all :idiot:

I have test for adding this code but hi write not the text from the input box to the ini files wat wat i made wrong in this exampel=?Thx for help any. :D

$Cdkey = InputBox("DirtyBanditos", "Please enter your Cdkey Message.", "DirtyBanditos test1", "")
 IniWrite( @ScriptDir & "\DirtyBanditos test.ini", "config", "Cdkey", 1 )

Share this post


Link to post
Share on other sites
Einzeinbleth

Try

$Cdkey = InputBox("DirtyBanditos", "Please enter your Cdkey Message.", "DirtyBanditos test1", "")
IniWrite( @ScriptDir & "\DirtyBanditos test.ini", "config", $Cdkey, 1 )

Share this post


Link to post
Share on other sites
DirtyBanditos

Try

<br />$Cdkey = InputBox("DirtyBanditos", "Please enter your Cdkey Message.", "DirtyBanditos test1", "")<br />IniWrite( @ScriptDir & "\DirtyBanditos test.ini", "config", $Cdkey, 1 )<br />

<{POST_SNAPBACK}>

Hi Einzeinbleth :D Big thx for fast help^^i test it :idiot:

Share this post


Link to post
Share on other sites
DirtyBanditos

Try

$Cdkey = InputBox("DirtyBanditos", "Please enter your Cdkey Message.", "DirtyBanditos test1", "")
IniWrite( @ScriptDir & "\DirtyBanditos test.ini", "config", $Cdkey, 1 )

<{POST_SNAPBACK}>

hi Hm no hi write $Cdkey in the ini but not the Test from the input box=?wy :idiot:

the written ini file,but i mis the test from the box wat is my prob=?

[config]

$spam=1

Edited by DirtyBanditos

Share this post


Link to post
Share on other sites
Einzeinbleth

Sorry, i made mistake too :idiot: this works perfect:

$test=inputbox('test', 'test', 'test')
$sFile= @SCRIPTDIR & '\input.ini'
iniwrite($sFile, 'test', 'test', $test)

And the ini file was created:

[test]
test=test

Share this post


Link to post
Share on other sites
DirtyBanditos

Sorry, i made mistake too  :D  this works perfect:

$test=inputbox('test', 'test', 'test')
$sFile= @SCRIPTDIR & '\input.ini'
iniwrite($sFile, 'test', 'test', $test)

And the ini file was created:

[test]
test=test

<{POST_SNAPBACK}>

:lol: Big thx your Exampel wörks great for me^^ :idiot:

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  

×