Jump to content

noob command suggestions


funnydawg
 Share

Recommended Posts

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

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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

  • Moderators

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 :evil: to reduce the code size. But let us cross that bridge when we get to it. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • 1 month later...

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 :huggles: to reduce the code size. But let us cross that bridge when we get to it. :D

M23

Link to comment
Share on other sites

  • Moderators

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.

M23

P.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.

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...