Jump to content
Sign in to follow this  
danthe0

Help with login feature.

Recommended Posts

danthe0

Hi there, I was hoping anyone of you could help me with this problem.

I shall begin. (:

Okay, I can't seem to click this form/submit button in my router.

It has the HTML/JAVA coding of :

if (WAN_TYPE_PPPOE == WAN_TYPE_PPPOE) 
{
document.write('<td width="180" class="copy_1"><INPUT type=submit name=connect style="font-size: 10px;font-family:Arial;" onclick="return ppp_connect();" VALUE=" Connect "></td>');
}

So, what I have here is this :

#include <INet.au3>
#include <IE.au3>
#include <String.au3>

$ip = _GetIP()
$oIE = _IECreate("http:\\192.168.1.1\index.stm")
$ieConnect = _IETagNameGetCollection($oIE, "connect")
;$ieConnect2 = _IEFormElementGetObjByName($oIE, "connect")

Func reconnect()
    _IELoadWait($oIE)
    ;_IELinkClickByIndex($oIE,3)
    ;_IEFormSubmit($ieConnect)
    _IEAction($ieConnect, "click")
EndFunc

#comments-start -----Login Module-----
#comments-end

_IELoadWait($oIE)
Send("*passhere*")
Send("{tab 2}")
Send("{ENTER}")

#comments-start -----IP Check Module-----
#comments-end

While StringRegExp($ip, ".94.") = 1

    #comments-start -----D/C&R/C Module-----
    #comments-end

    Call("reconnect")
WEnd

It usually keeps churning out the error of through trial and error of various _IExxxx :-

  • C:\PROGRA~1\AutoIt3\Include\IE.au3 (2607) : ==> The requested action with this object has failed.:

    $o_object.Click ()

    $o_object.Click ()^ ERROR

Share this post


Link to post
Share on other sites
big_daddy

Without more information this is the best I can do.

#include <INet.au3>
#include <IE.au3>
#include <String.au3>

$ip = _GetIP()
$oIE = _IECreate("http:\\192.168.1.1\index.stm")
$oInput = _IEFormElementGetObjByName($oIE, "connect")

Func reconnect()
    _IELoadWait($oIE)
    ;_IELinkClickByIndex($oIE,3)
    ;_IEFormSubmit($ieConnect)
    _IEAction($oInput, "click")
EndFunc   ;==>reconnect

Share this post


Link to post
Share on other sites
jefhal

I have not found a way to programmatically press a java button/hyperlink on a webpage yet. What I do is send a mouseclick to an x,y location where the button/hyperlink is located on the webpage. As long as you maximize the ie window first and always have the same screen resolution, taskbar size, menu size, etc. this will work (I use it daily on the Dell support site). However, this is not a universal solution, only a narrow one.

$o_form = _IEFormGetObjByName($o_IE, "formSupportRequestEnterTag")
    $o_servtag = _IEFormElementGetObjByName($o_form, "ServiceTag")
    _IEFormElementSetValue($o_servtag,$servtag)
    $realsize = WinGetPos("Dell - Support - K-12 Education - Windows Internet Explorer")
    MouseClick("Left",$realsize[0]+63,$realsize[1]+544) ; click where the hyperlink was on 3/15
    MouseClick("Left",$realsize[0]+63,$realsize[1]+555) ; click where the hyperlink was on 4/15
    MouseClick("Left",$realsize[0]+208,$realsize[1]+582) ; click where the hyperlink was on 5/18
    MouseClick("Left",$realsize[0]+420,$realsize[1]+579) ; click where the hyperlink was on 7/27
    MouseClick("Left",$realsize[0]+416,$realsize[1]+534)  ; click where the hyperlink was on 11/30

Okay, I can't seem to click this form/submit button in my router.

It has the HTML/JAVA coding of :


...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format

Share this post


Link to post
Share on other sites
big_daddy

I have not found a way to programmatically press a java button/hyperlink on a webpage yet. What I do is send a mouseclick to an x,y location where the button/hyperlink is located on the webpage. As long as you maximize the ie window first and always have the same screen resolution, taskbar size, menu size, etc. this will work (I use it daily on the Dell support site). However, this is not a universal solution, only a narrow one.

If it was a "Java" button then I could see where the problem would be, but since it is a HTML Button generated with "Javascript" then there shouldn't be a problem.

Share this post


Link to post
Share on other sites
danthe0

Thanks for the reply, I'm sorry for the delayed reply.

I've tried the big_daddy's code, it didnt work. Gave the error of :

--> IE.au3 Error from function _IEAction, $_IEStatus_InvalidDataType

@ jefhal, actually that was my last resort :) ... using mouse clicks but thanks I guess it'd be so much easier that way yet I'm still looking for a non-mouseclick suggestion.

