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 


looping and color detect? [delphi]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
detheater
Expert Cheater
Reputation: 0

Joined: 07 Apr 2007
Posts: 238

PostPosted: Fri Nov 30, 2007 9:31 pm    Post subject: looping and color detect? [delphi] Reply with quote

how do i do pixle detection like if position 85,666 is black do something else if not continue with the script and how do i loop, like lets say loop (variable) 0-5 then loop (other variable) 0-5 then make it type the variable, like it would go 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11 and so on. if you can answer these two questions, i would highly apreciate it Very Happy
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Nov 30, 2007 10:21 pm    Post subject: Reply with quote

uhhh, you can try

const
jon = 1;
you = 0;

begin
firstcheck := getpixel(dc, pixelx, pixely);
repeat
seccheck := getpixel(dc,pixelx,pixely);
if firstcheck = seccheck = false then begin
// code here //
end;
until
jon = you;
end;
Back to top
View user's profile Send private message AIM Address MSN Messenger
detheater
Expert Cheater
Reputation: 0

Joined: 07 Apr 2007
Posts: 238

PostPosted: Sat Dec 01, 2007 12:13 am    Post subject: Reply with quote

so i would put in like this?

const
jon = 1;
you = 0;

begin
firstcheck := getpixel(blue, 555, 666);
repeat
seccheck := getpixel(blue,555,666);
if firstcheck = seccheck = false then begin
// code here //
end;
until
jon = you;
end;

so like that? but how do i get it so if it would be like an actool script? (this is ac tool, what would be the code i put in delphi?)

constents
loop1 = 0
loop2 = 0
end

loop $loop1 = 0 to 5
loop $loop2 = 0 to 5
keys $loop1
keys $loop2
ifblue (555, 666)
end
else
keys {del}
keys {del}
continue
end
end
end

so? how would i convert that to delphi code??
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