How to close a window that doesn't want to close?

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
rich333
Newbie
Posts: 3
Joined: Fri Jun 03, 2005 3:52 pm

How to close a window that doesn't want to close?

Post by rich333 » Wed Jun 15, 2005 10:45 pm

I am trying to shut down Firefox with MS but it frequently seems to freeze/crash and the closewindow command isn't sufficient to shut it down. Is there a way of "killing" a window somehow?

Thanks

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Jun 16, 2005 1:30 am

Check out http://www.mjtnet.com/forum/viewtopic.p ... ll+process

and/or do a Search on "kill process" (without quotes) in Macro Scheduler forum.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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

Post by support » Thu Jun 16, 2005 6:59 am

If CloseWindow doesn't work (the application may ignore the WM_CLOSE message coming from someone else) resort to simulating keystrokes and just have Macro Scheduler do what you do. I don't use FireFox so I'm not sure what the keystrokes are but it's probably something like ALT-fx as in most applications. In which case you do:

SetFocus>FireFox*
Press ALT
Send>fx
Release ALT
MJT Net Support
[email protected]

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Jun 16, 2005 2:08 pm

In addition to ALT-Fx, Firefox also uses generic ALT-F4 also works.

Code: Select all

SetFocus>FireFox*
Press ALT
Press F4
Release ALT
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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