Roflcopter234 Posted July 8, 2019 Share Posted July 8, 2019 #include <ImageSearch2015.au3> #AutoIt3Wrapper_UseX64=y HotKeySet("s", "start") HotKeySet("e", "stop") While 1 Sleep(100) WEnd func stop() Exit EndFunc Func start() Global $x, $y Do $iResult = _ImageSearch("C:\Users\luca_\Desktop\hc\Unbenannt.PNG", 1, $x, $y, 0) If $iResult <> 1 Then Sleep(1000) Until $iResult = 1 If $iResult Then MouseMove($x,$y,10) Exit EndIf EndFunc I just wrote this code for trying out ImageSearch, but it doesnt find the picture (The picture is just the Spotify logo in my task bar). I already tried other pictures but always the same. The program doesnt find anything. I know it is searching because "+>@OSArch=X64 @AutoItX64=1 therefore using x64 ImageSearch DLL" gets written on the console every second. Can anybody help me? Link to comment Share on other sites More sharing options...
Developers Jos Posted July 9, 2019 Developers Share Posted July 9, 2019 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nine Posted July 9, 2019 Share Posted July 9, 2019 Use latest version and study the example carefully : Roflcopter234 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Roflcopter234 Posted July 9, 2019 Author Share Posted July 9, 2019 Thanks, I didnt know that there is a newer version. It is working now 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