Dial up to internet if not connected, disconnect if connecte

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: 7351
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Dial up to internet if not connected, disconnect if connecte

Post by Marcus Tettmar » Sat Jul 26, 1997 11:00 pm

Contributed By: Richard Heaton [email protected]
Submitted On: 27/07/97

This shows how to use just one script to connect and disconnect. If the
dial up window is present it disconnects, otherwise it connects. This
example also presses the enter key on the Connect To box. Remove this
step if you have the Connect To box suppressed.

IfWindowOpen>Connected to Your-Connection-Name,Stop
Run Program>RUNDLL rnaui.dll,RnaDial Your-Connection-Name
WaitWindowOpen>Connect To
SetFocus>Connect To
Press Enter
Goto>End
Label>Stop
SetFocus>Connected to Your-Connection-Name
Press ALT
Send Character/Text>c
Release ALT
Label>End

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