Minikori Posted August 1, 2008 Share Posted August 1, 2008 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 More sharing options...
Blue_Drache Posted August 1, 2008 Share Posted August 1, 2008 (edited) 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 August 1, 2008 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Developers Jos Posted August 1, 2008 Developers Share Posted August 1, 2008 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 More sharing options...
Blue_Drache Posted August 1, 2008 Share Posted August 1, 2008 Beat you to it for once, Jos. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Minikori Posted August 1, 2008 Author Share Posted August 1, 2008 You could use an INI file for that. look at IniRead() & IniWrite() functions in the Helpfile.JosYeah, 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 More sharing options...
Blue_Drache Posted August 1, 2008 Share Posted August 1, 2008 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 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