[Release] Owl Feed Bot

04/23/2011 19:37 evilazneddy#31
I'm having the "Subscript used with non-Array variable" error, I was wondering if you could give instructions on how to fix this problem please? I'm running on a 64-bit operating system
04/23/2011 19:57 ~De@dly Silence~#32
Quote:
Originally Posted by evilazneddy View Post
I'm having the "Subscript used with non-Array variable" error, I was wondering if you could give instructions on how to fix this problem please? I'm running on a 64-bit operating system
To fix this problem you either need to compile it under 32 bit (not sure if this works) or deactivate AutoIt's native 64bit support.
04/23/2011 20:34 Rauit#33
Code:
#include <ImageSearch.au3>
MsgBox(0, "Owl Feeding Bot", "Owl Feeding Bot")
WinActivate ( "Mabinogi" )
WinActive (  "Mabinogi" )



While 1
	$x1=0
	$y1=0
	$x2=0
	$y2=0
	$return = _ImageSearch("return.bmp",1,$x2,$y2,80) ; search for return box
	Do 
		$feeder = _ImageSearch("feed.bmp",1,$x1,$y1,80);Search's for the feed box.
	SLeep(200)
	if $feeder=1 Then
		SLeep(300)
		MouseClick("left",$x1,$y1,2)
		SLeep(300)
		MouseMove(50,50,0)
	EndIf
		SLeep(5000)
	Until $return=1
		If $return=1 Then
		SLeep(300)
		MouseClick("left",$x2,$y2,2)
		Sleep(10000)
		DoLogOut()
	EndIf
WEnd

	Func DoLogOut()
		$x2=0
	$y2=0
	$feeder3 = _ImageSearch("menubutton.bmp",1,$x2,$y2,80);Search's for the menubutton box.
	SLeep(200)
	if $feeder3=1 Then
		SLeep(300)
		MouseClick("left",$x2,$y2,2)
		SLeep(300)
		EndIf
	SLeep(200)
	$feeder4 = _ImageSearch("logout.bmp",1,$x2,$y2,80);Search's for the logout box.
	SLeep(200)
	if $feeder4=1 Then
		SLeep(300)
		MouseClick("left",$x2,$y2,2)
		SLeep(300)
	EndIf
	SLeep(200)
	$feeder5 = _ImageSearch("okay.bmp",1,$x2,$y2,80);Search's for the okay box.
	SLeep(200)
	if $feeder5=1 Then
		SLeep(300)
		MouseClick("left",$x2,$y2,2)
		SLeep(300)
	EndIf
	EndFunc

I haven't fully tested it out. I had one stamp left at the time I did test it, it clicked the stamp, then the return button, and went to log out (didn't log out because I forgot to remove the reset mouse position part of the code, I removed it in this code though). But I think it'll work. Just wanted to contribute because I'm learning Autoit bit by bit by looking at the codes posted on this forum. Hope it works!
04/23/2011 20:51 SSDarkLink#34
Edit: Actually I've thought about it, and think logging it is kinda pointless unless its midnight and your just ccing for another owl.
04/24/2011 00:56 shaggyze#35
^^ this and...

Quote:
Originally Posted by irgan91 View Post
You're script sucks, sorry.
Your an idiot, sorry.
04/25/2011 02:59 Zack007#36
Quote:
Originally Posted by shaggyze View Post
^^ this and...


You're an idiot, sorry.
Fixed..
04/25/2011 07:47 shaggyze#37
Quote:
Originally Posted by Zack007 View Post
Fixed..
Fixed what?

Edit:
This bot/macro only clicks essentially one image its very hard to mess that up.
04/26/2011 02:41 bob09#38
hey man i downloaded the files now what do i do? were do i put them
04/26/2011 10:13 SSDarkLink#39
As I told you, Download AutoitV3 and run Feed Bot.au3 after installing AutoIt.
04/26/2011 16:37 zakra200#40
Do I compile all of the scripts?