Sign in to follow this  
Followers 0
whatthe

Autoit Reading?

8 posts in this topic

Is it possible to make autoit to read something and do something after it reads the information?

For example:

I turn on a bot, when it sees a number "14" anywhere in a page im on, a message pops up like there's a number 14 on this page. And the font and colour of the number is the same as other texts, so the colour detect thing won't work.

Is this possible?

Share this post


Link to post
Share on other sites



Is it possible to make autoit to read something and do something after it reads the information?

For example:

I turn on a bot, when it sees a number "14" anywhere in a page im on, a message pops up like there's a number 14 on this page. And the font and colour of the number is the same as other texts, so the colour detect thing won't work.

Is this possible?

With enough working knowledge of the language and a good imagination, anything is possible. Start by looking into OCR's. Do a search on them in the forum here. They should give you a rough idea of how to begin.

Nomad :D


Share this post


Link to post
Share on other sites

Is it possible to make autoit to read something and do something after it reads the information?

For example:

I turn on a bot, when it sees a number "14" anywhere in a page im on, a message pops up like there's a number 14 on this page. And the font and colour of the number is the same as other texts, so the colour detect thing won't work.

Is this possible?

Are you trying to grab this number or text from a webpage??

If you are you might be able to use _INetGetSource (from the Beta version) to grab the source of the URL and then use some of the string functions to look for the strings your after. Never done it myself but in theory (in my head anyway) it should be possible :D .

Share this post


Link to post
Share on other sites

Is it possible to make autoit to read something and do something after it reads the information?

For example:

I turn on a bot, when it sees a number "14" anywhere in a page im on, a message pops up like there's a number 14 on this page. And the font and colour of the number is the same as other texts, so the colour detect thing won't work.

Is this possible?

What page are you wanting to find this number/whatever on?

Share this post


Link to post
Share on other sites

Like on any webpages.

Share this post


Link to post
Share on other sites

Like i said, before i wanted it to read a number and do soemthing once it reads that number

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

"WinGetText"??!!

Edit: To Clarify

Opt("WinTitleMatchMode",2)

While 1
If WinExists("- Mozilla Firefox") Then
$Text1=WinGetText("- Mozilla Firefox")
If Stringinstr($Text1, "14") then
MsgBox(0, "Here", "There is a ""14"" On this Page")
Else
Msgbox(0, "Not Here", "No ""14s"" on this page
EndIf
EndIf
Wend

Something like that

Edited by Paulie

Share this post


Link to post
Share on other sites

great example paulie

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