Sign in to follow this  
Followers 0
akifennec

Pixelsearch Bot

16 posts in this topic

Hi Ive just found this program earlier today and after looking for a few post and reading some tuts, Im still have some problems making this bot that

1. finds the pixel or shade of pixel with in a certain degree ((not sure how to find the other pixels))

2. than left click ((not sure what the command is))

3. hold lctrl and left click

3. sleep 1000 (10 sec) ((i can do this))

4. than loops

so far ill i can do is find the one pixel and that lctrl is

Send ({LCTRL})

Can someone please nudge me in the right direction

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

1. PixelGetColor

2. MouseClick or ControlClick

3. Seems you got this one, and 2 now. Oh, and 3.

3. Sleep(1000) is 1 sec.

4. Read some more. AutoIt

Edited by snowmaker

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

thanks for the reply

ill look into all of what you said

the sleep part was a typo i didn't notice till you posted that

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Ok so i made my code and it kinda works :/

it works every where but the program i want it to run in which is a game client

any ideas

HotKeySet("{F9}","FightOnOff")
HotKeySet("{F10}","ExitApp")

Tooltip("F9 = Fight, F10 = Exit bot", 0, 0)
Dim $fight = False

Func FightOnOff()
   If $fight = False Then
      $fight = True
      ToolTip("Fighting",0,0)
   Else
      $fight = False
      Tooltip("F9 = Fight, F10 = Exit bot", 0, 0)
   EndIf
EndFunc

Func ExitApp()
   Exit
EndFunc

While True

   If $fight = True Then
      Dim $cordinates = PixelSearch( 0, 0, @DesktopWidth, @DesktopHeight, 0x030200)

      If Not @error Then
         MouseClick( "left", $cordinates[0], $cordinates[1], 1, 0)
      EndIf
   EndIf

   Sleep(500)
WEnd
Edited by akifennec

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Ok ill try it and see what i get thanks for the help so far

Edited by akifennec

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

You bet man. You'll get it going I'm sure.<br>

Edited by snowmaker

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

my control click keeps getting a syntax error

ControlClick("Mabinogi : Ancient Secrets of Irinid", "",$cordinates[0], $cordinates[1])

Is this written right?

the error is the title but i dont see how its wrong being that i got it off of AutoIt Window Info

Share this post


Link to post
Share on other sites

my control click keeps getting a syntax error

ControlClick("Mabinogi : Ancient Secrets of Irinid", "",$cordinates[0], $cordinates[1])

Is this written right?

the error is the title but i dont see how its wrong being that i got it off of AutoIt Window Info

Shouldn't it be:

ControlClick("Mabinogi : Ancient Secrets of Irinid", "", "", "", "", $cordinates[0], $cordinates[1])

Share this post


Link to post
Share on other sites

yeah that fixed the syntax error

i missed understood the example

problem is that it still does nothing in the client window

Share this post


Link to post
Share on other sites

Similar problem as what I'm having with my bot...

Share this post


Link to post
Share on other sites

You need to use the controlid of the part of the window your trying to click.


The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Share this post


Link to post
Share on other sites

when i use autoit window info there is nothing for the control id

is there another way to find it

Share this post


Link to post
Share on other sites

I don't use controlclick a lot, so someone correct me if I'm wrong, but I think that if the autoit window info tool can't get a controlid, then controlclick won't work.


The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Share this post


Link to post
Share on other sites

ok well thanks for the help

maybe someone else might know away

Share this post


Link to post
Share on other sites

Had to run game client in vmware than it worked like a charm

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0