IamKJ Posted March 27, 2017 Posted March 27, 2017 I have ran into some issues with image search. Every time I run the script, it never finds the image in the browser, but if I open the image directly on the desktop, it'll find it no problem. Why is this? Any way around it? Func ImageSearchFarm () Local $picture = 'C:\Users\Jammmesss\Desktop\AutoIt\New folder\Icon.png' Local $x1 = 0 Local $y1 = 0 Do $result = _ImageSearch($picture,1,$x1,$y1,0,0) ConsoleWrite ($result) until $result = 1; if $result=1 Then MouseMove($x1,$y1,50) else MsgBox (0,'MSG','End') EndIf EndFunc
SoyArcano Posted March 27, 2017 Posted March 27, 2017 First thing you must to include the library.. #include <ImageSearch.au3> But i dont know why when i run your example show me.. Subscript used on non-accesible variable.. did you got this message too or not?
spudw2k Posted March 31, 2017 Posted March 31, 2017 On 3/27/2017 at 2:14 PM, IamKJ said: Can be closed. Figured it out. It would be useful to the community to share how you solved it. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
IamKJ Posted April 1, 2017 Author Posted April 1, 2017 Just upped the tolerance a bit, somewhere between 50-100 is a good start, if there aren't too many images like the one you are searching for. spudw2k 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now