Could you use this to tell the program to search for Enchant or Burn buttons when someone requests (As in automatically press it when it sees it)? That way you can leave your enchanter online and go afk while it enchants/burn..
Yes.Quote:
Could you use this to tell the program to search for Enchant or Burn buttons when someone requests (As in automatically press it when it sees it)? That way you can leave your enchanter online and go afk while it enchants/burn..
Show me your whole code...Quote:
Okay I'm sorry if I sound like a complete scripting noob (havent messed with scripts for a few years :x) but im trying to run a cobweb collecting and a wool collecting script and based off of the scripts here, I'm getting the same error. I mean it will start up and ask me to press okay to continue, but a few seconds after that i get this error
"Line 40(file location)
if $result[0]0="0" then return 0
if result^ ERROR
Error:Subscript used with non-Array variable."
any help please ? :X
;#include <ImageSearch.au3>Quote:
Show me your whole code...
I think is because you put " after the variable
Remove all the ; at the beginning... The ; is used for commenting.Quote:
;#include <ImageSearch.au3>
;MsgBox(0,"Notice","Click Ok to start. Make sure you have Mabinogi window
maximized.")
;Global $Paused
;HotKeySet("{PAUSE}", "TogglePause")
;HotKeySet("!{ESC}", "Stop")
;$x1=0
;$y1=0
;While (1)
;Send("{LALT down}")
;$result = _ImageSearch("cobweb.jpg",1,$x1,$y1,80)
;if $result=1 Then
; Tooltip("Nomnomnom cobwebs ^^...", 0, 0)
; MouseMove($x1,$y1,3)
; MouseClick("left",$x1,$y1,1,3)
; Sleep(3000)
;EndIf
;If $result=0 Then
; Sleep (2000)
; MouseMove (722, 445)
; Sleep (1000)
; Tooltip("Searching for cobwebs...", 0, 0)
; MouseDown("right")
; Sleep (1000)
; MouseMove (750, 455)
; Sleep (1000)
; MouseUp("right")
; EndIf
;WEnd
;Func TogglePause()
;$Paused = not $Paused
;While $Paused
; ToolTip("paused")
;sleep(100)
;WEnd
;EndFunc
;
;Func Stop()
;Exit ;same
;EndFunc ;same
So how do I fix mine?Quote:
"1. Download AutoItv3
2. Download ImageSearch (See attachement)
3. Extract ImageSearch.rar
4. Put ImageSearchDLL.dll into C:\Windows
5. Put ImageSearch.au3 into C:\Program Files\AutoIt3\Include"
Okay so I did all this then I went and opened ImageSearch.au3 to put the code in right under this:
; Description: Find the position of an image on the desktop
; Syntax: _ImageSearchArea, _ImageSearch
; Parameter(s):
; $findImage - the image to locate on the desktop
; $tolerance - 0 for no tolerance (0-255). Needed when colors of
; image differ from desktop. e.g GIF
; $resultPosition - Set where the returned x,y location of the image is.
; 1 for centre of image, 0 for top left of image
; $x $y - Return the x and y location of the image
;
; Return Value(s): On Success - Returns 1
; On Failure - Returns 0
;
; Note: Use _ImageSearch to search the entire desktop, _ImageSearchArea to specify
; a desktop region to search
then I saved it and ran it with the coweb.bmp inside that folder but it still don't do anything. I think it's the coweb image but I'm not sure. I saved as jpeg from your first post, then took it in paint and re-saved it as bmp. But then I have 4 different types of bmp: 16-bit, 24-bit, 256-bit, and Monochrome, which do I use?
And does mabi need to be full screen, certain resolution/ font?
yes and no. you need autohkey or autoit3. google and read the previous posts in this thread.Quote:
I know this is uh newbish i guess but how do you make the script with notepad or something? x.x