Hey guys :)
So i recently wanted to start playing around with autoit and ImageSearch,
Heres the code:
When it fails i get this message: >"E:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\Christian\Dropbox\My Autoclicker\AcceptScript\SearchSomething.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 :)
So i recently wanted to start playing around with autoit and ImageSearch,
Heres the code:
Code:
#include <ImageSearch.au3>
HotKeySet("{F8}", "checkForImage")
global $y = 0, $x = 0
Func checkForImage()
Local $search = _ImageSearch("checkImage.bmp", 0, $x, $y, 0)
If $search = 1 Then
MouseClick($x, $y, 10)
EndIf
EndFunc
while 1
sleep(200)
WEnd
"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 :)