How to close all taskbar windows

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Cluracan
Newbie
Posts: 1
Joined: Wed Aug 02, 2006 11:43 am

How to close all taskbar windows

Post by Cluracan » Wed Aug 02, 2006 11:52 am

Anyone know the code to close ALL windows (ie: photoshop, IE, Notepad, etc) in the taskbar? And also all pop-up, alert, error ... windows?
I tried with a sequence of ALT+F4 command..but when all windows are closed, another ALT+F4 close the Windows Work Session.

Thank you very much.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Aug 02, 2006 12:44 pm

There's probably a more technical approach, but this works:

Code: Select all

Label>CloseEm
Press ALT
Press F4
Release ALT
Wait>0.5
IfWindowOpen>Shut Down Windows
  Press Esc
  Goto>AllClosed
Endif
Goto>CloseEm
Label>AllClosed
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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