Jump to content

Keeping variable values when scripts closes


Recommended Posts

Just wondering if there's a way to keep a variables value even when the script closes, so that next time it's opened, the value is the same.

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Link to comment
Share on other sites

Write the value to a text file.

Look up the IniRead() and IniWrite() functions in the help file.

Alternatively, write it to a registry key...but that's generally not a good idea to go mucking about in there.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Link to comment
Share on other sites

  • Developers

You could use an INI file for that. look at IniRead() & IniWrite() functions in the Helpfile.

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

You could use an INI file for that. look at IniRead() & IniWrite() functions in the Helpfile.

Jos

Yeah, I know I can do that, but I was hoping there would be another way.

Thanks anyway.

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Link to comment
Share on other sites

Why would there be another way?

When you tell your program to exit, a garbage collection runs, dumping whatever data's left over into the digital landfill. Nothing in the computer needs to know the information that was stored there any more.... so what's the point?

Generally when stuff is left in memory when a program is exited is called a "Buffer overflow" or "Memory Leak" since that memory is no longer allocated to an existing program, but it can't be used.

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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...