@big_daddy,

Without more information this is the best I can do.

Umm.... Here's the whole page source if you need it. I hope that will help.

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="stylesheet" href="main_router.css" type="text/css">
&lt;script src="data.js"></SCRIPT>
&lt;script language="Javascript">
setTimeout('parent.location.href="/login.stm";',60000);

var wan_type_name= "";
switch (wan_type) 
{
    case 0:  // Dynamic IP Address
        wan_type_name="Dynamic";
    break;
    case 1:  // Static IP Address
        wan_type_name="Static";
    break;
    case 2:  // PPPoE
        wan_type_name="PPPoE";
    break;
    case 3:  // Modem only
        wan_type_name="Modem Only";
    break;
    case 5:  // PPTP
        wan_type_name="PPTP";
    break;
    case 6:  // BigPond
        wan_type_name="BigPond";
    break;
    case 7:
        wan_type_name="PPPoA";
    break;
    case 8:
        wan_type_name="IPoA";
    break;
    default:
}

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
if (runtime_code_version.charAt(7)==4) boot_code_version="V1.3C";

function evaltF()
{
    return true;
}

function dhcp_release() {
    return true;
}

function dhcp_renew() {
    return true;
}

function ppp_connect() 
{
    document.tF1.PPP_Connect.value = 1;
    document.tF1.submit();
    return true;
}

function ppp_disconnect() 
{
    document.tF1.PPP_Disconnect.value = 1;
    document.tF1.submit();
    return true;
}

function fwauto_check()
{
    if(autofw_enable == 1)
    {
        
    }
}

</script>
&lt;script LANGUAGE="Javascript">
var enableOS=0;
var enableWEP=0;
var enableSSN=2;
var wpa1x=0;
</SCRIPT>


</head>
<body bgcolor="#ffffff" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="fwauto_check();">

<table border="0" cellspacing="0" cellpadding="0" align="left" width="100%" height="100%">
    <tr>
        <td colspan="3" bordercolor="#FFFFFF" height="64">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                <tr>
                    <td rowspan="3" width="20" valign="bottom"><a href="http://www.belkin.com"><img src="/images/head_logo.gif" border="0" width="121" height="64"></a></td>
                    <td colspan="4" height="21" align="right" nowrap> </td>
                </tr>
                <tr>

                    <td colspan="4" height="14"><img src="/images/title.gif" height="15" width="265"></td>
                </tr>
                <tr>
                    <td background="/images/bar_floor.gif" width="150" height="28"><img src="images/shim.gif" width="1" height="28" ></td>
                    <td background="images/bar.gif" height="28" ><img src="/images/bar_slope.gif" width="163" height="28"></td>
                    <td background="/images/bar.gif" height="28" align="right" nowrap class="top_nav">
                        <nobr>
                        <a href="/index.stm" class="top_nav">Home</a> |
                        
                        <a href="/help.stm" class="top_nav">Help</a> |
                        <a href="/cgi-bin/logout.exe" class="top_nav">Logout</a>    

                        <span class="top_nav">Internet Status:<b>
                        &lt;script language="javascript">
                        if(bWanConnected==1)
                            document.write('<font face="verdana,arial" size="2" color="#33FF33">Connected</font></b></span>');
                        else
                            document.write('<font face="verdana,arial" size="2" color="#FF0000">No Connection</font></b></span>');
                        </script>
                        </nobr>
                    </td>
                    <td height="28" align="right" background="images/bar.gif" ><img src="/images/bar_cap.gif" width="11" height="28"></td>
                </tr>
            </table>
        </td>

    </tr>
    <tr>
        <td valign="top" width="130" height="100%">
            <table width="140" border="0" cellspacing="0" cellpadding="0" align="left">
                <tr>
                    <td colspan="2" height="20" width="140" background="/images/blu_bar.gif">
                        <img src="images/shim.gif" width="8" height="8" >
                        <a href="/lan_main_0.stm" class="section">LAN Setup</a>

                    </td>
                </tr>
                <tr>
                    <td width="5"> </td>
                    <td valign="top" class="leftLink"><a href="/lan_main.stm">LAN Settings</a><br></td>
                </tr>
                <tr>
                    <td width="5"> </td>

                    <td valign="top" class="leftLink"><a href="/lan_dhcp.stm">DHCP Client List</a><br></td>
                </tr>
                                <tr>
                    <td colspan="2" height="20" width="140"  background="/images/blu_bar.gif">
                        <img src="/images/shim.gif" width="8" height="8"><a href="/wan_main_0.stm" class="section">Internet WAN</a></td>
                </tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/wan_main.stm">Connection Type</a></td></tr>

                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/setup_dns.stm">DNS</a></td></tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/ddns.stm">DDNS</a></td></tr>
                
                
                
                
                
                

                                <tr>
                    <td colspan="2" height="20" width="140"  background="/images/blu_bar.gif">
                        <img src="/images/shim.gif" width="8" height="8"><a href="/wireless_main_0.stm" class="section">Wireless</a>
                    </td>
                </tr>

                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/wireless_id.stm">Channel and SSID</a></td></tr>
