Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


{Delphi}Registry Question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Ki113r
Newbie cheater
Reputation: 0

Joined: 21 Nov 2007
Posts: 12

PostPosted: Wed Nov 28, 2007 7:34 pm    Post subject: {Delphi}Registry Question Reply with quote

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;
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites