Jump to content

question... find text on screen?


Golbez
 Share

Recommended Posts

is there a command that will find text on the screen and give its cords?

if there isnt can someone point me in the direction me trying to make a way to do it cause i have no clue how to do it...

Edit 1:

after more reserch i have found this: WinGetText

but it does not give the cords.....

Edit 2:

found this also but dont no if it will help... the text i want is from a webpage.. but idk yet ;)

#include <IE.au3>

$sURL = "www.YourWebpage.com"
$sSearch = "Your Search String"

$oIE = _IECreate ($sURL)
If StringInStr(_IEBodyReadText($oIE), $sSearch) Then
    MsgBox(0 ,"Success","The text was found.")
Else
    MsgBox(0 ,"Error","The text was NOT found.")
EndIf
Edited by Golbez
Link to comment
Share on other sites

or you can make a

$word = inputbox("word", "Please input a word to search for")

Send("{ctrldown}")

Send("f")

Send("{Ctrlup}")

Send($word)

(I htink thats the command for ctrl+f, if somehting else place there)

i could do this but it wouldnt work for what i need... this wouldnt find a word that i was looking for.. it would just say the word i put in..

Link to comment
Share on other sites

i could do this but it wouldnt work for what i need... this wouldnt find a word that i was looking for.. it would just say the word i put in..

no, not at all, go to any webpage and hit control and f at the same time, a window pops up, you enter a word in it and it searches for that word on that page!

...or maybe im misunderstanding you

Link to comment
Share on other sites

no, not at all, go to any webpage and hit control and f at the same time, a window pops up, you enter a word in it and it searches for that word on that page!

...or maybe im misunderstanding you

well yeah that would work... but you dont need an inputbox lol...

you would just have to send ctrl f then send what i would be looking for. but..

i cant have a box opening this would be dumb none the less it would impractable for a bot ;)

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