![]() |
[AutoIT] ImageSearch failing on me? Halp pls
Hey guys :)
So i recently wanted to start playing around with autoit and ImageSearch, Heres the code: Code:
#include <ImageSearch.au3>"E:\Program Files (x86)\AutoIt3\Include\ImageSearch.au3" (40) : ==> Subscript used on non-accessible variable.: if $result[0]="0" then return 0 if $result^ ERROR >Exit code: 1 Time: 2.425 Either i did something wrong in the code, or my autoit and installing of imagesearch is fk'd :) |
Did you have the ImageSearch.dll in the same folder as your script?
|
Actually its name is ImageSearchDLL.dll not ImageSearch.dll. Look it up in the UDF, normally it contains dll before dll.
|
I do have the file ImagesearchDLL.dll in my folder, what else can it be?
|
The ImageSearch.au3 contains an error.
Code:
;=============================================================================== |
Every week ... one person ... ask about this problem ... please use the search funktion. It is NOT funny, every week to type the same shit.
|
There are 3 possible mistakes:
1) One of your files doesn´t exist (in the expected folder) Check, that your files
2) Access Denied Possibly the Script-File have no read-access to your files. 3) Your Script runs in x64 mode Try to run your script in x86-mode. |
#RequireAdmin ; <= Nicht vergessen
#include <ImageSearch.au3> HotKeySet("{F1}", "Start") HotKeySet("{F2}", "Pause") HotKeySet("{F3}", "Stop") $x1=0 $y1=0 Func Start() While 1 ;Täglicher Einloogbonus $result = _ImageSearch("99.bmp", 1, $x1, $y1, 60) If $result = 1 Then $result = _ImageSearch("98.bmp", 1, $x1, $y1, 60) ;<=er klickt immer auf das Bild If $result = 1 Then MouseClick("left", $x1, $y1, 1) Sleep(1000) EndIf EndIf ;suche nach 2 Bildern Gleichzeitig $result = _ImageSearch("Questsabholen.bmp",0,$x1,$y1,60) if $result=1 Then MouseClick("left",$x1,$y1,1) Sleep(1000) EndIf $AS = PixelSearch(807, 137,807, 137,0xFFF0C4,20);Quest ;suche nach farben If not @error Then $AS = PixelSearch(811, 162,811, 162,0xFFECC0,20);Quest If not @error Then $AS = PixelSearch(1187, 375,1187, 375,0xF8EF94,20);Abholen If not @error Then $AS = PixelSearch(1187, 375,1187, 375,0xF8EF94,20);Abholen If not @error Then MouseClick("left",1187, 375,1) sleep(1000) EndIf EndIf EndIf EndIf WEnd While 1 Sleep(100) WEnd Func Pause() sleep(36000000) EndFunc Func Stop() Exit EndFunc ;==>Stop Viel Spaß damit!:handsdown::handsdown: ; ("99.bmp", 1, $x1, $y1, 60) 1 heist oben links vom Bild klickt er und 0 ist die klickt er in die Mitte |
| All times are GMT +1. The time now is 16:29. |
Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.