<!--
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/wireless_mac.stm">Access Control</a></td></tr>
-->             
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/wireless_e.stm">Security</a></td></tr>
<!--
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/wireless_wep.stm">WEP</a></td></tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/wireless_wpa.stm">WPA</a></td></tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/wireless_1X.stm">802.1X</a></td></tr>
-->             
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a 
                href="/wireless_wds.stm">Wireless Bridge</a></td></tr>
                
                
                
                
                
                

                                <tr>
                    <td colspan="2" height="20" width="140"  background="/images/blu_bar.gif">
                        <img src="/images/shim.gif" width="8" height="8"><a href="/firewall_main_0.stm" class="section">Firewall</a></td>
                </tr>

                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/nat_v.stm">Virtual Servers</a></td></tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/firewall_a.stm">Client IP Filters</a></td></tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/firewall_mac.stm">MAC Address Filtering</a></td></tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/firewall_d.stm">DMZ</a></td></tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/firewall_ping.stm">WAN Ping Blocking</a></td></tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/log.stm">Security Log</a></td></tr>

                                <tr>
                    <td colspan="2" height="20" width="140"  background="/images/blu_bar.gif">
                        <img src="/images/shim.gif" width="8" height="8"><a href="/tl_main_0.stm" class="section">Utilities</a></td>
                </tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/system_r.stm">Restart Router</a></td></tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/tools_restore.stm">Restore Factory Default</a></td></tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/system_c.stm">Save/Backup Settings</a></td></tr>

                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/tools_backup.stm">Restore Previous Settings</a></td></tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/system_f.stm">Firmware Update</a></td></tr>
                <tr><td width="5"> </td><td valign="top" class="leftLink"><a href="/system.stm">System Settings</a></td></tr>

            </table>
        </td>
        <td valign="top" width="1" bgcolor="#006699" height="100%"><img src="/images/shim.gif" width="1" height="1"></td>
        <td valign="top" width="99%" height="100%" class="head_bold">

            <br> Status<br>
            <table border=0 class="copy_1">
                <tr>
                    <td width="5" colspan="2"> </td></tr>
                <!-- Roger add wizard button and connection disconnect button -->
                <tr>
                <td>
                <table width="720" border="0" cellspacing="0" cellpadding="0" class="copy_1">

                <tr>
                <td>
                <table width="385" border="0" cellspacing="0" cellpadding="2" class="copy_1">
                <tr>
                <td width="180" class="copy_1" colspan="2"><INPUT type="button" value="Setup Wizard " style="{width:120px;}" class="submitBtn" onmouseover="window.status='Wizard'; return true;" onmouseout="window.status=''; return true;" onclick="document.location.href='/setupw.stm';"></td>
                <td width="180"> </td>
                </tr><tr>
                <td width="180"> </td>
                <td width="180"> </td>

                </tr>
                </table></td>
                <td>
                <table width="330" border="0" cellspacing="0" cellpadding="2" class="copy_1">
                <tr>
                
                <form method = 'POST' name = 'tF1' action="/cgi-bin/statusprocess.exe">
                <input type='hidden' name='PPP_Connect' value=0>
                <input type='hidden' name='PPP_Disconnect' value=0>
                &lt;script language="javascript">
                    if (WAN_TYPE_PPPOE == WAN_TYPE_PPPOE)
                    {
                        document.write('<td width="180" class="copy_1"><INPUT type=submit name=disconnect style="font-size: 10px;font-family:Arial;" onclick="return ppp_disconnect();" VALUE="Disconnect"></td>');
                    }
                    else if (WAN_TYPE_PPPOE == WAN_TYPE_PPPOA)
                    {
                        document.write('<td width="180" class="copy_1"><INPUT type=submit name=disconnect style="font-size: 10px;font-family:Arial;" onclick="return ppp_disconnect();" VALUE="Disconnect"></td>');
                    }
                  
                    if (WAN_TYPE_PPPOE == WAN_TYPE_PPPOE) 
                    {
                        document.write('<td width="180" class="copy_1"><INPUT type=submit name=connect style="font-size: 10px;font-family:Arial;" onclick="return ppp_connect();" VALUE=" Connect "></td>');
                    }
                    else if (WAN_TYPE_PPPOE == WAN_TYPE_PPPOA)
                    {
                        document.write('<td width="180" class="copy_1"><INPUT type=submit name=connect style="font-size: 10px;font-family:Arial;" onclick="return ppp_connect();" VALUE=" Connect "></td>');
                    }
                </script>

                </form>
                
                </tr><tr>
                <td width="180"> </td>
                <td width="180"> </td>
                </tr>
                </table>
                </td>
                </tr>
                </table>

                </td>
                </tr>
                <!-- Roger add wizard button and connection disconnect button -->
                <tr>
            <td>
            <form action="/cgi-bin/statusprocess.exe" method="post" name="tF0">
                        <table width="720" border="0" cellspacing="0" cellpadding="0" class="copy_1">
                            <tr>
                                <td width=370 valign=top>

                                </td></tr>
                            <tr>
                                <td width=370 valign=top class="section">
                                    <table width="370" border="0" cellspacing="0" cellpadding="2" class="copy_1">
                                        &lt;script language="javascript">
                                            document.write('<tr><td  bgcolor="#006699" class="section" colspan=2>Version Info</td></tr>');
                                            document.write('<tr><td width="180" bgcolor="#94CAE4" class="copy_1">   Firmware Version</td><td width="190" bgcolor="#94CAE4" class="copy_1">'+runtime_code_version+'</td></tr>');
                                            document.write('<tr><td width="180" bgcolor="#E8F8FF" class="copy_1">   Boot Version</td><td width="190" bgcolor="#E8F8FF" class="copy_1">'+boot_code_version+'</td></tr>');
                                            document.write('<tr><td width="180" bgcolor="#94CAE4" class="copy_1">   Hardware</td><td width="190" bgcolor="#94CAE4" class="copy_1">'+hardware_version+'</td></tr>');
                                            document.write('<tr><td width="180" bgcolor="#E8F8FF" class="copy_1">   Serial No.</td><td width="190" bgcolor="#E8F8FF" class="copy_1">'+serial_number+'</td></tr>');
                                            document.write('<tr><td width="180" bgcolor="#94CAE4" class="copy_1">  </td><td width="190" bgcolor="#94CAE4" class="copy_1"> </td></tr>');
                                            document.write('<tr><td width="180" bgcolor="#FFFFFF" class="copy_1">  </td><td width="190" bgcolor="#FFFFFF" class="copy_1"> </td></tr>');
                                        </script>
                                    </table>
                                </td>
                                <td width=20> </td>

                                <td width=330 valign=top class="section">
                                    <table width="330" border="0" cellspacing="0" cellpadding="2" class="copy_1">
                                        &lt;script language="javascript">
                                            document.write('<tr><td  bgcolor="#006699" class="section" colspan=2>LAN Settings</td></tr>');
                                            document.write('<tr><td width="150" bgcolor="#94CAE4" class="copy_1">   LAN/WLAN MAC</td><td width="190" bgcolor="#94CAE4" class="copy_1">'+lan_mac_addr+'/</td></tr>');
                                            document.write('<tr><td width="150" bgcolor="#94CAE4" class="copy_1">  </td><td width="190" bgcolor="#94CAE4" class="copy_1">'+wlan_mac_addr+'/</td></tr>');
                                            document.write('<tr><td width="150" bgcolor="#E8F8FF" class="copy_1">   IP address</td><td width="190" bgcolor="#E8F8FF" class="copy_1">'+lan_gateway_ip+'</td></tr>');
                                            document.write('<tr><td width="150" bgcolor="#94CAE4" class="copy_1">   Subnet mask</td><td width="190" bgcolor="#94CAE4" class="copy_1">'+lan_gateway_mask+'</td></tr>');
                                            document.write('<tr><td width="150" bgcolor="#E8F8FF" class="copy_1">   DHCP Server</td><td width="190" bgcolor="#E8F8FF" class="copy_1">');
                                            if(dhcp_enable) document.write('Enabled</td></tr>');
                                            else    document.write('Disabled</td></tr>');
                                            if(dhcp_enable) 
                                            document.write('<tr><td width="150" bgcolor="#94CAE4" class="copy_1">   DHCP Clients num</td><td width="190" bgcolor="#94CAE4" class="copy_1">'+dhcp_client_num+'</td></tr>');
                                            else
                                            document.write('<tr><td width="150" bgcolor="#94CAE4" class="copy_1">   </td><td width="190" bgcolor="#94CAE4" class="copy_1"> </td></tr>');
                                        </script>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <br>    <br>

                        <table width="720" border="0" cellspacing="0" cellpadding="0" class="copy_1">
                            <tr>
                                <td width=370 valign=top class="section">
                                    <table width="370" border="0" cellspacing="0" cellpadding="2" class="copy_1">
                                        &lt;script language="javascript">
                                            document.write('<tr><td  bgcolor="#006699" class="section" colspan=2>Internet Settings</td></tr>');
                                            document.write('<tr><td width="180" bgcolor="#94CAE4" class="copy_1">   ADSL Status</td><td width="190" bgcolor="#94CAE4" class="copy_1">'+adsl_status+'</td></tr>');
                                            document.write('<tr><td width="180" bgcolor="#E8F8FF" class="copy_1">   Data Rate Down/Up</td><td width="190" bgcolor="#E8F8FF" class="copy_1">'+adsl_data_rate+'</td></tr>');
                                            document.write('<tr><td width="180" bgcolor="#94CAE4" class="copy_1">   WAN MAC address</td><td width="190" bgcolor="#94CAE4" class="copy_1">'+wan_mac_addr+'</td></tr>');

