Script to retrieve mail and news using Forte Agent

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:

Script to retrieve mail and news using Forte Agent

Post by Marcus Tettmar » Sat May 17, 1997 11:00 pm

Contributed By: Marcus Tettmar [email protected]
Submitted On: 18/05/97

Change Directory>C:\program files\agent\data
Run Program>c:\program files\agent\agent.exe
Wait>5
Press ALT
Send Character/Text>on
Release ALT
Wait>5
Label>Connecting
Wait>1
IfWindowOpen>Connecting to Demon,Connecting
Label>TryCloseDown
Wait>5
Press ALT
Send Character/Text>fx
Release ALT
Wait>4
IfWindowOpen>Agent,CancelErrorBox
Goto>End
Label>CancelErrorBox
Press Enter
Goto>TryCloseDown
Label>End

This relies on Agent being allowed to close the DUN connection without
prompting the user. Set this off in Agent's system settings from the On-Line
tab. If you prefer to have this set when using Agent interactively, as I do,
you could make two copies of Agent's ini file. One with this setting on and
one with it off. Then using batch files the INI files can be swapped at the
start and end of the above script, or use the EditIniFile command to swap the
ini file setting at the start and end of the script.

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