Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Mabinogi
You last visited: Today at 03:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



ImageSearch will not work.

Discussion on ImageSearch will not work. within the Mabinogi forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2
Received Thanks: 0
ImageSearch will not work.

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
jaws908 is offline  
Old 12/03/2010, 21:17   #2
 
elite*gold: 0
Join Date: Mar 2010
Posts: 912
Received Thanks: 112
ImageSearch.au3 only provides an API... You'll need to create a script that includes ImageSearch and it's APIs
kotarou3 is offline  
Old 12/04/2010, 04:59   #3
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2
Received Thanks: 0
Ended up working around it... It just wasn't picking up images. But like I said, I worked around it :s Oh well.
jaws908 is offline  
Old 12/05/2010, 05:53   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 435
Received Thanks: 43
Sounds like you don't know what your doing...
razer951 is offline  
Old 12/05/2010, 07:47   #5
 
Snowe³'s Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 149
Received Thanks: 115
Quote:
Originally Posted by jaws908 View Post
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.
Snowe³ is offline  
Old 12/10/2010, 00:37   #6
 
elite*gold: 0
Join Date: May 2009
Posts: 7
Received Thanks: 0
Dark Sora, the bot indeed works but we attacks and kill the fox but ignore the gold.
HeartPulse is offline  
Old 12/14/2010, 03:36   #7
 
Snowe³'s Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 149
Received Thanks: 115
Quote:
Originally Posted by HeartPulse View Post
Dark - Sora, the bot indeed works but we attacks and kill the fox but ignore the gold.
For the bot to work you need to extract the attached files in the same folder as the bot.
Attached Files
File Type: zip ImageSearch.zip (44.3 KB, 16 views)
Snowe³ is offline  
Reply


Similar Threads Similar Threads
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



All times are GMT +1. The time now is 03:26.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.