 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
detheater Expert Cheater
Reputation: 0
Joined: 07 Apr 2007 Posts: 238
|
Posted: Fri Nov 30, 2007 9:31 pm Post subject: looping and color detect? [delphi] |
|
|
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
|
|
Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Fri Nov 30, 2007 10:21 pm Post subject: |
|
|
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 |
|
 |
detheater Expert Cheater
Reputation: 0
Joined: 07 Apr 2007 Posts: 238
|
Posted: Sat Dec 01, 2007 12:13 am Post subject: |
|
|
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 |
|
 |
|
|
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
|
|