:O
Im not too good with ImageSearch-Coding, so dont rage if it doesnt work.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") ;script can be stopped by pressing ESC
$x1=0
$y1=0
While (1)
Send("{LALT down}")
$result = _ImageSearch("cobweb.jpg",1,$x1,$y1,100) ;change the cobweb.jpg if you want to pick up something else.
if $result=1 Then
MouseMove($x1,$y1,3)
MouseClick("left",$x1,$y1,1,3)
Sleep(2000) ;Enough time for the character to go pick up the cobweb. You can change it if you want (2000 = 2 seconds so 1000 = 1 second)
EndIf
WEnd
Func TogglePause()
$Paused = not $Paused
While $Paused
ToolTip("paused")
sleep(100)
WEnd
EndFunc
Func Stop() ;to allow the script to stop
Exit ;same
EndFunc ;same
#include <ImageSearch.au3>
HotKeySet("{ESC}", "_Stop")
$x1=0
$y1=0
MsgBox(0,"Notice","Click Ok to start. Make sure you have Mabinogi window maximized.")
While 1
Send ("{ALTdown}")
$result = _ImageSearch ("cobweb.jpg", 1, $x1, $y1, 85)
If $result=1 Then
MouseMove ($x1, $y1)
MouseClick ("left", $x1, $y1)
Sleep (2000)
EndIf
Send ("{ALTup}")
WEnd
Func _Stop ()
Exit
EndFunc
... ._.Quote:
It flashes the the alt key like crazy fast lol
Wow is that pascal i see...looks like Infomation technology isnt a wast of my time after allQuote:
Im not too good with ImageSearch-Coding, so dont rage if it doesnt work.
Dont forget to put the cobweb.jpg in the same folder as the Bot.
Code:#include <ImageSearch.au3> HotKeySet("{ESC}", "_Stop") $x1=0 $y1=0 MsgBox(0,"Notice","Click Ok to start. Make sure you have Mabinogi window maximized.") While 1 Send ("{ALTdown}") $result = _ImageSearch ("cobweb.jpg", 1, $x1, $y1, 85) If $result=1 Then MouseMove ($x1, $y1) MouseClick ("left", $x1, $y1) Sleep (2000) EndIf Send ("{ALTup}") WEnd Func _Stop () Exit EndFunc