Kyme Posted March 1, 2017 Share Posted March 1, 2017 Hello all Can anybody please post a zip with working imagesearch example and dll for windows 10 pro 64bit? i've tried almost all versions i've got and nothing, i end up with doing nothing for few minutes and after that it return 0 or returning 0. as i said, i have win 10 pro 64bit, i've tried 32 and 64 bit versions and nothing, as almost all versions have some errors and as i read they can be fixed with ctrl+t but honestly i've spent more then 5h searching a working version and nothing... i've set sciTE to run as admin, with #AutoIt3Wrapper_UseX64=n, all the combos i've tried nothing... can somebody post a zip with needed files and a simple example for win 10 64bit please, i will provide a png for test(a section of screenshot i've made) hopefully somebody would be kind to help me figure it out what i do wrong it's not first time i use this udf but this time i don't know what's going on...i hope that there is an version for win10 because i ended in a opinion that it don't work under win10 regards, emanuel Link to comment Share on other sites More sharing options...
aa2zz6 Posted March 2, 2017 Share Posted March 2, 2017 (edited) I can't recall but I believe I've used this script on one of our computers at work with a Windows 10 OS for mapping. Feel free to double check. #include <ImageSearch.au3> #include <GDIPlus.au3> Global $y = 0, $x = 0 Global $i ArcMap_SideBar() Func ArcMap_SideBar() 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 Mapping.zip Edited March 2, 2017 by aa2zz6 Link to comment Share on other sites More sharing options...
Kyme Posted March 2, 2017 Author Share Posted March 2, 2017 can you please also post ImageSearch.au3, it's missing in zip thank you 9 minutes ago, aa2zz6 said: I can't recall but I believe I've used this script on one of our computers at work with a Windows 10 OS for mapping. Feel free to double check. #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 Mapping.zip Link to comment Share on other sites More sharing options...
aa2zz6 Posted March 2, 2017 Share Posted March 2, 2017 (edited) Here you go. Make sure it's placed in the AutoIt3>Include folder Edit: I tested this on a VM window10 pro on my home PC and it's working. Let me know if you have any issues ImageSearch.au3 Edited March 2, 2017 by aa2zz6 Spelling errors :| Link to comment Share on other sites More sharing options...
Kyme Posted March 2, 2017 Author Share Posted March 2, 2017 (edited) thank you. i guess the problem it's from the dll, it seems that sometimes it founds the match sometimes not, i've tried on start button, few icons in an open folder with no success, even with tolerance 200(sometimes it returns 1 but the x y are false), but when i tried on my computer icon it worked, and i've tried multiple format for image bmp 256/24bit jpg,png, gif(with high tolerance due the detail decrease) for all tests the strange part is that every time when imagesearch it's called the taskbar flashes, i guess after all it is from dll or i am too dumb... here's the script i've used, maybe someone will have a clue that the heck it's going on with it. Edit: what kind of format for image did you used?i've tried them all what paint support and almost nothing. the taskbar flashes in your VM too? i mean a short flash?with 24bit bmp and tolerance 200 it works but x y are a little off, they go on next icon on the right. also, do you use the lastest version of autoit? Edit2: mistery solved, on my server with same OS works as oiled so i guess something it's messed up with my system thank you a lot sir, now i can peacefully sleep knowing the problem in the end i've used bmp 24 and worked, on my machine fail to do so regards, emanuel #AutoIt3Wrapper_UseX64=n #include <ImageSearch.au3> Global $y = 0, $x = 0 While 1 test() WEnd Func test() $Icon = @ScriptDir & "\1.bmp" $result = _ImageSearch($Icon, 0, $x, $y, 200, 0) If $result > 0 Then MsgBox(0, "found", $result) MouseMove($x,$y) Else MsgBox(0, "not found", $result) EndIf EndFunc Edited March 2, 2017 by Kyme Link to comment Share on other sites More sharing options...
tiye0405 Posted February 4, 2018 Share Posted February 4, 2018 Hello Im having the same problem even with your image search au3 I use Windows 10 64 bit and whenever i want to run my skript ( its literally just look for something on the desktop and move the mouse there ) autoit tells me this (i added the picture to the post) Ive had the same error with every other imagesearch i used, no fix i find seems to work. My image search is in autoit > include and my imagesearch.dll is in system 32 im just lost at this point Link to comment Share on other sites More sharing options...
aa2zz6 Posted February 4, 2018 Share Posted February 4, 2018 Hello tiye0405, I've attached the imagesearch files below. Follow this video so you install the dll into your system. For the example script above I would move them to this folder and include this piece of code at the top. Let me know if you don't get it working. #include <ImageSearch2015.au3> ImageSearch2015.zip tiye0405 1 Link to comment Share on other sites More sharing options...
tiye0405 Posted February 5, 2018 Share Posted February 5, 2018 Hey, Thanks alot it finally works, ive been looking for this for so long. Thank you! aa2zz6 1 Link to comment Share on other sites More sharing options...
randa Posted February 25, 2019 Share Posted February 25, 2019 Hello, When i run my script with the command Run Script (x64bits) it works by when i do it with the planned tasks the following error message comes : I try to do it with ImageSearch.dll 32bits and 64bits and versions of autoit 86, 64 and 32bits but it doesn't work. My script is : #include <ImageSearch.au3> shellexecute("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe","http://xxxxxxxxxxx") Sleep (10000) $x1=0 $y1=0 $result = _ImageSearch("NameImage.png",1,$x1,$y1,0) if $result=1 Then MouseClick("Left", $x1 + 50, $y1, 1) Sleep (5000) Send ("USERNAME") ElseIf msgbox(4,"blablabla","blablabla",10) EndIf $a1=0 $b1=0 $result = _ImageSearch("PasswordImage.png",1,$a1,$b1,0) MouseMove($a1,$b1,10) if $result=1 Then MouseClick("Left", $a1 + 150, $b1, 1) Sleep (5000) Send ("PASSWORD") EndIf $x1=0 $y1=0 $result = _ImageSearch("NameImage2.png",1,$x1,$y1,0) if $result=1 Then MouseClick("Left", $x1, $y1, 1) Sleep (5000) EndIf Can you help me to solve my issue ? Thank you a lot. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted February 25, 2019 Moderators Share Posted February 25, 2019 @randa You have now been asked several times to explain what you are doing to the Moderation team, as it appears you are attempting to bypass security measures on a site, which is against the forum rules. As you apparently don't want to answer, you will be unable to post on the forum until you PM me with an explanation. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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