Ki113r Newbie cheater
Reputation: 0
Joined: 21 Nov 2007 Posts: 12
|
Posted: Wed Nov 28, 2007 7:34 pm Post subject: {Delphi}Registry Question |
|
|
Ok well I have been studying the Registry Coding in symbols startup source
and well what I wanted to know how does this coding right here work..
| Code: | | Reg.OpenKey('SOFTWARE\Wizet\MapleStory',false); |
well iv been changing it over and over and trying different things and the only thing i noticed about this is that the MapleStory.exe has Wizet and MapleStory
was the description on the .exe when placed the folder you can see | Code: | MapleStory.exe
MapleStory
Wizet |
well thats what i noticed about | Code: | | SOFTWARE\Wizet\MapleStory' | it has both Wizet and MapleStory in it and well i have tried it with other programs and it just won't work for me so......
Iam wondering how do you change it so that it will work and if u dont have maplestory will this affect the registries being saved?
How would i change to like direct it to the program thats doing the saving like that program you have just made...
well I am using this code for the root key
| Code: | | Reg.RootKey := HKEY_LOCAL_MACHINE |
so if have to change this to make it work
also i have noticed that the deletekey | Code: | | Reg.DeleteValue('MapleStory'); |
it must have in the '' MapleStory or Wizet cause it is begin used in the OpenKey
Code:
| Code: |
procedure TForm1.FormCreate(Sender: TObject);
begin
Reg:=TRegistry.Create;
Reg.RootKey := HKEY_LOCAL_MACHINE;
Reg.OpenKey('SOFTWARE\Wizet\MapleStory',false);
if Reg.ReadBool('MapleOnStartUp') = true then Checkbox1.Checked := true else CheckBox1.Checked := false;
end;
procedure TForm1.CheckBox1Click(Sender: TObject);
begin
if CheckBox1.Checked = true then begin //OnCheck.
Reg.CloseKey; //Closing key.
Reg.OpenKey('SOFTWARE\Wizet\MapleStory',false);
Reg.WriteBool('MapleOnStartUp',true);
end else begin
Reg.CloseKey;
Reg.OpenKey('SOFTWARE\Microsoft\Windows\CurrentVersion\Run',true);
Reg.DeleteValue('MapleStory');
Reg.CloseKey;
Reg.OpenKey('SOFTWARE\Wizet\MapleStory',true);
Reg.WriteBool('MapleOnStartUp',false);
end;
end; |
|
|