Jump to content

Recommended Posts

Posted

Hello, yet again i have problem i can not solve myself.

My proggy has simple InputBox that pops up before program starts running, and as default value in InputBox i have currently "1"

InputBox ( "Mode select", "Select RUN Mode: ", 1, "", 180, 100, 0, 20 )

Now what i want is for InputBox to "remember" value that user enters so next time he runs the program he has his own number as default and can just keep pressing enter for all InputBoxes that pop up. Unfortunately my proggy needs quite some initial setup and now i need solution so i dont need to personalize source for each user.

Any help / pointing in right direction is much appreciated.

Posted

I guess store it in an INI file? Or registry, though probably not recommended ;)

TY, already found something that looks promising :)

will post if i ll have trouble.

Posted

TY, already found something that looks promising ;)

will post if i ll have trouble.

Hi

Just curious as to what you found that looks promising as i am looking to do something similar but have no problems with storing in the registry and clearing later as program is per machine rather than per user

Regards

Adam Mallinson

DOT-COMmunications

Posted (edited)

Just curious as to what you found that looks promising as i am looking to do something similar but have no problems with storing in the registry and clearing later as program is per machine rather than per user

piece of now modified code

$pct = IniRead("Data.ini", "Set1", "$pct", "1")
$PN = Number ( InputBox ( "Mode select", "Select RUN Mode: ", $pct, "", 180, 100, 0, 20 ) )
IniWrite("Data.ini", "Set1", "$pct", $PN)

IniRead and Write, does exactly what i wanted ;) Hope it helps you too :)

Edited by Kokodajs

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
×
×
  • Create New...