Sign in to follow this  
Followers 0
Xiis

quick question

4 posts in this topic

is it possible to save the info that was placed in a GUI input box into an .ini file so that it comes up every time you start?

Share this post


Link to post
Share on other sites



is it possible to save the info that was placed in a GUI input box into an .ini file so that it comes up every time you start?

<{POST_SNAPBACK}>

yes...

INIRead()

GUICtrlSetData()

GUIRead()

INIWrite()


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Yes, look at the parametres for an inputbox.

GUICtrlCreateInput ( "text", left, top [, width [, height [, style [, exStyle]]]] )

For the "text" replace it with reading from an ini file like so.

$var = IniRead("C:\Temp\test.ini", "test section", "test key", "NotFound")
GUICtrlCreateInput ($var, 10,10)

Ofcourse you will actaully have to have an ini file for it to return something other than "NotFound"

A standard ini file looks like:
[SectionName]
Key=Value

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

ok thanks just needed to kno b4 i went out of my way to do somethign thats in possible (^.-)b very fast and helpfull replys ty

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