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.
Script to retrieve mail and news using Forte Agent
Moderators: JRL, Dorian (MJT support), Phil Pendlebury
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact: