Jump to content

Pixelsearch Bot


akifennec
 Share

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
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])
Link to comment
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.

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...