Jump to content

Remember Inputs


Recommended Posts

HI all. I am trying to create a sort of VNC GUI. I have this inputbox to type the PC name or IP of the PC to connect. My problem is, i want the PC names to be remembered on the inputbox when i open the GUI again. Is this possible?

thanks to any help.

Link to comment
Share on other sites

  • Developers

Just save the information in an INI and everytime you start you read this information from the INI and present it as the default value in the InputBox.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Just save the information in an INI and everytime you start you read this information from the INI and present it as the default value in the InputBox.

Jos

hi Jos. thanks for that. But i haven't tried using INI. Would you mind to have simple example using an INI.

Sorry if i bother you.

Link to comment
Share on other sites

hi Jos. thanks for that. But i haven't tried using INI. Would you mind to have simple example using an INI.

Sorry if i bother you.

I used this on mine

Func OnAutoItExit()

IniWrite("Dev.ini", "State", "key", $State)

IniWrite("Dev.ini", "System", "key", $System)

IniWrite("Dev.ini", "Year", "key", $Year)

IniWrite("Dev.ini", "Custom1", "key", $CustVar)

IniWrite("Dev.ini", "Custom2", "key", $CustVar2)

IniWrite("Dev.ini", "Custom3", "key", $CustVar3)

IniWrite("Dev.ini", "Custom4", "key", $CustVar4)

IniWrite("Dev.ini", "Path1", "key", $Path1)

IniWrite("Dev.ini", "Path2", "key", $Path2)

IniWrite("Dev.ini", "Path3", "key", $Path3)

IniWrite("Dev.ini", "Path4", "key", $Path4)

IniWrite("Dev.ini", "Override", "key", $Override)

IniWrite("Dev.ini", "Primary File", "key", $WrkFileOvr)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...