whatthe Posted June 8, 2006 Posted June 8, 2006 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?
Nomad Posted June 8, 2006 Posted June 8, 2006 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
fu2m8 Posted June 8, 2006 Posted June 8, 2006 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 .
exodius Posted June 8, 2006 Posted June 8, 2006 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?
whatthe Posted June 10, 2006 Author Posted June 10, 2006 Like i said, before i wanted it to read a number and do soemthing once it reads that number
Paulie Posted June 10, 2006 Posted June 10, 2006 (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 June 10, 2006 by Paulie
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