Kokodajs Posted October 20, 2010 Share Posted October 20, 2010 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. Link to comment Share on other sites More sharing options...
MrMitchell Posted October 20, 2010 Share Posted October 20, 2010 (edited) I guess store it in an INI file? Or registry, though probably not recommended Edit: Typo! Edited October 20, 2010 by MrMitchell Link to comment Share on other sites More sharing options...
Kokodajs Posted October 20, 2010 Author Share Posted October 20, 2010 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. Link to comment Share on other sites More sharing options...
DOTCOMmunications Posted October 20, 2010 Share Posted October 20, 2010 TY, already found something that looks promising will post if i ll have trouble.HiJust 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 userRegardsAdam MallinsonDOT-COMmunications Link to comment Share on other sites More sharing options...
Kokodajs Posted October 20, 2010 Author Share Posted October 20, 2010 (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 October 20, 2010 by Kokodajs 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