//                                          if(bWanUseModem==1){
//                                              if(bWanConnected==1)    document.write('<tr><td width="180" bgcolor="#E8F8FF" class="copy_1">  (2)Modem</td><td width="190" bgcolor="#E8F8FF" class="copy_1">CONNECTED</td></tr>');
//                                              else    document.write('<tr><td width="180" bgcolor="#E8F8FF" class="copy_1">   Modem</td><td width="190" bgcolor="#E8F8FF" class="copy_1">DISCONNECTED</td></tr>');
//
//                                          }
//                                          else{
//                                              if(wan_type==WAN_TYPE_BRIDGE)
//                                                  document.write('<tr><td width="180" bgcolor="#E8F8FF" class="copy_1">   Connection Type</td><td width="190" bgcolor="#E8F8FF" class="copy_1">Cable/DSL</td></tr>');
//                                              else if(bWanConnected==1)   document.write('<tr><td width="180" bgcolor="#E8F8FF" class="copy_1">   Cable/DSL</td><td width="190" bgcolor="#E8F8FF" class="copy_1">CONNECTED</td></tr>');
//                                              else    document.write('<tr><td width="180" bgcolor="#E8F8FF" class="copy_1">   Cable/DSL</td><td width="190" bgcolor="#E8F8FF" class="copy_1">DISCONNECTED</td></tr>');
//
//                                          }

                                            document.write('<tr><td width="180" bgcolor="#E8F8FF" class="copy_1">   Connection Type</td><td width="190" bgcolor="#E8F8FF" class="copy_1">PPPoE</td></tr>');

                                            if(bWanConnected){
                                                document.write('<tr><td width="180" bgcolor="#94CAE4" class="copy_1">   Wan IP</td><td width="190" bgcolor="#94CAE4" class="copy_1">'+wan_ip+'</td></tr>');
                                                document.write('<tr><td width="180" bgcolor="#E8F8FF" class="copy_1">   Subnet mask</td><td width="190" bgcolor="#E8F8FF" class="copy_1">'+wan_subnet_mask+'</td></tr>');
                                                document.write('<tr><td width="180" bgcolor="#94CAE4" class="copy_1">   Default gateway</td><td width="190" bgcolor="#94CAE4" class="copy_1">'+wan_gateway+'</td></tr>');
                                                document.write('<tr><td width="180" bgcolor="#E8F8FF" class="copy_1">   DNS Address</td><td width="190" bgcolor="#E8F8FF" class="copy_1">'+primary_dns+'</td></tr>');
//                                              document.write('<tr><td width="180" bgcolor="#94CAE4" class="copy_1">   Secondary DNS</td><td width="190" bgcolor="#94CAE4" class="copy_1">'+secondary_dns+'</td></tr>');
                                                }
                                            else{
                                            }
                                        </script>
                                    </table>
                                </td>
                                <td width=20> </td>

                                <td width=330 valign=top class="section">
                                    <table width="330" border="0" cellspacing="0" cellpadding="2" class="copy_1">
                                        &lt;script language="javascript">
                                            document.write('<tr><td  bgcolor="#006699" class="section" colspan=2>Features</td></tr>');
                    document.write('<tr><td width="150" bgcolor="#94CAE4" class="copy_1">   UPnP</td><td width="180" bgcolor="#94CAE4" class="copy_1">');
                    if(upnp_enable) document.write('Enabled</td></tr>');
                    else    document.write('Disabled</td></tr>');

                document.write('<tr><td width="150" bgcolor="#E8F8FF" class="copy_1">   NAT</td><td width="180" bgcolor="#E8F8FF" class="copy_1">');
                if( WAN_TYPE_PPPOE == WAN_TYPE_BRIDGE) document.write('N/A</td></tr>');
                else if(nat_enable) document.write('Enabled</td></tr>');
                else document.write('Disabled</td></tr>');

                if(firewall_func){
                    document.write('<tr><td width="150" bgcolor="#94CAE4" class="copy_1">   Firewall</td><td width="180" bgcolor="#94CAE4" class="copy_1">');
                    if( WAN_TYPE_PPPOE == WAN_TYPE_BRIDGE) document.write('N/A</td></tr>');
                    else if(firewall_enable)    document.write('Enabled</td></tr>');
                    else document.write('Disabled</td></tr>');
                }
                if(wireless_func){
                    if(wireless_enable) document.write('<tr><td width="150" bgcolor="#E8F8FF" class="copy_1">   Wireless</td><td width="180" bgcolor="#E8F8FF" class="copy_1">Enabled</td></tr>');
                    else    document.write('<tr><td width="150" bgcolor="#E8F8FF" class="copy_1">   Wireless</td><td width="180" bgcolor="#E8F8FF" class="copy_1">Disabled</td></tr>');
                }
                if(wireless_func){
                    if(wireless_enable) {
                        document.write('<tr><td width="150" bgcolor="#94CAE4" class="copy_1">   Mode</td><td width="180" bgcolor="#94CAE4" class="copy_1">'+wireless_mode+'</td></tr>');
                        document.write('<tr><td width="150" bgcolor="#E8F8FF" class="copy_1">   ESSID Broadcast</td><td width="180" bgcolor="#E8F8FF" class="copy_1">'+wireless_bssid+'</td></tr>');
                        document.write('<tr><td width="150" bgcolor="#94CAE4" class="copy_1">   SSID</td><td width="180" bgcolor="#94CAE4" class="copy_1">'+w_ssid+'</td></tr>');
                        document.write('<tr><td width="150" bgcolor="#E8F8FF" class="copy_1">   Channel</td><td width="180" bgcolor="#E8F8FF" class="copy_1">'+wireless_channel+'</td></tr>');
//                      document.write('<tr><td width="150" bgcolor="#E8F8FF" class="copy_1">   WLAN MAC Address</td><td width="180" bgcolor="#E8F8FF" class="copy_1">'+wlan_mac_addr+'</td></tr>');
                        if (enableOS==1)
                            security_value = "Disabled";
                        else
                            security_value = "Enabled";
                        document.write('<tr><td width="150" bgcolor="#94CAE4" class="copy_1">   Security</td><td width="180" bgcolor="#94CAE4" class="copy_1">'+security_value+'</td></tr>');
                    }
                }

