i get a wierd problam wani try use it
this is the code i use to summon the func
it need to wait until the image apper or stop wan i preass a button
Do
sleep(5000)
$oka = _ImageSearchArea(@ScriptDir &"\image\sroOn.BMP",1,38,95,186,122,$x1,$y1,0)
Until $oka = 1 or GUIGetMsg() = $Stop
this is the error
C:\Program Files\AutoIt3\Include\ImageSearch.au3 (40) : ==> Subscript used with non-Array variable.:
if $result[0]="0" then return 0
if $result^ ERROR
i attach the