problem with autoIT

07/14/2009 14:24 KlopEK#1
Hi i try to make a fishingbot, but i have little problem. Me bot don't push the buttons. :/ this is code:

Code:
Func Start()
	Send ("{R down}")
	Sleep ( 1000 )
	Send ("{R up}{G down}")
	Sleep ( 1000 )
	Send ("{G up}")
	Sleep ( 2000 )
	
	While 1
		Sleep ( 500 )
		Send ( "{F1}")
		Sleep ( 500 )
		Send ( "{F4}")
		
		Branie()
		
		Send ( "{F2}")
		Sleep ( 500 )
		Send ( "{F4}")
		
		Branie()
		
		Send ( "{F3}")
		Sleep ( 500 )
		Send ( "{F4}")
		
		Branie()
	WEnd
	
EndFunc
07/14/2009 20:39 ProImba#2
I think you should do something with PixelGetColour look at this[Only registered and activated users can see links. Click Here To Register...]
I hope i could help u
Greetz ProImba
07/15/2009 11:45 KlopEK#3
I use pixelGetColor with function "Branie()" but me bot sometimes don't push F1, F4.... stuppid bot ;p
07/15/2009 11:53 °Remus°#4
its because the keystrokes are not long enough, if you replace them with sth. like this it should work

Code:
send("{F4 down}")
Sleep(50)
send("{F4 up}")
but you also can change the sendkeydowndelay
Code:
Opt("SendKeyDownDelay", 50)      ;50 millisecond
07/15/2009 12:08 KlopEK#5
Oh Remus you'r right ;] i try this method. This should help. Thanx ;]