vladedoty Posted September 1, 2009 Posted September 1, 2009 i know this is probably a dumn question but what code would i need for my program to save info to the registry so that the next time i open the program the info that was entered in the text boxes last time are there this time?
dbzfanatic Posted September 1, 2009 Posted September 1, 2009 You could also use an ini file. If you're stuck on the idea of using the registry use RegRead/RegWrite. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote]
vladedoty Posted September 1, 2009 Author Posted September 1, 2009 You could also use an ini file. If you're stuck on the idea of using the registry use RegRead/RegWrite.sorry kinda new at thishow would i use an ini filewhat would i have to put into it?Again thanks for any of your help
dbzfanatic Posted September 1, 2009 Posted September 1, 2009 Just put the info you need. Read up on the Ini* functions in the helpfile, it's there for a reason . Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote]
Manjish Posted September 1, 2009 Posted September 1, 2009 an example of how to write to an ini file, the data that's entered into an input box. #include <GUIConstantsEx.au3> ;Opt('MustDeclareVars', 1) Example() Func Example() Local $file, $btn, $msg GUICreate(" My GUI input acceptfile", 320, 120, @DesktopWidth / 2 - 160, @DesktopHeight / 2 - 45, -1, 0x00000018); WS_EX_ACCEPTFILES ;$file = GUICtrlCreateInput("", 10, 5, 300, 20) GUICtrlSetState(-1, $GUI_DROPACCEPTED) $ip=GUICtrlCreateInput("", 10, 35, 300, 20) ; will not accept drag&drop files $btn = GUICtrlCreateButton("Ok", 40, 75, 60, 20) GUISetState() $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $btn IniWrite("info.ini","input","data",GUICtrlRead($ip)) ExitLoop EndSelect WEnd ;MsgBox(4096, "drag drop file", GUICtrlRead($file)) EndFunc ;==>Example Guess u can figure out the rest... [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com
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