Sign in to follow this  
Followers 0
Wratislavian

ask once and remember it into *.ini

4 posts in this topic

i wish that my script ask user for some patch (by inputbox) only once and then uses that patch every time when script is run without asking for it again.

which topic in help file should i read?

Share this post


Link to post
Share on other sites



IniRead() returns a default value so you can read the value and if the value is not as your script wants i.e default value returned, then use your inputbox to get the information.

:whistle:

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

IniRead() returns a default value so you can read the value and if the value is not as your script wants i.e default value returned, then use your inputbox to get the information.

:lmao:

hmm

i tought bout something like that:

for egzample:

I

1. run script

2. input box asks abaout value

3. use value in some way

4. quit

II

1. user run the same script again

2. NO question for value

3. use value from input box from part I

4. quit

:whistle:

Edited by Wratislavian

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

thx for help :whistle:

$muz = IniRead("WratiPz.ini", "ustawiena", "muz", "1")
if $muz = "1" Then
$Muz1 =InputBox("made by Wrati", "insetr patch", "C:\......\.mp3", "", -1, -1, 500, 500)    
            IniWrite("WratiPz.ini", "ustawiena", "muz", $muz1)
            Exit
ElseIf $1 = 1 Then
sleep (1000)        
EndIf
Edited by Wratislavian

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