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 


Update Value?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Sun Nov 04, 2007 3:33 pm    Post subject: Update Value? Reply with quote

well i trying to make a trainer (im nearly done just a few steps more) thanks dark byte for CELite source


now to the question how do i update the value in the value box?

in CELite the value dosent update in the value box

exampel
i have address "68888" with type "4" value "Unknow" << how do i make this being updated from the memory

_________________
dont complain about my english...
1*1 = 2?


Last edited by ups2000ups on Sun Nov 04, 2007 3:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sun Nov 04, 2007 3:39 pm    Post subject: Reply with quote

What is CeLittle? Do you mean CELite?
_________________
Back to top
View user's profile Send private message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Sun Nov 04, 2007 3:43 pm    Post subject: Reply with quote

appalsap wrote:
What is CeLittle? Do you mean CELite?


ops sorry myfoult =p
yes i mean CELitle

_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sun Nov 04, 2007 3:50 pm    Post subject: Reply with quote

You find the procedure that fills the box when it first spawns, and call it again.
_________________
Back to top
View user's profile Send private message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Sun Nov 04, 2007 4:00 pm    Post subject: Reply with quote

it never fills the box it is pretty simple
search for a value
in the value box put ur own value and press "dork" and it chnges on the address

Code:

function Poke(address:dword;bytes:tbytearray):boolean;
var bw: dword;
begin
  result:=writeprocessmemory(processhandle,pointer(address),@bytes[0],length(bytes),bw);
end;


Code:

procedure TForm1.Button2Click(Sender: TObject);
var address:dword;
    value1: byte;
    value2: word;
    value3: dword;
    value4: single;
    value5: double;
    x:dword;
    check:boolean;
    newvalue:string;
begin
  if sender<>timer2 then undo;

  address:=StrToInt('$'+edit2.text);
  newvalue:=edit3.text;


  check:=false;
  case combobox2.ItemIndex of
    0: //byte
    begin
      value1:=StrToInt(newvalue);
      check:=writeprocessmemory(processhandle,pointeR(address),@value1,1,x);
    end;

    1: //2 byte
    begin
      value2:=StrToInt(newvalue);
      check:=writeprocessmemory(processhandle,pointeR(address),@value2,2,x);
    end;

    2: //4 byte
    begin
      value3:=StrToInt(newvalue);
      check:=writeprocessmemory(processhandle,pointeR(address),@value3,4,x);
    end;

    3: //float
    begin
      value4:=StrToFloat(newvalue);
      check:=writeprocessmemory(processhandle,pointeR(address),@value4,4,x);
    end;

    4: //double
    begin
      value5:=StrToFloat(newvalue);
      check:=writeprocessmemory(processhandle,pointeR(address),@value5,8,x);
    end;
  end;

  if not check then raise exception.Create('Master... Master.... I failed to write to the memory my master. Please, don''t hurt me!');
end;

_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sun Nov 04, 2007 4:02 pm    Post subject: Reply with quote

I don't understand what you're trying to do now.
_________________
Back to top
View user's profile Send private message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Sun Nov 04, 2007 4:06 pm    Post subject: Reply with quote

first you search for 1 value

doubel click the address and it will be putted into address and value box

but how do i make the value read the address value (update)

EDIT

Got it Thanks

_________________
dont complain about my english...
1*1 = 2?


Last edited by ups2000ups on Sun Nov 04, 2007 4:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sun Nov 04, 2007 4:17 pm    Post subject: Reply with quote

I understand. You are putting in the addresses manually then, without scanning? Use ReadProcessMemory and convert the output to string form.
_________________
Back to top
View user's profile Send private message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Sun Nov 04, 2007 4:21 pm    Post subject: Reply with quote

appalsap wrote:
I understand. You are putting in the addresses manually then, without scanning? Use ReadProcessMemory and convert the output to string form.


yea =p well thanks anyway you helped alot =)
+rep now i hope dark byte will answear how to add a pointer in the address too xD

lol i fell like a big ass begger right now lolz

_________________
dont complain about my english...
1*1 = 2?
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