Event Actions

Alarm++ is even more powerful when you use events to run applications, batch files, or scripts. This is arguably the most powerful aspect of Alarm++ because an application can be a batch file or a script, which can do virtually anything in Windows.

You can download files and process them automatically. You can send messages to other machines on your network. You can start programs. You can open Windows folders. You can schedule backups. You can visit Web sites. You can download stock quotes, insert them into Excel, and calculate your current financial status. Anything you do manually on a regular basis can be automated. The possibilities are endless.

Some example batch files and scripts are included in the Alarm++ installation folder. There are scripts to:

Many of these scripts (e.g., the animated character) are accompanied by alarms in the Examples.alarm file also included in the installation folder.

Alarm events can also send e-mail (with or without attachments) to any e-mail address.

Run an application, batch file, or script;
open a Web site; open a folder; etc.

Use the Run page to specify whether you want the alarm to open some sort of application, such as Outlook or Word or Zoo Tycoon. You can also pass arguments (such as command line options) to the program (or script or ...). (Please note that you will probably want to put quotation marks around the name and message variables if they contain spaces.)

The arguments can also include information about the alarm whose event is going off:

%message% (all newlines are converted to spaces)
%eventdateformat% (formatted with your regional preferences)
%eventtimeformat% (formatted with your regional preferences)
%eventyear% (e.g., 2003)
%eventmonth% (1-12)
%eventdate% (1-31)
%eventweekday% (1-7)
%eventhour% (0-23)
%eventminute% (0-59)

If you want to set certain options for the application you're running (such as its appearance on startup or its starting directory), you can specify that the event run a shortcut that points to the application.

Besides “regular” applications, Alarm++ can also run batch files or scripts. Scripts can do anything at all—I have one that downloads television listings every morning and another that opens five Web sites for me every day.

Alarm++ can also open a Web site in your browser—perhaps you want to check CNN every evening or you want to automatically check NASA's Web site when they finish a comet flyby or Television Without Pity every morning for the latest snark.

Alarm++ can even open a Windows folder. Press the Browse button to select a file in the folder you want opened, and then manually delete the filename from the Open field.

Use the Test button to be sure the alarm will do what you want it to do.

Finally, select one or more of the checkboxes to tell Alarm++ when to perform this action. The action can occur when the first event goes off, every time it goes off after being snoozed, when you click the Snooze button, or when you click the Off button. You can also specify that you want to be able to initiate the action manually by pressing the Run button after the event window is displayed.

You might select “...when each snooze event occurs” if you want the action to happen multiple times—and you want to control how many times and how often.

You might select “...when you press the Snooze button” if you want even more control over when the action happens and you want it to happen multiple times for each event. For example, when the event goes off, you might decide you don't want the action to occur at all this time, so you click Off (and never click Snooze).

You might select “...when you press the Off button” if you want the action to happen only once, but you're not exactly sure when, such as an action to open Microsoft Word with a Status Report template, but you're not sure when you're going to start writing it.

You might select “...when you press the Run button on the event window” if you want to decide yourself when the action should happen. (Perhaps you want to open it multiple times.)

Note: If this alarm isn't going to display a window, you can only select the first checkbox: “...when the initial event occurs” because with no event window, you don't have the opportunity to click Snooze or Off.

Send e-mail

Use the Mail page to set the event to send an e-mail (with or without attachments) to one or more people (e-mail addresses).

In addition to the obvious—sending e-mail to people—this feature can be used with many paging services to send a page and with parcel delivery services to track packages.

You can also include attachments and send a set of files to people.

Note: You will need to configure your e-mail settings in the Setup | Options | Mail page.

Return to Welcome page

See Also

Quick Start
Repeating Events
Event Reminders
Event Actions
Alarm Templates
Customize Alarm++