SoyArcano Posted March 26, 2017 Share Posted March 26, 2017 I'm trying to compile a autoit program and show me all the time this: Linea12 error opening the file include imagesearch.au3. Line take me error: #include <ImageSearch.au3> I can't include this library in my autoit program????? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 26, 2017 Moderators Share Posted March 26, 2017 SoyArcano, Have you downloaded the UDF and placed it somewhere where AutoIT can find it? The Adding UDFs to AutoIt and SciTE tutorial in the Wiki might be a useful read. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
SoyArcano Posted March 26, 2017 Author Share Posted March 26, 2017 (edited) Ok so i must to download it and use it. About scite can be included but i must to include in a registry key or something like that i read in the guide not sure. I was thinking if include in the include folder would be enough but i was wrong. Edited March 26, 2017 by SoyArcano Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 26, 2017 Moderators Share Posted March 26, 2017 SoyArcano, Placing the downloaded UDF into the standard "Include" folder will suffice , but best to do as the Wiki tutorial suggests and create your own folder. M23 P.S. And please answer the PMs that you have received from the Moderation team as soon as possible. Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
SoyArcano Posted March 26, 2017 Author Share Posted March 26, 2017 (edited) I answered you about the problem.. i wait this answer clear everything.. and i tried to include the library only since include but like you say not seems to be enough because now when i try use it return me other different errors so i think because i didnt include the library like say in the guide. only including since include folder. If i include only in include return me missing separator character before keyword. Sorry again for all and i hope some help about this .thx Edited March 26, 2017 by SoyArcano Link to comment Share on other sites More sharing options...
aa2zz6 Posted March 26, 2017 Share Posted March 26, 2017 I actually helped someone get there image search working some time ago.. I'll post the forum below. Post 2 has a zip file with a tester script, along with the dll, and post 4 has the Imagesearch.au3 that needs to be placed in this directory C:\Program Files (x86)\AutoIt3\Include Link to comment Share on other sites More sharing options...
SoyArcano Posted March 26, 2017 Author Share Posted March 26, 2017 wow thx very clear. the only thing the dll is the file or other file? sorry but i'm little newbie. Anyways the problem of library is solved i included and i can use now imagesearch. very helpful Link to comment Share on other sites More sharing options...
aa2zz6 Posted March 26, 2017 Share Posted March 26, 2017 (edited) The ImageSearchDLL.dll has to be in the same folder with the Check Image.au3 script. It doesn't go inside the include folder Edited March 26, 2017 by aa2zz6 Link to comment Share on other sites More sharing options...
SoyArcano Posted March 26, 2017 Author Share Posted March 26, 2017 (edited) Ok if i understand well sorry if i am slow to understand this. I put the library in include separately. And download your example with the dll to test it. So i only can test your program if i use how you uploaded it. But one small question. When i click over check image doesnt do nothing. Maybe because the program is not visible? Edited March 26, 2017 by SoyArcano Link to comment Share on other sites More sharing options...
aa2zz6 Posted March 26, 2017 Share Posted March 26, 2017 Download the file I've attached in this post and place it in your autoit directory. Usually it's in this directory .. directory C:\Program Files (x86)\AutoIt3\Include The folder will have a whole bunch of other stuff in it. See the picture below to understand ImageSearch.au3 Link to comment Share on other sites More sharing options...
SoyArcano Posted March 26, 2017 Author Share Posted March 26, 2017 Yeah i did that it's ok Link to comment Share on other sites More sharing options...
aa2zz6 Posted March 26, 2017 Share Posted March 26, 2017 When that Imagesearch.au3 has been included inside your autoit directory you can then download that Mapping.zip. When you unzip that you'll see the Check Image.au3 and the ImageSearch.DLL. The Check Image.au3 and the ImageSearch.DLL stays together. Place your images inside the Images folder.. Inside the Check Image.au3 you'll have to add your own information. Local $aIcons[2], $i ; [] << How many images we're looking for $aIcons[0] = @ScriptDir & "\Images\Image1.bmp" ; Change image1 to your image names $aIcons[1] = @ScriptDir & "\Images\Image2.bmp #include <ImageSearch.au3> #include <GDIPlus.au3> Global $y = 0, $x = 0 Global $i ArcMap_SideBar() Func ArcMap_SideBar() #include <ImageSearch.au3> Local $aIcons[2], $i $aIcons[0] = @ScriptDir & "\Images\Image1.bmp" $aIcons[1] = @ScriptDir & "\Images\Image2.bmp" For $i = 0 To UBound($aIcons) - 1 $result = _ImageSearch($aIcons[$i], 1, $x, $y, 20, 0) If $result > 0 Then MsgBox($MB_SYSTEMMODAL, "ArcGIS Desktop", "ArcGIS sidebar is active.", 10) ExitLoop Sleep(1000) EndIf Next EndFunc ;==>ArcMap_SideBar Link to comment Share on other sites More sharing options...
SoyArcano Posted March 26, 2017 Author Share Posted March 26, 2017 Ok i did that: However when i run the program doesnt show me the messagebox this is good or bad? Link to comment Share on other sites More sharing options...
aa2zz6 Posted March 26, 2017 Share Posted March 26, 2017 (edited) You'll need to narrow your picture search. For example, if your looking for the recycling bin you'll want to grab a small portion of the image. I'll include 2 images taken from the recycling bin. Edited March 26, 2017 by aa2zz6 Link to comment Share on other sites More sharing options...
SoyArcano Posted March 29, 2017 Author Share Posted March 29, 2017 But what does this program take my images and change them? My .exe compile fine i run it but i dont know if change the image or what changes do? sorry i'm newbie and sorry for revive the post. Link to comment Share on other sites More sharing options...
aa2zz6 Posted March 29, 2017 Share Posted March 29, 2017 The script doesn't change the pictures. It simply looks at the pictures and compares it against the desktop or an active application. If it's a match your function will run whatever is written in your function. Link to comment Share on other sites More sharing options...
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