WindowAction ???

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
sprit01
Newbie
Posts: 3
Joined: Tue Mar 15, 2005 7:31 am

WindowAction ???

Post by sprit01 » Thu Mar 17, 2005 5:53 pm

I want to close specil windows which title is "Cannot find page*"

I just used windowAction>3,Cannot find page*

but it was not working..

do you know how to do it?

I also used Closewindow>Cannot find*

however, it didn't work as well

please help me~~
HI

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Thu Mar 17, 2005 10:27 pm

Which application?
Is/are the window/windows mentioned in your post a popup dialogbox?
Any sample script?
Any error message?

Please clarify the mysteries. Thanks.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Fri Mar 18, 2005 7:51 am

From the manual:

"Please note: this command simply sends the internal Windows WM_CLOSE message to the target window. This is the internal instruction to tell the window to close. However, applications all interpret this instruction differently and there is no guarantee that it will cause the window to close. If CloseWindow fails to close the window we recommend simulating user input to close it instead (e.g. by sending ALT-F4 or equivalent). "

This applies to CloseWindow and WindowAction>3

Suspect your window needs more than just a WM_CLOSE to be sent to it and you will need to actually simulate the user closing it - such as sending ALT-F4 or similar.
MJT Net Support
[email protected]

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