Well, I don't really expect anybody to understand it completely; every IF Then and Do While.
The reason why I say that is because I tried to make it as concise as I could. I used allot of Subs to do this and you know how long it takes to work out the kinks.[B)] Therefore it would seem more complicated than it actually is.
By the way, you will need to open the
"Sub AILife(Hav, Life, Death, MyDir, WntList)" Sub-routine
so you can change the MyDir from "C:UsersAaronDesktopLife\" to whatever directory you have put the Life folder in. Sorry.
Just change the one variable and it will correct the whole script.
If you don't change it, it will make its own Life folder in the above directory.
+++++++++++++++++++++++++++++
If you open the Life folder you will find five separate text files. WntList.txt, MemList.txt, HavList.txt, Check.txt, and DesireLog.
Also included: A folder by the name of Environment, the Desire.vbs file, and a bonus Desire.exe file.
Don't bother using the Desire.exe file because the MyDir directory is set for my PC and not for yours....I forgot about that...remember that you'll have to change the Desire.vbs for you PC.
The WntList.txt is where the Desire script will store all the word Objects it finds in the Environment file. Then the script will actively and sequentially desire for the objects that are recorded in this text file.
The HavList.txt file shows all the word Objects the script has already found and retrieved from the Environmental file. It first loaded the WntList.txt file down with what it wanted and then ran a mini program (Sub) to actually retrieve those desired Objects. The HavList file is where it stores all the Stuff if retrieved.
The DesrireLog.txt is exactly what it sounds like....A Log of the Desires activities.....If you run the program over and over again the Log will just keep getting bigger....I need to correct that.
Just delete that file periodically or it can get to big.
The MemList.txt and the Check.txt are just momentary places where certain amount of memory is stored... basically don't worry about those for now.[
![Smiley :)](http://www.ultrahal.com/community/Smileys/default/smiley.gif)
]
To see the program at work first make sure that nothing is in the HavList.txt and that only the Word "Love" is in the WntList.txt file.
Run the Desire.vbs file and the script will search the Environment file for Objects and fill the WntList.txt and then ultimately delete all the Objects from the WntList.txt and add it to the HavList.txt file. The script will not search for what it already has.
You can also add more randomly placed words in the Environment folder's text files. Add more text files or Folders if you like. And the program will store them in its have file (not looking agian).
If you add a Word to the WntList.txt that is not located in the Environment file then the Desire.vbs script will search for (currently) four (4) times before it deletes it from the WntList.txt perminately. The amount of times it searches for the illusive Object can be adjust with the "EN" variable that will be located near the MyDir variable that I mentioned earlier needing to be changed.
If I have forgotten something or see a need to give a-little more detail specific Info then I'll add more later.... It needs documentation and questions help.
+++++++++++++++++++++++++++
I'm looking at a possible database solution to replace the text files that I've been using so often.
I found a website that deals allot with vbs and vb sample scripts. You can download sample packet that show you how to use various commands and codes in Vbscript.
In one part of their site it recommended using .msi as a database. MSI is used by windows as an installer. But basically it is a database that is completely accessible through Vbscript. You can read more about it. Here is a Link.
http://www.jsware.net/jsware/msicode.php5#medI downloaded it earlier. It seems like a good idea. [
![Wink ;)](http://www.ultrahal.com/community/Smileys/default/wink.gif)
] Do you know much about database manipulation? I'd like to know how to directly access Hal's database with the vbs script.
The download comes with its own graphical interface.....[
![Cheesy :D](http://www.ultrahal.com/community/Smileys/default/cheesy.gif)
]
Later Dude [8D]