Jump to content
Sign in to follow this  
abhi

Reading Message from a Message Box

Recommended Posts

abhi

All,

I am trying to find a way to capture the message from a dialog box before I Send a command to close the message box. Can anybody please shed some light on it ?

To illustrate my point let me give an example. After editing a new txt file in Notepad, if we try to close Notepad without saving it's contents, we are prompted with the stereotypical dialog, saying ,"DO you want to save changes..." with 3 buttons Yes No Cancel.

I am trying to write a script which will help me capture that message.

Thanks

Share this post


Link to post
Share on other sites
BillLuvsU

WinGetText( ). Your best friend for this situation.


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites
abhi

Thanks a lot.

I wanted to reroute the captured data to STDOUT? How would I do that. ConsoleWrite doesn't seem to work?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.