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 


Read 4byte address?
Goto page 1, 2  Next
 
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: Sat Nov 03, 2007 1:14 am    Post subject: Read 4byte address? Reply with quote

well down here i trying to update the value for a 4byte address

some1 can tell me whats wrong?
when i trying to update the value it update into a "byte" value

im sorry for begging alot right now but i trying to learn (i learn best when i work with it)

Code:

procedure TForm1.Button12Click(Sender: TObject);
var address:dword;
    value3: dword;
    x:dword;
    newvalue:string;
begin
       address:=StrToInt('$'+edit2.text);

  case combobox2.ItemIndex of

    2: //4 byte
    begin
      readprocessmemory(processhandle,pointeR(Address),@value3,4,x);
      newvalue:=intTostr(x);
      edit3.Text:=newvalue;
    end;
  end;
end;

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


Last edited by ups2000ups on Mon Nov 05, 2007 11:46 am; edited 3 times in total
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sat Nov 03, 2007 7:16 am    Post subject: Reply with quote

make another timer Rolling Eyes

you can have like 20000000000000 timers

_________________
Back to top
View user's profile Send private message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Sat Nov 03, 2007 9:11 am    Post subject: Reply with quote

blankrider wrote:
make another timer Rolling Eyes

you can have like 20000000000000 timers



ya but the source look better with only 1 for 1 function ....

_________________
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: Sat Nov 03, 2007 9:13 am    Post subject: Reply with quote

No, because timers happen in the same thread you use to process window messages. Create another thread.
_________________
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Sat Nov 03, 2007 10:31 am    Post subject: Reply with quote

Or you can use 2 Timers. try this:

Code:


Implementation

var
x, skill1, skill2, skill3, skill4, skill5 : integer;

procedure form1.oncreate;
begin
x := 0;
skill1 := 0;
skill2 := 0;
skill3 := 0;
skill4 := 0;
skill5 := 0;
end;;

Procedure Form1.Timer1(sender:Tobject);
begin
x := strtoint(autoskillsleep.text);
timer2.interval:=x;
if autoskill1.checked = true then
begin
skill1 := 1;
end;
if autoskill2.checked = true then
begin
skill2 := 1;
end;
if autoskill3.checked = true then
begin
skill3 := 1;
end;
if autoskill4.checked = true then
begin
skill4 := 1;
end;
if autoskill5.checked = true then
begin
skill5 := 1;
end;
end;

procedure Form1.timer2(sender:Tobject);
begin
if skill1 = 1 then
begin
PostKeyEx32(ORD('1'), [], FALSE);
end;
if skill1 = 2 then
begin
PostKeyEx32(ORD('2'), [], FALSE);
end;
if skill1 = 3 then
begin
PostKeyEx32(ORD('3'), [], FALSE);
end;
if skill1 = 4 then
begin
PostKeyEx32(ORD('4'), [], FALSE);
end;
if skill1 = 5 then
begin
PostKeyEx32(ORD('5'), [], FALSE);
end;



Hopefully, you know how to make the disable part.[/code]
Back to top
View user's profile Send private message AIM Address MSN Messenger
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sat Nov 03, 2007 10:34 am    Post subject: Reply with quote

ups2000ups wrote:
blankrider wrote:
make another timer Rolling Eyes

you can have like 20000000000000 timers



ya but the source look better with only 1 for 1 function ....


i lol'd
Back to top
View user's profile Send private message
The Dami3n
Master Cheater
Reputation: 1

Joined: 15 Nov 2006
Posts: 441
Location: Mulkerolandia

PostPosted: Sat Nov 03, 2007 10:42 am    Post subject: Reply with quote

Kaspersky wrote:
ups2000ups wrote:
blankrider wrote:
make another timer Rolling Eyes

you can have like 20000000000000 timers



ya but the source look better with only 1 for 1 function ....


i lol'd

I also lol'd, its true that good looking source is kl kl, but what about program which works, which one you want?
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sat Nov 03, 2007 11:02 am    Post subject: Reply with quote

The reason i lol'd is because "the source look better with only 1 for 1 function"

what does it matter if the src has 1 or 5 timers ? since when srcs are suppose to be looking good Confused ?
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sat Nov 03, 2007 11:16 am    Post subject: Reply with quote

Sources should always be as clean and simple as possible, but that should NEVER get in the way of making a functional program. I highly doubt anyone other than you will ever actually analyze the source, and since you coded it, you understand it.
_________________
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sat Nov 03, 2007 11:38 am    Post subject: Reply with quote

blankrider wrote:
Sources should always be as clean and simple as possible, but that should NEVER get in the way of making a functional program. I highly doubt anyone other than you will ever actually analyze the source, and since you coded it, you understand it.


Correct, and i my mine tidy, for example:

GGFixer was coded (V4.4) in 3 Days, every day i have to update and fix some stuff make it tidy and small as i could.

The source is clean and understoodable.
Back to top
View user's profile Send private message
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Sat Nov 03, 2007 11:58 am    Post subject: Reply with quote

Just put another timer, it dose'nt matter that the source looks "ugly", you can adjust it. But lol, in the program will not appeir the timers, so what the big deal putting another one?

Add 2 Timers.

_________________

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 8:37 am    Post subject: Reply with quote

Kaspersky wrote:
The reason i lol'd is because "the source look better with only 1 for 1 function"

what does it matter if the src has 1 or 5 timers ? since when srcs are suppose to be looking good Confused ?



it is right if it should be only 5 timers it it good but my bot have alot of stuff and only 1 auto skill take 5 timers auto loot 1 timer auto potter 2 timmer and more

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

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Sun Nov 04, 2007 8:39 am    Post subject: Reply with quote

Appalsap answered your question by the way.
_________________
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Sun Nov 04, 2007 10:18 am    Post subject: Reply with quote

Code:

timername.Disable

/

timername.Enabled = false


o.o
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sun Nov 04, 2007 1:53 pm    Post subject: Reply with quote

Kaspersky wrote:
The source is clean and understoodable.


This now has a place in my signature, maybe for about a week. Razz
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
Goto page 1, 2  Next
Page 1 of 2

 
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