Jump to content
Sign in to follow this  
blender

Is there a way to find some strings on a dialog box?

Recommended Posts

blender

Hi, all

I have to deal a dialog box which could have two different messages. Different action will be performed depending on which message is displayed on the dialog box. So is there a way to detect strings on a dialog box?

Thanks

Share this post


Link to post
Share on other sites
DW1

either with the autoit window info tool (Ctrl-F6 in scite4autoit) you could try to get the text. If that returns no help, then search for OCR.

Share this post


Link to post
Share on other sites
blender

either with the autoit window info tool (Ctrl-F6 in scite4autoit) you could try to get the text. If that returns no help, then search for OCR.

Thanks for the reply. I would like to let my script written in autoit to find the message. Is there a way to do that?

Share this post


Link to post
Share on other sites
enaiman

Thanks for the reply. I would like to let my script written in autoit to find the message. Is there a way to do that?

danwilli gave you the exact answer, it is all you need - it is "the way"

either with the autoit window info tool (Ctrl-F6 in scite4autoit) you could try to get the text. If that returns no help, then search for OCR.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites
Gestalt

Hi, all

I have to deal a dialog box which could have two different messages. Different action will be performed depending on which message is displayed on the dialog box. So is there a way to detect strings on a dialog box?

Thanks

That depends on the type of dialog box. I get text from dialog boxes all of the time from different applications. WinGetText() will work in this case. If it is a Microsoft dialog box, you may be out of luck.

Share this post


Link to post
Share on other sites
PsaltyDS

either with the autoit window info tool (Ctrl-F6 in scite4autoit) you could try to get the text. If that returns no help, then search for OCR.

danwilli: The Cassandra of AutoIt -- He has told them the answer... but they will not believe! If only they would run Au3Info.exe, they could have the answer themselves! But no. They code in a dark gloom of ignorance.

:P


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×