Wratislavian Posted July 12, 2007 Share Posted July 12, 2007 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? Link to comment Share on other sites More sharing options...
MHz Posted July 12, 2007 Share Posted July 12, 2007 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. Link to comment Share on other sites More sharing options...
Wratislavian Posted July 12, 2007 Author Share Posted July 12, 2007 (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.hmmi tought bout something like that:for egzample:I1. run script2. input box asks abaout value3. use value in some way4. quitII1. user run the same script again2. NO question for value3. use value from input box from part I4. quit Edited July 12, 2007 by Wratislavian Link to comment Share on other sites More sharing options...
Wratislavian Posted July 12, 2007 Author Share Posted July 12, 2007 (edited) thx for help $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 July 12, 2007 by Wratislavian 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