It will soon
thats the purpose of this project, im adding a user registry (so far to great sucsess
)
so, for instance to make CasPaint use the registry:
(if i do it:)
add the code register("CASPAINT"), if you put the program exactly as it is featured in the folder then it will be launchable from an explorer. so, "CasPaint" would not work as it is not capitalize correctly.
(if a user does it:)
Run program REGEDIT(), select option 2 (Add key), enter the program name (CASPAINT), enter the location/folder (CasPaint), enter any programs that should be uninstalled with CasPaint (optional, can be left blank), enter any extra data the program will require (optional, can be any amount of data, it will keep prompting untill you enter nothing).
as you can see its much simpler for a program to register itself, rather than a user doing it manually, this is partially on purpose because I dont want the average user screwing with the registry
, however, you will have noticed that the user has more options when registering a program, a program can also access these with modkey(). an example of modkey() is this:
modkey("CASPAINT","CasPaint","(dependant programs)",{array of extra data})
modkey acts the same as register, but it takes longer to execute and the data will be changed each time. a proper way to use modkey then would be:
register("CASPAINT")
if RTN=0
Then
modkey("CASPAINT","CasPaint","(dependant programs)",{array of extra data})
IfEnd
this would only execute modkey once, you could also input anything you need to happen the first time the program runs in that If statement.
using the registry like this will allow for these things:
1: Explorers
2: a global uninstaller
3: an organized file system
4: calling programs without knowing their folder
5: File system checkups/maintnence (will tell you what is missing)
6: and more i havent thought of yet
im also planning on having a "revert" feature built into REGEDIT, this will use one of the classpad's bugs to cause a fatal error and revert to the last safe data, effectively going back to the last time you turned off your calc or made an e-activity, handy if you screw something up bigtime
let me reimphasize the simplicity of making programs be registered, all you have to do is put in register("Prog Name") near the top of a program and it will be registered, everything else is optional.