Jump to content
dhanraj

How to get the position of a string on a window (not browser window)?

Recommended Posts

I want to get the position of a text on the window based on which certain actions needs to be taken. I tried WinGetText() but it is not serving the purpose. 

Can someone help me out here?

Share this post


Link to post
Share on other sites
6 minutes ago, dhanraj said:

Can someone help me out here?

Post your code, so we can help you :)
By the way, welcome to the AutoIt forums :welcome:


Click here to see my signature:

Spoiler

Thoughts:

  • I will always thank you for the time you spent for me.
    I'm here to ask, and from your response, I'd like to learn.
    By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

ALWAYS GOOD TO READ:

 

Share this post


Link to post
Share on other sites

Hopefully the text you want to look for is in a specific control, as that would be rather simple using the array returned from ControlGetPos()

If the text you are looking for is only part of a big edit box, or blob of text then as Nine said, you will need OCR.  I posted something I did for this here:  google tesseract ocr


hmm... I guess I have to have a signature...

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

×
×
  • Create New...