Jump to content

Recommended Posts

Posted

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

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
Posted

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

Posted

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])
Posted

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.

Posted

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.

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
  • Recently Browsing   0 members

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