//              document.write('<tr><td width="150" bgcolor="#94CAE4" class="copy_1">   Subnet Mask</td><td width="180" bgcolor="#94CAE4" class="copy_1">'+lan_gateway_mask+'</td></tr>');
//              if(my_upnp)
//              {
//                  document.write('<tr><td width="150" bgcolor="#E8F8FF" class="copy_1">   UPnP</td><td width="180" bgcolor="#E8F8FF" class="copy_1">');
//                  if(upnp_enable) document.write('Enabled</td></tr>');
//                  else    document.write('Disabled</td></tr>');
//              }

                                        </script>
                                    </table>
                                </td>
                            </tr>
                        </table>
            </form>

        </td></tr></table>
        </td>
    </tr>
</table>
</body>
</html>

I hope this information provided is enough for analysis. Thanks in advance. I won't be back in 2 days, take your time.

Share this post


Link to post
Share on other sites
DaleHohm

There is a bunch of HTML being generated dynamically on that page and what you have is the script source for it rather than the final result. To see what is actually active you can examine the following:

ConsoleWrite(_IEBodyReadHTML($oIE) & @CR)

This will display the dynamically generated source to the SciTe console. You can also use the FIrefox DOM Inspector, the IE Developer Toolbar or ModIV2 (see my sig for these last two).

This will be a much better starting point for you.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites
danthe0

All right thanks for all your help, I resorted to MouseClicks in the end =( and Dale, thanks for that neat plugin, it will help me in the near future.

Regards, dan.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.