kyuzumaki Posted February 12, 2013 Posted February 12, 2013 (edited) I am automating remote machines through a vnc client. To detect menu screens I initally tried using tesserat to read the text but this proved very slow and outputs were too variable. I moved to using pixel checksum on specific areas of the screen to determine the scripts location in the menu. This works most of the time..My issue is that even with a very good VNC connection there are occasional small artifacts which cause Pixelchecksum to produce different values. I was trying to find a more imprecise way to compare the regions. Ideally a comparison where I could provide and accuracy value such as 98% allowing upto 2% of the region to contain artifact.I could create a pixel array of the region and compare to a perfect sample and produce an output of the percentage match. I think coding my own version is likely to add significant delay into the script so was hopeing there was some library or function I've missed that already does this or something similar.Thanks KyuEDIT: I found this basically the implementation of my idea, still would like a faster way Edited February 12, 2013 by kyuzumaki
Moderators Melba23 Posted February 12, 2013 Moderators Posted February 12, 2013 kyuzumaki , Manadar wrote a UDF to read pixels from a screen shot in memory - perhaps that might be useful? 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
kyuzumaki Posted February 12, 2013 Author Posted February 12, 2013 Had half finished my own method that UDF made it run over 100x faster! Thanks!
Moderators Melba23 Posted February 12, 2013 Moderators Posted February 12, 2013 kyuzumaki, Great news. Glad I could help. 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
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