funnydawg Posted December 19, 2009 Share Posted December 19, 2009 I have perused the help file - I know it contains the info I need but I dont know where to start. I want the script to recognize a change within a graphical window - so the item changing does not have an individual control key. When it notes the change to the graphic it activates. What are the commands I should be looking for in the helpfile? Any other general info tutorial posts out there? Thanks! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 19, 2009 Moderators Share Posted December 19, 2009 funnydawg,Sounds like you need PixelChecksum to me - "allows you to see if "something" has changed in a region - it does not tell you exactly what has changed" 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...
funnydawg Posted December 19, 2009 Author Share Posted December 19, 2009 Thank you - that is exactly what I was looking for! I know how to take a snapshot of the now changed area....but now I would like to compare the changed image to a half a dozen images I have on file and see which one matches. Eventually I would like to do both picture matching and OCR, but for right now I just want to compare pics reliably....can you suggest the commands for me to look into for this as well?Thank you again!funnydawg,Sounds like you need PixelChecksum to me - "allows you to see if "something" has changed in a region - it does not tell you exactly what has changed" M23 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 19, 2009 Moderators Share Posted December 19, 2009 funnydawg,One way to proceed is to store the checksums of the pictures you are seeking to match in variables and then use a Switch/Select structure like this:$iChecksum = PixelChecksum(Whatever_you _are_checking) Switch $iChecksum Case $iFirst_Checksum ; these are the stored checksums ; It matches this one Case $iSecond_Checksum ; It matches this one Case $iThird_Checksum ; It matches this one EndSwitchIf you have a seriously large number of comparisons to make, you need to think of arrays and loops to reduce the code size. But let us cross that bridge when we get to it. 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...
funnydawg Posted February 11, 2010 Author Share Posted February 11, 2010 This looks like it is going to work pretty darn well! Is there any generic OCR built in? Something that would read common twelve point Times New Roman font or similar? funnydawg, One way to proceed is to store the checksums of the pictures you are seeking to match in variables and then use a Switch/Select structure like this: $iChecksum = PixelChecksum(Whatever_you _are_checking) Switch $iChecksum Case $iFirst_Checksum ; these are the stored checksums ; It matches this one Case $iSecond_Checksum ; It matches this one Case $iThird_Checksum ; It matches this one EndSwitch If you have a seriously large number of comparisons to make, you need to think of arrays and loops to reduce the code size. But let us cross that bridge when we get to it. M23 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 11, 2010 Moderators Share Posted February 11, 2010 funnydawg,No, but search for OCR using the forum search engine at top right. There have been a number of OCR projects in AutoIt, although I believe all of them rely on an external DLL.M23P.S. When you reply please use the "Add Reply" button at the top and bottom of the page rather then the "Reply" button in the post itself. That way you do not get the contents of the previous post quoted in your reply and the whole thread becomes easier to read. 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...
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