Sign in to follow this  
Followers 0
NightFury

Identifying a word

13 posts in this topic

Hello,

I know this has been discussed already, but I just couldn't find the answer I was looking for.

I want the script to identify if the word "Axl" or any other word I want search for is exist on the screen and show a Msgbox after that.

Here is an example: '>

I heard about " OCR " but I can't actually understand how to script it on a small word.

Any help is welcomed.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If it is on your screen and not easily read from a control (Edit, Input, etc), then you need to use OCR.

There were free versions available last I looked (some years ago), and some may be command-line driven or communicated with using Stdout.

Where is the text coming from, as there may be other ways to get it from the source, bypassing the screen?

Edited by TheSaint

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

If it is on your screen and not easily read from a control (Edit, Input, etc), then you need to use OCR.

There were free versions available last I looked (some years ago), and some may be command-line driven or communicated with using Stdout.

Where is the text coming from, as there may be other ways to get it from the source, bypassing the screen?

Coming from a picture with many different words, like an article or story or something.

I just wrote that " Axl " word with only 3 characters to reduce the effort.

Share this post


Link to post
Share on other sites

Coming from a picture with many different words, like an article or story or something.

I just wrote that " Axl " word with only 3 characters to reduce the effort.

So, is that text showing on screen as an image or a document?

And what is creating it?

Is it protected by DRM?

Those elements will tell you what options you have.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

NightFury,

Still trying to automate that game? ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites

So, is that text showing on screen as an image or a document?

And what is creating it?

Is it protected by DRM?

Those elements will tell you what options you have.

Showing as an image.

It created with a list of names for example, and I want to find a specific name.

I don't know what do you mean by DRM but I don't think so as it's a normal image.

Share this post


Link to post
Share on other sites

NightFury,

Still trying to automate that game? ;)

M23

No.

I wasn't know about that rule, and I'm sorry for it, but now it such different thing I looking for.

I'm trying to make a small OCR which help me in my project.

Share this post


Link to post
Share on other sites

NightFury,

Fine. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites

Showing as an image.

It created with a list of names for example, and I want to find a specific name.

I don't know what do you mean by DRM but I don't think so as it's a normal image.

You are still not saying where the image is coming from, what created it?

DRM is Digital Rights Management, as in an ebook (pdf, epub file, etc), but also anything with copyright protection.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

You are still not saying where the image is coming from, what created it?

DRM is Digital Rights Management, as in an ebook (pdf, epub file, etc), but also anything with copyright protection.

No, not pdf, etc..

Just normal image created by photshop or paint.

Share this post


Link to post
Share on other sites

Up

Up Up

Up

Share this post


Link to post
Share on other sites

Help me please

Share this post


Link to post
Share on other sites

I think everyone is waiting for your explanation of this image you are trying to mess around with. ;)

1 person likes this

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
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
Sign in to follow this  
Followers 0