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 


Auto Color Detect: Macro?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
warrior000
Grandmaster Cheater
Reputation: 0

Joined: 17 Feb 2006
Posts: 569

PostPosted: Wed May 23, 2007 6:06 pm    Post subject: Auto Color Detect: Macro? Reply with quote

i wanna know if i will be able to make a macro something like when it detects, for example, grey, on specific X/Y, it will use the mouse to click another specific X/Y, then press F5, then loop??
thx

_________________


Back to top
View user's profile Send private message
Jayman7777
How do I cheat?
Reputation: 0

Joined: 23 Dec 2006
Posts: 1

PostPosted: Thu May 24, 2007 3:19 am    Post subject: Reply with quote

SCAR a programming language made by kaitnieks originally used to cheat on a game called runescape later used for knowledgeable uses
Back to top
View user's profile Send private message
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Thu May 24, 2007 3:35 am    Post subject: Reply with quote

ACTools will detect colours, IsGrey x,y x,y being the co ords of the colour to check for.

Autoit is another way and better.

search for the command PixelSearch.

_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Thu May 24, 2007 9:42 am    Post subject: Re: Auto Color Detect: Macro? Reply with quote

warrior000 wrote:
i wanna know if i will be able to make a macro something like when it detects, for example, grey, on specific X/Y, it will use the mouse to click another specific X/Y, then press F5, then loop??
thx


Can you give a game or what ever you are looking at trying this on?



Here is One way using Autoit


This is the part that you use to look in locations or whole screen.
$coord = PixelSearch(1, 1, 780, 580,
$coord = PixelSearch(x,y,x,y,

Example Code: * only part of a PKO bot code developed by: chrislivinitup and myself
Code:
$Monsters = 0xDE7573; Pixel color being searched for
$lowhealth = 85 ; makes character auto sit if health is 40% left
$Shadevar = 0
$Attack = 0
While $Attack = 0
      $coord = PixelSearch(1, 1, 780, 580, $Monsters, 1);$Shadevar) ; Looking for the Pixel "Left,Top,Right,Bottom"
   If Not @error Then
;~       MsgBox(0, "Pixel", "monster " & $Shadevar, 6)
;~       MsgBox(0, "Location", "x coords " & $coord[0] & "   y coords " & $coord[1],2)
      MouseClick("left", $coord[0], $coord[1], 3, 4) ; clicking the pixel
         Sleep(3000) ;wait 5 seconds before picking up items
      Send("^a")
      sleep(1000)
            $Shadevar = 0
      If _IsPressed("23") Then $Attack = 1    ;if "end" is pressed then this will make $DryMystic=1 so the loop will stop
   Else
      $Shadevar = $Shadevar + 1   ;increase allowable shade variation by 1 until shade is found
   EndIf
WEnd
Back to top
View user's profile Send private message
warrior000
Grandmaster Cheater
Reputation: 0

Joined: 17 Feb 2006
Posts: 569

PostPosted: Thu May 24, 2007 11:05 am    Post subject: Re: Auto Color Detect: Macro? Reply with quote

Labyrnth wrote:
warrior000 wrote:
i wanna know if i will be able to make a macro something like when it detects, for example, grey, on specific X/Y, it will use the mouse to click another specific X/Y, then press F5, then loop??
thx


Can you give a game or what ever you are looking at trying this on?



Here is One way using Autoit


This is the part that you use to look in locations or whole screen.
$coord = PixelSearch(1, 1, 780, 580,
$coord = PixelSearch(x,y,x,y,

Example Code: * only part of a PKO bot code developed by: chrislivinitup and myself
Code:
$Monsters = 0xDE7573; Pixel color being searched for
$lowhealth = 85 ; makes character auto sit if health is 40% left
$Shadevar = 0
$Attack = 0
While $Attack = 0
      $coord = PixelSearch(1, 1, 780, 580, $Monsters, 1);$Shadevar) ; Looking for the Pixel "Left,Top,Right,Bottom"
   If Not @error Then
;~       MsgBox(0, "Pixel", "monster " & $Shadevar, 6)
;~       MsgBox(0, "Location", "x coords " & $coord[0] & "   y coords " & $coord[1],2)
      MouseClick("left", $coord[0], $coord[1], 3, 4) ; clicking the pixel
         Sleep(3000) ;wait 5 seconds before picking up items
      Send("^a")
      sleep(1000)
            $Shadevar = 0
      If _IsPressed("23") Then $Attack = 1    ;if "end" is pressed then this will make $DryMystic=1 so the loop will stop
   Else
      $Shadevar = $Shadevar + 1   ;increase allowable shade variation by 1 until shade is found
   EndIf
WEnd




this is very very useful for me.
i neeed a script for KartRider.
like when i am in school.
imma leech, it auto goes into a room, press ready, then ppl will start the game
when they race, im just gonna do nothing, sitting there.
it'd be fast if i lvl like that.
but since its
ACtool, i dun think it will work.
coz KartRider uses Gg REv 1k7

well thx anyways.

_________________


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

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Thu May 24, 2007 2:26 pm    Post subject: Reply with quote

yeah, you will have a problem bypassing autoit and actools for kart rider im afraid.

Labyrnth, im gonna pm you about PKO

_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
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 Gamehacking 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