Jump to content

Finding a specific line of text


andrew01
 Share

Recommended Posts

Hey,

I need to find a fucntion that will look for specific text in a box. Im not sure if it would be ControlGetText. I have looked into it, but it doesnt look like it does what I am looking for. I just want a function that searches for a specific line of text every once and a while and comes back with true or false (depending on whether it was found or not).

Thank you in advance for your help.

Link to comment
Share on other sites

Hmm, I will look into that. Thank you. I think maybe would I could do is use ControlGetText, copy it into notepad or something, then use the StringinStr.

For that string function though, it needs to search for a string withing a specific string, not a window...

Is that the only function that does something like that? Is there one that can search for a string inside of a window (not another string)?

Link to comment
Share on other sites

Copy to notepad ? Eehm, why ? Just use ControlGetText on the control and store the text

returned in a variable, which you then pass on to StringInStr. It's possible to get the milk

without sucking it directly from the cow you see.

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