I've been trying to get Image search to work with These images.
ImageShack® - Online Photo and Video Hosting
I have tried cropping it down to simply the (2700) potion, and shading in the background black, and white.
Code:
#include <ImageSearch.au3>
Opt('MouseCoordMode', 0)
Opt('PixelCoordMode', 0)
Opt('SendKeyDelay', 50); Default speed
HotKeySet('{END}', 'Quit')
HotKeySet('{F10}', 'Pause')
Global $Paused
Pause()
;Custom Loot
$pngLoc = "C:\Users\Demons-Online Stuff"
$totalItems = 1
Global $pick[$totalItems]
;Array of items to loot
$pick[0] = "Do-Card.png|50" ;png|Tolerance
;$pick[2] = "item3.png"i
Call ("Do-Cards")
Func DoCards()
$currentArrayItem = 0
$gX = 0
$gY = 0
for $i = 0 to ($totalItems - 1)
$array = StringSplit($pick[$i],"|")
$file = $array[1]
$accuracy = $array[2]
While _ImageSearch($pngLoc,$File,$gX,$gY,$accuracy)
MouseMove($gX, $gY, 3)
sleep(Random(75, 150))
MouseClick("left",$gX,$gY,1)
sleep (2000)
WEnd
Next
EndFunc
Problem is i don't know if its an issue with the image, or the code. i cant even get it to detect the original, or modded pics in paint...