mmavipc Posted October 29, 2008 Share Posted October 29, 2008 (edited) Well I was tired of ini files becuase I needed to store sensitive data in a file that the user of the computer couldn't read and the data needed to be encrypted but I didn't want the unencrypted data stored on the computer(you can't use the au3 ini functions to store the output to a var it must be stored to a file first) so I made my own basic file and made funcs that don't output to a file. heres what a data store looks like section name|value section name 1|value 1 section name etc|value etc I think you get it Here are the functions _dstorefindindex($dstore,$nameofsection) Description: finds the index of a section in a data store (why would this be useful other than in the other two functions? I dont know) Parameters: $dstore - the data store variable $nameofsection - the section you wish to find the index of Output: The index of the section that you input _dstorestorevalue($dstore,$section,$value) Description: stores a value in a data store Parameters : $dstore - The data store variable $section - the section you are storing a value in $value - the value you are storing into a section Output: the new data store variable _dstoregetvalue($dstore,$section) Description: gets a value from a section Parameters: $dstore - the data store $section - the section you are retriving a value from output: the value retrieved from $section or if $section does not exist it returns -1 Example code: #include <dstore.au3> dim $ds $ds = _dstorestorevalue($ds,"Awsome people list","mmavipc|Jon|Bob Barr(Libertarian candidate)|lots o other ppl") $ds = _dstorestorevalue($ds,"My IM client","I use yahoo and sometimes aim") msgbox(0,"Section: Awsome people list",_dstoregetvalue($ds,"awsome people list")); as you can see capitalization doesn't matter msgbox(0,"Section: my IM client",_dstoregetvalue($ds,"my im client")) NEW VERSION WITH A LOT OF FIXED REALEASED!!!dstore.au3 Edited October 30, 2008 by mmavipc [size="10"]Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[/size][Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N Link to comment Share on other sites More sharing options...
mmavipc Posted October 29, 2008 Author Share Posted October 29, 2008 (edited) check first post for latest version Edited October 30, 2008 by mmavipc [size="10"]Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[/size][Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N Link to comment Share on other sites More sharing options...
mmavipc Posted October 30, 2008 Author Share Posted October 30, 2008 new version released with a lot of bug fixes [size="10"]Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[/size][Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N 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