fork4k Posted May 27, 2009 Posted May 27, 2009 ImageSearch.au3 not work under Windows 7 x64 if AutoIt3_x64.exe used! ERROR Line 40 ...ImageSearch.au3 if $result[0]="0" then return 0 if $result^ ERROR Error: Subscript used with non-Array variable If run under AutoIt3.exe - all ok! I tried running it using autoit3 and autoit3_x64 on windows 7 rc, and got the aforementioned error in both cases. Any suggestions?
ending Posted June 30, 2009 Posted June 30, 2009 Props to my man. Works great. I thought I was having problems, but I didn't notice that the image I was searching for had a semi-transparent background and was different everytime. Thankfully I was able to increase the threshold and it worked. Good work!
ending Posted June 30, 2009 Posted June 30, 2009 (edited) ImageSearch.au3 not work under Windows 7 x64 if AutoIt3_x64.exe used! ERROR Line 40 ...ImageSearch.au3 if $result[0]="0" then return 0 if $result^ ERROR Error: Subscript used with non-Array variable If run under AutoIt3.exe - all ok! I tried running it using autoit3 and autoit3_x64 on windows 7 rc, and got the aforementioned error in both cases. Any suggestions? The variable $result is not an array. It is simply 1 or 0. I'm running Windows 7 RC x64 and AutoIt x64--no problems. Try this: if $result = 1 then msgbox(0,"Result","Found!") else msgbox(0,"Result","Not Found!") endif Edited July 2, 2009 by ending
sugarcl Posted August 14, 2009 Posted August 14, 2009 Hey guys, the tool is great. I have a problem where in certain cases the image is found and it isn't in certain cases. I've created an ImageSearch() function that calls the .dll every time. The arguments are a relative path such as /automation/Images. The problem that I have encountered is that sometimes this relative path works and sometimes it doesn't. It there a way of knowing where the .dll is looking for the image??? Thanks in advance?
Zzxxcv Posted August 15, 2009 Posted August 15, 2009 HelloI have 2 images (images in post) but this images change background color on mouse over event, my question how i can find images position if i don't know was mouse over event or not ? - without mouse over event - with mouse over eventi probaly change ImageSearch.au3 like on this post #551948, but scipt interrupt and ask me to and task. tnx for help and sorry for noob question.
junkew Posted August 19, 2009 Posted August 19, 2009 hide the mouse before you search or get the mouse location move the mouse to position 1,1 do the search move the mouse back to the original location FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Horrendous Posted September 14, 2009 Posted September 14, 2009 Looks great!! Which tool do you usually use to get bmp you want to search?
Zedna Posted September 14, 2009 Posted September 14, 2009 Looks great!! Which tool do you usually use to get bmp you want to search?Alt+PrintScreen --> MS Paint --> Ctrl+Vor_ScreenCapture_Capture() Resources UDF ResourcesEx UDF AutoIt Forum Search
Horrendous Posted September 15, 2009 Posted September 15, 2009 Alt+PrintScreen --> MS Paint --> Ctrl+Vor_ScreenCapture_Capture()thx
Zedna Posted September 16, 2009 Posted September 16, 2009 (edited) Hey. Great library. I just made some chages, so i can search any HBitmap, too ( _WinAPI_LoadImage, _GDIPlus_BitmapCreateHBITMAPFromBitmap) ImageSearch.zip (659.4K) Number of downloads: //Edit: added speedshare mirror as requested by mortelrdv: http://www.speedshare.org/download.php?id=5B284B0413@ProgAndyAccording to this topic:#727331Can you please make modification to ImageSearch DLL so it can search for image given as hBitmap instead of its filename?With such modification you can place image to be searched to resources and search for it directly without need of extraction. Edited September 16, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
epicfail Posted September 20, 2009 Posted September 20, 2009 how would u be able to make it keep searching the screen 4 the pic if it dosnt find it it will search again till it finds it? and away to do it the other way it searches the screen if it finds it it searches again then when it cant find it it will do what i want it to do can that be done?
epicfail Posted September 23, 2009 Posted September 23, 2009 is there anyway to make it search the full internet window even if the pic isnt showing like it will scroll down and click on the image?
ttocszed Posted September 30, 2009 Posted September 30, 2009 this is a great include, this is making me write a macro to bee so much easier. it was working but now i come to get an error belo: C:\Program Files (x86)\AutoIt3\Include\ImageSearch.au3 (40) : ==> Subscript used with non-Array variable.: if $result[0]= "0" then return 0 if $result^ ERROR it was working then all of a sudden it doesn't work no more any help would be appreciated.
border Posted October 17, 2009 Posted October 17, 2009 ImageSearchDLL.dll got GDI object leak. call non stop _ImageSearchArea() and see how GDI object counter increased. After some time _ImageSearchArea() start return 0. Can some one fix this?
AndyG Posted October 17, 2009 Posted October 17, 2009 Hi, you could find a useful script at http://www.autoit.de/index.php?page=Thread&postID=110480#post110480 The Scriptname is PushTheButton and should do all what you like to do..... The Script makes a Screenshot of an Area (i.e. a Button) of your Screen, saves this Area to Disk and finds this "Picture" at the Screen or in a selected window and "clicks" it with the mouse (left,right, double....), if you search in a scrollable window, the script scrolls down in the window until it has found the Button. The Area can be selected by a zoomable window. You can use the Mousewheel to zoom in/out and resize the "Zoomwindow" by pressing either the Ctrl-key and Arrow-keys or use the mouse, there is a Mode for preventing "hilighting" a Button (or something else) and a Moviemode which is used to find an animated Button/Logo/Smilie or something like this..... The helpwindow/instructions and traymenu is actually in german language, but i try to make a selection to english. There is also a short demo which shows you to use the searchfunction in your own scripts. I used the prospeed.dll to find the "Buttons" very fast (<70ms at 1920x1080), but you dont need the dll, the program works also without it, a little slower ....but who cares^^. If you like imagesearch, take PushtheButton to make easily pics.... Andy
border Posted October 17, 2009 Posted October 17, 2009 Image_Search_Library can search with tolerance. Your script cant do this or can?
AndyG Posted October 18, 2009 Posted October 18, 2009 It could search with tolerance, its only a small change...but i've never used it, there is no reason for me. I never found a clickable, semitransparent button on a Website with an always changing background. The only reason that i could imagine would in pixelbots....but i dont neet that feature^^. But you could use ImageSearch for that. Andy
border Posted October 20, 2009 Posted October 20, 2009 (edited) Image_Search_Library got memory leak. I cant use it Edited October 20, 2009 by border
Recommended Posts