Mo0C0w Posted December 30, 2019 Share Posted December 30, 2019 Hey guys! I have this throughout all of my scripts. When I want to trigger an event I use image search so when image search = 1 than the event would start. The problem is everything works, but when the image is found, it clicks it. I just want it to look for the image and go on when it is found. I do not want it to click. Any help would be great!! Here is a simple one called static_window #include <ImageSearch.au3> #include <ScreenCapture.au3> #include <AutoItConstants.au3> $x = 0 $y = 0 Func STATIC_WINDOW() sleep(400) Do $search = _imageSearch('static inner window.bmp',0, $x, $y, 0) sleep(200) Until $search = 1 return 1 EndFunc As you can see I have no mousemove or mouseclick, but it clicks on the image anyways Link to comment Share on other sites More sharing options...
markyrocks Posted December 30, 2019 Share Posted December 30, 2019 (edited) My guess would be that the click is part of the _imageSearch() function. To avoid it go find the actual function, edit the click out. Edited December 31, 2019 by markyrocks Der Spoiler "I Believe array math to be potentially fatal, I may be dying from array math poisoning" Link to comment Share on other sites More sharing options...
Mo0C0w Posted December 31, 2019 Author Share Posted December 31, 2019 Thank you for the suggestion. I had a look at the actual script for image search. It doesn't seem like there is any mouseclick function in it. Link to comment Share on other sites More sharing options...
Nine Posted December 31, 2019 Share Posted December 31, 2019 You may want to use a more recent version of ImageSearch. Google version 2018... “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...
markyrocks Posted December 31, 2019 Share Posted December 31, 2019 (edited) can you post the complete script? Edited January 1, 2020 by markyrocks Spoiler "I Believe array math to be potentially fatal, I may be dying from array math poisoning" 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