AutoIT Skill Leveler !

12/26/2010 21:00 PuN|SheR#1
Hey, I Would like someone to help me why AutoIt ISn't doing what i wrote on the code ! This is for Guard lvler :
Guard = F10
Sit=F9
Code:
Code:
Global $win = "[Conquer] Legend Return" ;Name Of Windows
HotKeySet ("{F3}","Terminate")
MsgBox("","Skill F10, Sit =F9",0) ; MSgBox
ControlSend($win,"","","{F10}",0) ; Sends{F10}(Skill)
	While 1 ; ( Without Ending)
	ControlSend($win,"","","{F9}",0) ; Click On F9 (Sit)
	Sleep(11000) ; The Time To Fill The Full Stamina
	ControlClick($win,"","","right",1,510,400) ; Click next to me with right click to summon a Guard/Skill !
WEnd ; END
Func Terminate()
	exit 0 ;exits the Script by pressing F3
EndFunc
The Problem Is , it doesnt click F10,F9 ! I Tried with ControlSend , But still same.. Anyone Got Idea?
01/05/2011 18:32 moromoro2#2
my advice for u to use conquer clicky to fix u guard
01/10/2011 03:56 legomans#3
controlsend and controlclick are not good functions for conquer, unless you are using a multi that has background click checks removed; use them for about 5 minutes, and you'll be botjailed.

you also seem to be missing a few parameters; do you use scite (the built-in editor)?

changes/errors are marked in red

Code:
Global $win = [COLOR="Red"]WinGetHandle([/COLOR]"[Conquer] Legend Return"[COLOR="Red"])[/COLOR] ;[COLOR="Red"]Take the handle instead so it doesn't get confused with other windows[/COLOR]
HotKeySet ("{F3}","Terminate")
MsgBox([COLOR="Red"]0, "Skill Leveler", 'Skill F10, Sit F9'[/COLOR]) ; you had put the instructions in the title?
ControlSend($win,"",[COLOR="Red"]""[/COLOR],"{F10}",0) ; Sends{F10}(Skill) ;ControlSend ("title", "text", [COLOR="Red"]controlID[/COLOR], "string" [, flag])
While 1 ; ( Without Ending)
	ControlSend($win,"","","{F9}",0) ; Click On F9 (Sit)
	Sleep[COLOR="Red"](Random(11000, 11500, 1)[/COLOR]) ; The Time To Fill The Full Stamina ; idk if it would be detectable if it is always the same
	ControlClick($win,"",[COLOR="Red"]""[/COLOR],"right",1,510,400) ; Click next to me with right click to summon a Guard/Skill ! [COLOR="Red"]What control are you clicking?[/COLOR]
WEnd ; END

Func Terminate()
	Exit 0 ;exits the Script by pressing F3
EndFunc
you are going to either have to get the missing control names from au3info, or use real clicks