A Macro to Shutdown or Restart Windows

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

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

A Macro to Shutdown or Restart Windows

Post by Marcus Tettmar » Sat Jun 07, 1997 11:00 pm

Contributed By: Marcus Tettmar [email protected]
Submitted On: 08/06/97
For Windows 95/98 only.

This script has been superseded by ShutDownWindow command. See next post.

Press CTRL
Press Esc
Release CTRL
Wait>1
Send Character/Text>u
Wait>1
Send Character/Text>r
Wait>1
Send Character/Text>y

This example restarts windows. To shutdown, change the r to an s on the
7th line.
Last edited by Marcus Tettmar on Thu Jan 17, 2008 4:18 pm, edited 1 time in total.

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

Post by Marcus Tettmar » Fri Feb 10, 2006 8:55 pm

Since 7.2 Macro Scheduler has had a ShutDownWindows command which makes this much simpler.
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
cron
Sign up to our newsletter for free automation tips, tricks & discounts