Whenever I try to start ImageSearch.au3 it pops up for about half a second then disappears. I try compiling it and it ends up in the same result. I have not altered the file in any way, this exact file has worked in the past [in fact, earlier today]. I have the ImageSearchDLL.dll in the same folder, everything is in order. I can't figure out what would be stopping it, any ideas? lol
Whenever I try to start ImageSearch.au3 it pops up for about half a second then disappears. I try compiling it and it ends up in the same result. I have not altered the file in any way, this exact file has worked in the past [in fact, earlier today]. I have the ImageSearchDLL.dll in the same folder, everything is in order. I can't figure out what would be stopping it, any ideas? lol
Like Kotarou said, ImageSearch.au3 only provides an API that allows for the detection of images on the screen. Although it is possible to build a bot inside of ImageSearch.au3 this is not correct usage, create a new .au3 file and add the following:
Code:
#include <ImageSearch.au3>
Global $Paused
HotKeySet("{Pause}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
While 1
Send ("{CTRLDOWN}")
Sleep (500)
MouseClick ("left")
Sleep (500)
MouseClick ("left")
Sleep (500)
MouseClick ("left")
Sleep (500)
Send ("{CTRLUP}")
Sleep (5500)
Send("{LALT down}")
$x1=0
$y1=0
$result = _ImageSearch("Gold.jpg",1,$x1,$y1,97)
if $result=1 Then
MouseMove($x1,$y1,3)
MouseClick("left")
Sleep(3000)
EndIf
$x2=0
$y2=0
$result2 = _ImageSearch("FomorScroll.jpg",1,$x2,$y2,97)
if $result2=1 Then
MouseMove($x2,$y2,3)
MouseClick("left")
Sleep(1500)
EndIf
WEnd
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit 0
EndFunc
The above was my first bot, I could not post any other source since my new bots are Under-Ground.
Speaking of bot Source:
Quote:
Originally Posted by Dark - Sora
My software (including underground) may be posted on elitepvpers.com, I do not care and legal action will not take place. The Terms of Service has been since modified to allow ElitePvPers staff the right to sell and view the source code for all of my software as well.
Problem: ImageSearch 11/22/2010 - AutoIt - 10 Replies Hallo, ich wollte gerne das ImageSearch (http://www.elitepvpers.com/forum/metin2-guides-tem plates/123505-guide-autoit-imagesearch.html) von AutoIt probieren.
Dies ist mein Script:
#include <ImageSearch.au3>
$x1=0
$y1=0
$result = _ImageSearch("test.png",1,$x1,$y1,0)
if $result=1 Then
MsgBox(0,"Geklappt!")
ImageSearch? 01/11/2010 - AutoIt - 4 Replies Hey,
kann einer von euch, einfach für einen Anfänger erklären, wie man mit Autoit die Funktion "ImageSearch" benutzt?
Thx für eure Antworten!
Imagesearch Metin2 01/04/2010 - AutoIt - 5 Replies Hey,
ich hab eine Idee, die ich aber nicht umsetzten kann.
Es gibt doch die sehr nette ImageSearch Funktion.
Was ich mir gedacht habe:
Wenn z.b. img1.jpg auftaucht soll er daruf klicken oder wie hier unten im beispiel es "wegwerfen":
http://www.imagebanana.com/img/7jgcyl97/imagesear chprob.jpg
Kann mal jemand ein Codeschnipsel geben der Folgendes macht:
Desktop absuchen nach img1.jpg.
True= darauf klicken
Imagesearch - Return 12/31/2009 - AutoIt - 7 Replies Hey,
wollte mal die ImageSearch von AutoIT ausprobieren, aber es gibt bei mir immer folgenden Error:
...\AutoIt3\Include\ImageSearch.au3 (40) : ==> Subscript used with non-Array variable.:
if $result="0" then return 0
if $result^ ERROR
>Exit code: 1 Time: 18.449
Ehrlich gesagt hab ich schon ein Paar sachen versucht, aber es klappt derzeit nicht.
Imagesearch Fehler ! 08/05/2009 - AutoIt - 3 Replies Guten Tag ,
ich habe vor gehabt etwas mit Imagesearch zu machen nur findet er das bild bzw den bildausschnitt nicht-,-
Hier mein Code :
#cs -------------------------------------------------- --------------------------
AutoIt Version: 3.3.0.0
Author: myName