Managing Message boxes of a desktop application

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
rraghul
Newbie
Posts: 10
Joined: Tue May 12, 2009 9:13 am

Managing Message boxes of a desktop application

Post by rraghul » Mon May 18, 2009 4:42 am

While scheduling a desktop application, i have a problem while handling message boxes.
The application is for a file loading process.
After completing the each load, it displays a message box(success or failure).
How i can handle these message boxes(i want to close these message boxes).

If any idea..please help me.

rraghul
Newbie
Posts: 10
Joined: Tue May 12, 2009 9:13 am

Post by rraghul » Mon May 18, 2009 5:32 am

While scheduling a desktop application, i have a problem while handling message boxes.
The application is for a file loading process.
After completing the each load, it displays a message box(success or failure).
How i can handle these message boxes(i want to close these message boxes). Also i have to get the title of the message box(ie.,Information or Error) to move the files to the specific success folder or to the Error folder.

If anyone have any ideas..please help me.

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

GetActiveWindow

Post by gdyvig » Mon May 18, 2009 2:17 pm

Hi rragbul,

This should work:

Code: Select all

WaitWindowChanged>timeout
//Check for WWC_RESULT for error handling

GetActiveWindow>message_title,X,Y
MessageModal>message_title:%message_title%

//Process the message

//Close the message (a visible window)
Let>WF_TYPE=2
CloseWindow>%message_title%

Gale

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts