Link to home
Start Free TrialLog in
Avatar of Xenopus
Xenopus

asked on

Automating router logon

I am trying to automate the logon to my satellite broadband.
This is a two stage operation.
First I need to logon to my ISDN/Satellite router then logon to the OpenSky network.
I have managed to do the second part - BTW this was the subject of an earlier unresolved query and I'll publish my resoloution ASAP.

Here is the start of the HTML for the logon page...

---------------------------------------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
<META HTTP-EQUIV="refresh" content="30;URL=/cgi-bin/status.cgi">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<link rel="stylesheet" href="/style.css" title="F10" TYPE="text/css">
<title>Start Page</title>
</head>

<body>
<table style="border-width: 0px; background-color: rgb(239,190,59); width: 100%">
<tr>
<td style="width: 243px"><img src="/images/yeltop_01.jpg" alt=""></td>
<td style="with: auto">&nbsp;</td>
<td style="width: 348px"><img src="/images/yeltop_03new.jpg" alt=""></td>
</tr>
</table>

<h1 style="position: absolute; top: 24px; left: 256px; background-color: transparent; color: black">
Start Page
</h1>
<div class="status">
<form name="action_form" action="/cgi-bin/action.cgi" method="post">

<p style="color: green">The connection is up.</p><input type="submit" class="connx" name="connx" value="Disconnect">
</form>
</div>

<h2>Satellite signal quality</h2>

<p>
<img style="border: solid ; border-width: 4px" src="/images/signal_3.jpg" alt="|************************|">
</p>

<h2>Transfer statistics</h2>

<div class="statistics">
<table class="info" style="text-align: left">
  <tbody>
  <tr><th class="info">Device</th><th class="info">Received</th><th class="info">Sent</th></tr>
<tr><td class="info"><b>Ethernet</b></td><td class="info">15523469</td><td class="info">185918061</td></tr>
<tr><td class="info"><b>Satellite</b></td><td class="info">170128916</td><td class="info">570170</td></tr>
<tr><td class="info"><b>Modem</b></td><td class="info">11084972</td><td class="info">8546308</td></tr>
  </tbody>
</table>
</div>
---------------------------------------------------------------------------------------------------------------------------------------------------------
All that I need to do is the equivalent of clicking on the Disconnect/Connect button "CONNX" above.
I assumed as it was a submit input type that I need to do something like...

           IE.Document.All.Item("connx").submit

Needless to say I've tried this with no luck any suggestions gratefully received.
ASKER CERTIFIED SOLUTION
Avatar of PaulHews
PaulHews
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Xenopus
Xenopus

ASKER

Thanks Paul - just call me thick :-)