boxme Posted September 22, 2015 Posted September 22, 2015 I'm trying to find a way to locate an image that can appear at different sizes. I've successfully used the ImageSearch function to locate the image, but only if the dimensions of the image I input exactly matches what they're searching for on the screen. If the image I input is just a tiny bit bigger or smaller than ImageSearch is unable to find it. Does anyone have experience with this problem?
JohnOne Posted September 22, 2015 Posted September 22, 2015 It's not a problem it's what imagesearch was designed to do.get both size images, and if you do not find one, search for the other. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
boxme Posted September 22, 2015 Author Posted September 22, 2015 My issue is the image size could be anything depending on how the user has their monitor and the application set up. I don't have a specific 5-10 sizes I know to search for, the image could potentially be 10,000 slightly different sizes.
Moderators Melba23 Posted September 22, 2015 Moderators Posted September 22, 2015 boxme,Then I would suggest that using ImageSearch is not the way to go. Other options are available - and often more reliable - but exactly what would suit depends very much on what you are trying to automate.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
boxme Posted September 22, 2015 Author Posted September 22, 2015 Thanks, are there any specific methods you'd suggest I take a look at and try out?
Moderators Melba23 Posted September 22, 2015 Moderators Posted September 22, 2015 boxme,if the elements you are trying to click are controls, then the Control* commands could be what you need. if the app has an API then you might be able to hook into that. But without more details, it is hard to be precise.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
boxme Posted September 22, 2015 Author Posted September 22, 2015 Unfortunately they are not controls and the app doesn't have an API. I'm going to try and see if I can do something with PixelSearch. Thanks for the help!
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