# Tasks

MACRO1:
START: C:\WINDOWS\Notepad.exe
SEND: The new AutoMate 3.6 has a plethora of new features, including...~~- Enhanced logging capabilities~- New ways to handle late or incomplete tasks~- New easier to use help~- New Helpful Hints~~...It also has built-in Internet functions to make~unattended on-line work a snap!~And a "Recorder" that allows you~to record and play back mouse ~and keyboard events in any of your macros!~
PAUSE: 12
SEND: ~~~Starting WordPad...Please Wait...~~
PAUSE: 2
START: C:\WINDOWS\Write.exe
PAUSE: 20
FOCUS: Document - WordPad
SEND: It can send keystrokes and DDE commands to any open app on your system!...~
PAUSE: 5
FOCUS: Untitled - Notepad
SEND: ...and even switch between any open window by using the window title...~
PAUSE: 5
FOCUS: Document - WordPad
SEND: You can even play .wav sounds at any time - like this...~
PLAY: C:\WINDOWS\MEDIA\The Microsoft Sound.wav
PAUSE: 5
FOCUS: Untitled - Notepad
SEND: AutoMate can also shut down and restart Windows...~
PAUSE: 2
SEND: But we won't do that right now!~
PAUSE: 5
SEND: We'll just shut down Notepad!~
PAUSE: 2
SEND: %{F4}n~
FOCUS: Document - WordPad
SEND: ~~And WordPad!...~
PAUSE: 5
SEND: %{f4}n~

DETAIL:
Make sure that the files notepad.exe, and write.exe are in your windows path.  If they are not, edit the procedure's macro and modify the paths for the steps in the macro that launch these two programs.


