akifennec Posted September 12, 2009 Posted September 12, 2009 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
somdcomputerguy Posted September 12, 2009 Posted September 12, 2009 (edited) 1. PixelGetColor2. MouseClick or ControlClick3. Seems you got this one, and 2 now. Oh, and 3.3. Sleep(1000) is 1 sec.4. Read some more. AutoIt Edited September 12, 2009 by snowmaker - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
akifennec Posted September 12, 2009 Author Posted September 12, 2009 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
akifennec Posted September 12, 2009 Author Posted September 12, 2009 (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 September 12, 2009 by akifennec
somdcomputerguy Posted September 12, 2009 Posted September 12, 2009 Try using ControlClick instead, and use AutoIt Window Info Tool to get info you need. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
akifennec Posted September 12, 2009 Author Posted September 12, 2009 (edited) Ok ill try it and see what i get thanks for the help so far Edited September 12, 2009 by akifennec
somdcomputerguy Posted September 12, 2009 Posted September 12, 2009 (edited) You bet man. You'll get it going I'm sure.<br> Edited September 12, 2009 by snowmaker - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
akifennec Posted September 12, 2009 Author Posted September 12, 2009 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
miketh2005 Posted September 12, 2009 Posted September 12, 2009 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])
akifennec Posted September 12, 2009 Author Posted September 12, 2009 yeah that fixed the syntax error i missed understood the example problem is that it still does nothing in the client window
miketh2005 Posted September 12, 2009 Posted September 12, 2009 Similar problem as what I'm having with my bot...
Hawkwing Posted September 12, 2009 Posted September 12, 2009 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.
akifennec Posted September 12, 2009 Author Posted September 12, 2009 when i use autoit window info there is nothing for the control id is there another way to find it
Hawkwing Posted September 12, 2009 Posted September 12, 2009 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.
akifennec Posted September 12, 2009 Author Posted September 12, 2009 ok well thanks for the help maybe someone else might know away
akifennec Posted September 13, 2009 Author Posted September 13, 2009 Had to run game client in vmware than it worked like a charm
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now