Busti Posted June 10, 2007 Share Posted June 10, 2007 (edited) Hi all, i want to Restart my Router with this Command lines : Login=cgi-bin/webcm?login:command/password=%PASSWORD% Connect=cgi-bin/webcm?connection0:settings/cmd_connect=19 Disconnect=cgi-bin/webcm?connection0:settings/cmd_disconnect=1 And this is the code i use, but it wont work. #include <IE.au3> $a = _IECreate( "192.168.2.1/cgi-bin/webcm?login:command/password=1234" ) _IENavigate( $a , "192.168.2.1/cgi-bin/webcm?connection0:settings/cmd_disconnect=1" ) Exit I got the command Lines from a Programm calld "RouterControl", but i think he "Posts" the link, but i dont know how i shall do that. I tested it with a HTTP.au3, which i found here on the Forums, but even the example didnt work . I hope you can Help me :< Edited June 10, 2007 by Busti My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 10, 2007 Share Posted June 10, 2007 Hi all, i want to Restart my Router with this Command lines : Login=cgi-bin/webcm?login:command/password=%PASSWORD% Connect=cgi-bin/webcm?connection0:settings/cmd_connect=19 Disconnect=cgi-bin/webcm?connection0:settings/cmd_disconnect=1 And this is the code i use, but it wont work. #include <IE.au3> $a = _IECreate( "192.168.2.1/cgi-bin/webcm?login:command/password=1234" ) _IENavigate( $a , "192.168.2.1/cgi-bin/webcm?connection0:settings/cmd_disconnect=1" ) Exit I got the command Lines from a Programm calld "RouterControl", but i think he "Posts" the link, but i dont know how i shall do that. I tested it with a HTTP.au3, which i found here on the Forums, but even the example didnt work . I hope you can Help me :< Browsing to the next page is not the same as clicking on the button that sent you there. The functions that are attached to the button don't happen, for one thing. Look through the examples with IE.au3 on getting the object of a control and clicking it. If you need help, post the source from the page. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Busti Posted June 11, 2007 Author Share Posted June 11, 2007 (edited) There is no Button Source: expandcollapse popup<html><head><title>Startseite</title> <script language="Javascript" src="webcm_data/js_fade.txt" type="text/Javascript"></script> <script type="text/javascript" src="webcm_data/ajax.js"></script> <script language="Javascript"> <!-- function chk(){ top.frames[0].m_akt=1; top.frames[1].location.href = "/html/m_startseite.htm"; status(5,0,"#520092036634#0001@t-online.de",'1'); oldversion = false; if (top.frames[0].provname.length>2) oldversion = true; if (!(top.frames[0].check_dirty)) oldversion = true; if (!(top.frames[0].showlogin)) oldversion = true; if (!(top.frames[0].voipprovemptypass)) oldversion = true; else { if (top.frames[0].voipprovemptypass[top.frames[0].voipprovemptypass.length-1] != top.frames[0].voipprovemptypass[0]) oldversion = true } if (oldversion) { alert("Sie haben erfolgreich eine neue Firmware-Version aufgespielt.\x0d\x0a\x0d\x0a"+ "Bitte leeren Sie jetzt den Cache Ihres Browsers (Temporäre Internetdateien) und\x0d\x0a"+ "starten Sie das Konfigurationsprogramm erneut."); } setTimeout('stReload()',10000); } function stReload(){ ajaxInit(); if (http) { var req = "/cgi-bin/webcm?getpage=../html/query.txt&var:cnt=5"; req += "&var:n0=connection0:pppoe:status/connect"; req += "&var:n1=sar:status/dsl_carrier_state"; req += "&var:n2=box:status/hint_dsl_no_cable"; req += "&var:n3=connection0:pppoe:settings/username"; req += "&var:n4=connection0:settings/enabled"; ajaxGet(req,ajaxCallback); } else { var ishow = nr_akt; if (ihg > 0) ishow = 0; // Hintergrundtimer schon gestartet? top.frames[2].location.href = "/cgi-bin/webcm?getpage=../html/hcti_startseite.htm&var:ishow="+ishow; } } function ajaxCallback(){ try { if (http.readyState==4 && http.status==200) { var resp = http.responseText; if (resp) { var part = resp.split(String.fromCharCode(10)); if (part.length>2) status(part[0],part[2],part[3],part[4]); } setTimeout('stReload()',10000); } } catch(e) { status(0,0,"foo",1); } } function as(nr){ top.frames[0].as_akt = nr; nr+=1; top.frames[2].location.href = "/cgi-bin/webcm?getpage=../html/hcti_telefon_as.htm&var:as="+nr; top.frames[1].document.getElementById("m_but1").style.color='#000000'; top.frames[1].document.getElementById("m_but1").style.backgroundImage='none'; top.frames[0].m_akt=33; top.frames[1].document.getElementById("m_but33").style.color='#FFFFFF'; top.frames[1].document.getElementById("m_but33").style.backgroundImage='url(/html/pic_m_marker.gif)'; } function stInet(um){ if (um=="1") document.inetform.PostCon.disabled = false; if (um=="0") { document.inetform.PostDis.disabled = false; document.inetform.PostState.value = 0; } document.inetform.submit(); } function stUnlock(um){ if (um=='1' || sperrwarn()) { document.lockform.PostOn.value = um; document.lockform.submit(); } } function status(state,nocable,username,unlocked) { var image = 'aktiv'; var li = null; var re = null; var info = '46'; if (unlocked==0) { image = 'gesperrt'; re = 'unlock'; info = '44'; } else { re = 'lock'; li = 'disconnect'; if (state!=5) { li = 'connect'; if (nocable==1) { image = 'kein_dsl'; re = null; li = null; info = '43'; } else { if (username=="") { image = 'keine_zdat' re = null; li = null; info = '41'; } else { image = 'getrennt'; info = '45'; } } } } document.getElementById("c_status").innerHTML='<img border="0" src="/html/pic_c_inet_'+image+'.gif" onmouseover=i_showElem('+info+') onmouseout=i_showElem(0)>'; li = null; if (li==null) { document.getElementById('disconnect').style.visibility = 'hidden'; document.getElementById('connect').style.visibility = 'hidden'; } else { if (li=='disconnect') { document.getElementById('disconnect').style.visibility = 'visible'; document.getElementById('connect').style.visibility = 'hidden'; } else { document.getElementById('disconnect').style.visibility = 'hidden'; document.getElementById('connect').style.visibility = 'visible'; } } if (re==null) { document.getElementById('lock').style.visibility = 'hidden'; document.getElementById('unlock').style.visibility = 'hidden'; } else { if (re=='lock') { document.getElementById('lock').style.visibility = 'visible'; document.getElementById('unlock').style.visibility = 'hidden'; } else { document.getElementById('lock').style.visibility = 'hidden'; document.getElementById('unlock').style.visibility = 'visible'; } } } function sperrwarn(){ return confirm("Wenn Sie das Internet sperren, werden alle Verbindungen ins Inter-\x0d\x0a" + "net sofort getrennt. Das betrifft auch Telefongespräche, die über\x0d\x0a" + "das Internet geführt werden.\x0d\x0a"+ "Ein erneuter Verbindungsaufbau wird solange verhindert, bis diese\x0d\x0a" + "Sperre mit 'Internet freischalten' wieder aufgehoben wird.\x0d\x0a" + "\x0d\x0a" + "Um den Internetzugang weiterhin zu ermöglichen, klicken Sie auf\x0d\x0a" + "'Abbrechen'.\x0d\x0a" + "\x0d\x0a" + "Um das Internet jetzt zu sperren und alle Verbindungen zu trennen\x0d\x0a" + "klicken Sie auf 'OK'."); } function rahmen(high, typ){ if (high==0){ document.getElementById("t_but" + typ).style.color='#000000'; document.getElementById("t_but" + typ).style.borderColor='#666666'; } else{ document.getElementById("t_but" + typ).style.color='#E20074'; document.getElementById("t_but" + typ).style.borderColor='#E20074'; } } function butrahmen(high, typ){ if (high==0){ document.getElementById(typ).style.color='#000000'; document.getElementById(typ).style.borderColor='#666666'; } else{ document.getElementById(typ).style.color='#E20074'; document.getElementById(typ).style.borderColor='#E20074'; } } function bildrahmen(high,nr){ if (high==1){ document.getElementById("c_as" + nr).style.borderColor='#E20074'; } else{ document.getElementById("c_as" + nr).style.borderColor='#666666'; } i_showElem(8*high); } //--> </script> <link rel="stylesheet" href="webcm_data/style.css" type="text/css"> <style type="text/css"> #c_as0 { POSITION: absolute; LEFT: 313px; TOP: 160px; cursor: pointer; border-color: #666666; border-width: 1px; border-style: solid; } #c_as1 { POSITION: absolute; LEFT: 339px; TOP: 160px; cursor: pointer; border-color: #666666; border-width: 1px; border-style: solid; } #c_status { POSITION: absolute; LEFT: 0px; TOP: 282px; } #i_content41 {Z-INDEX: 2; POSITION: absolute; LEFT: 10px; WIDTH: 180px; TOP: 10px; VISIBILITY: hidden} #i_content42 {Z-INDEX: 2; POSITION: absolute; LEFT: 10px; WIDTH: 180px; TOP: 10px; VISIBILITY: hidden} #i_content43 {Z-INDEX: 2; POSITION: absolute; LEFT: 10px; WIDTH: 180px; TOP: 10px; VISIBILITY: hidden} #i_content44 {Z-INDEX: 2; POSITION: absolute; LEFT: 10px; WIDTH: 180px; TOP: 10px; VISIBILITY: hidden} #i_content45 {Z-INDEX: 2; POSITION: absolute; LEFT: 10px; WIDTH: 180px; TOP: 10px; VISIBILITY: hidden} #i_content46 {Z-INDEX: 2; POSITION: absolute; LEFT: 10px; WIDTH: 180px; TOP: 10px; VISIBILITY: hidden} </style></head><body onload="chk()"> <map name="M1"><area shape="rect" coords="44,388,75,425" title="Steckernetzgerät Buchse" nohref="" onmouseover="i_showElem(2)" onmouseout="i_showElem(0)"><area shape="rect" coords="194,388,241,425" title="Ethernet LAN Buchse" nohref="" onmouseover="i_showElem(5)" onmouseout="i_showElem(0)"><area shape="rect" coords="302,388,352,425" title="T-DSL Anschluss" nohref="" onmouseover="i_showElem(7)" onmouseout="i_showElem(0)"><area shape="rect" coords="30,252,370,278" title="Leuchtanzeigen (LED)" nohref="" onmouseover="i_showElem(1)" onmouseout="i_showElem(0)"> </map> <div id="c_Frame"> <div id="c_bild"><img src="webcm_data/pic_c_startbild.jpg" usemap="#M1" border="0"></div> <script language="Javascript"> <!-- var i; for (i=0;i < 2;i++){ document.write('<DIV id=c_as' + i + ' onclick=as(' + i + ') onmouseover=bildrahmen(1,' + i + ') onmouseout=bildrahmen(0,' + i + ')><img src="/html/pic_c_as' + (i+1) + '.gif"></DIV>'); } //--> </script><div style="border-color: rgb(102, 102, 102);" id="c_as0" onclick="as(0)" onmouseover="bildrahmen(1,0)" onmouseout="bildrahmen(0,0)"><img src="webcm_data/pic_c_as1.gif"></div><div style="border-color: rgb(102, 102, 102);" id="c_as1" onclick="as(1)" onmouseover="bildrahmen(1,1)" onmouseout="bildrahmen(0,1)"><img src="webcm_data/pic_c_as2.gif"></div> <div id="c_status"><img src="webcm_data/pic_c_inet_aktiv.gif" onmouseover="i_showElem(46)" onmouseout="i_showElem(0)" border="0"></div> </div> <div id="t_Frame"> <div style="visibility: hidden;" class="t_butli" id="disconnect" onclick='stInet("0")' onmouseover='butrahmen(1,"disconnect")' onmouseout='butrahmen(0,"disconnect")'>Internet trennen</div> <div style="visibility: hidden;" class="t_butli" id="connect" onclick='stInet("1")' onmouseover='butrahmen(1,"connect")' onmouseout='butrahmen(0,"connect")'>Internet verbinden</div> <div style="border-color: rgb(102, 102, 102); visibility: visible; color: rgb(0, 0, 0);" class="t_butre" id="lock" onclick='stUnlock("0")' onmouseover='butrahmen(1,"lock")' onmouseout='butrahmen(0,"lock")'>Internet sperren</div> <div style="visibility: hidden;" class="t_butre" id="unlock" onclick='stUnlock("1")' onmouseover='butrahmen(1,"unlock")' onmouseout='butrahmen(0,"unlock")'>Internet freischalten</div> </div> <form name="inetform" method="post" action="/cgi-bin/webcm"> <input name="getpage" value="../html/hcti_startseite.htm" type="hidden"> <input name="errorpage" value="../html/hcti_startseite.htm" type="hidden"> <input name="connection0:settings/cmd_connect" value="1" disabled="disabled" id="PostCon" type="hidden"> <input name="connection0:settings/cmd_disconnect" value="1" disabled="disabled" id="PostDis" type="hidden"> <input name="var:state" value="5" id="PostState" type="hidden"> </form> <form name="lockform" method="post" action="/cgi-bin/webcm"> <input name="getpage" value="../html/hcti_startseite.htm" type="hidden"> <input name="errorpage" value="../html/hcti_startseite.htm" type="hidden"> <input name="connection0:settings/enabled" id="PostOn" type="hidden"> </form> <div id="i_Frame"> <div style="visibility: visible; color: rgb(0, 0, 0);" id="i_content"> <h2>Konfigurationsprogramm</h2> <p>Dieses Programm ermöglicht es Ihnen, Einstellungen in Ihrem Router vorzunehmen.</p> <p><b><font color="#999999">ASSISTENT</font></b><br> <b>> Schritt für Schritt</b><br> Für den Einstieg empfehlen wir Ihnen den Assistenten. Er führt Sie Schritt für Schritt durch die notwendigen Einstellungen.</p> <p><b><font color="#999999">KONFIGURATION</font></b><br> Erfahrene Benutzer können in diesem Bereich detaillierte Einstellungen vornehmen.</p> <p><b><font color="#999999">STATUS</font></b><br> In der Übersicht sehen Sie die wichtigsten Infos zum Status.</p> <p><b><font color="#999999">VERWALTUNG</font></b><br> Hier können Sie Daten laden und sichern.</p> <p>Weitere Informationen erhalten Sie, wenn Sie den Mauszeiger über die Grafik bewegen.</p> </div> <div id="i_content1"> <h2>Leuchtanzeigen (LED)</h2> <p><b>T-DSL</b><br> Zeigt die Bereitschaft des Routers an.<br> Leuchtet dauerhaft, wenn Stromzufuhr und Verbindung zum T-DSL bestehen.<br> Blinkt, wenn Stromzufuhr besteht aber die Verbindung zum T-DSL unterbrochen ist.</p> <p><b>Online</b><br> Zeigt bestehende Internetverbindung an.</p> <p><b>Internet</b><br> Signalisiert eine aktive Telefon- verbindung über das Internet.</p> <p><b>Festnetz</b><br> Signalisiert eine aktive Telefon- verbindung über den Festnetzanschluss.<br> Blinkt wenn eine Nachricht in der T-NetBox gespeichert ist.</p> <p><b>WLAN</b><br> Leuchtet dauerhaft, wenn WLAN eingeschaltet ist.</p> </div> <div id="i_content2"> <h2><b>Anschlüsse</b></h2> <p><b>12VDC/1A</b><br> Buchse zum Anschluss des Netzgerätes.</p> </div> <div id="i_content5"> <h2><b>Anschlüsse</b></h2> <p><b>LAN</b><br> Ethernet-Buchse für den Anschluss eines PCs oder eines weiteren Hubs/Switches.</p> </div> <div id="i_content7"> <h2><b>Anschlüsse</b></h2> <p><b>T-DSL/T-Net</b><br> Über diesen Anschluss stellen Sie die Verbindung zum Splitter her. Über den Splitter erfolgt die Verbindung in das öffentliche Netz.</p> </div> <div style="visibility: hidden; color: rgb(144, 144, 144);" id="i_content8"> <h2><b>Anschlüsse</b></h2> <p><b>Interne Anschlüsse</b><br> Klicken Sie hier, um Ihren internen Anschluss für die Telefonie einzustellen. Die Buchse zum Einstecken des Telefons finden Sie auf der Unterseite dieses Gerätes.</p> </div> <div id="i_content9"> <h2><b>Status Internetverbindung</b></h2> <p>Hier sehen Sie den Status der Internetverbindung.</p> </div> <div id="i_content41"> <h2><b>Status Internetverbindung</b></h2> <p>Keine Zugangsdaten.</p> <p>Eine Verbindung ins Internet ist nicht möglich, weil Sie noch keine Zugangsdaten eingegeben haben.</p> <p>Klicken Sie im Menü links, unter Assistent auf die Schaltfläche <b>Schritt für Schritt</b>.</p> <p>Durchlaufen Sie den Assistenten, Sie werden innerhalb des Assistenten nach den Zugangsdaten gefragt.</p> </div> <div id="i_content43"> <h2><b>Status Internetverbindung</b></h2> <p>Kein DSL.</p> <p>Eine Verbindung ins Internet ist nicht möglich, weil keine T-DSL Verbindung besteht.</p> <p>Prüfen Sie bitte ob Ihr DSL Kabel zwischen Ihrem Endgerät (T-DSL Buchse) und dem Splitter richtig verbunden ist.</p> </div> <div id="i_content44"> <h2><b>Status Internetverbindung</b></h2> <p>Internetverbindung gesperrt.</p> <p>Zum Freischalten der Internetverbindung klicken Sie bitte auf die Schaltfläche: 'Internet freischalten'.</p> </div> <div id="i_content45"> <h2><b>Status Internetverbindung</b></h2> <p>Internetverbindung getrennt.</p> <p>Die Dauerverbindung ist eingeschaltet, es wird versucht die Internetverbindung herzustellen.</p> <p>Zum dauerhaften Sperren der Internetverbindung klicken Sie bitte auf die Schaltfläche: 'Internet sperren'.</p> </div> <div style="visibility: hidden; color: rgb(96, 96, 96);" id="i_content46"> <h2><b>Status Internetverbindung</b></h2> <p>Internetverbindung aktiv.</p> <p>Die Dauerverbindung ist eingeschaltet.</p> <p>Zum dauerhaften Sperren der Internetverbindung klicken Sie bitte auf die Schaltfläche: 'Internet sperren'.</p> </div> </div> </body></html> i hope this is what ya want^^ Edited June 11, 2007 by Busti My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity Link to comment Share on other sites More sharing options...
Busti Posted June 11, 2007 Author Share Posted June 11, 2007 *bump* My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 11, 2007 Share Posted June 11, 2007 There is no Button Source: CODE<html><head><title>Startseite</title> <script language="Javascript" src="webcm_data/js_fade.txt" type="text/Javascript"></script> <script type="text/javascript" src="webcm_data/ajax.js"></script> <script language="Javascript"> <!-- function chk(){ top.frames[0].m_akt=1; top.frames[1].location.href = "/html/m_startseite.htm"; status(5,0,"#520092036634#0001@t-online.de",'1'); oldversion = false; if (top.frames[0].provname.length>2) oldversion = true; if (!(top.frames[0].check_dirty)) oldversion = true; if (!(top.frames[0].showlogin)) oldversion = true; if (!(top.frames[0].voipprovemptypass)) oldversion = true; else { if (top.frames[0].voipprovemptypass[top.frames[0].voipprovemptypass.length-1] != top.frames[0].voipprovemptypass[0]) oldversion = true } if (oldversion) { alert("Sie haben erfolgreich eine neue Firmware-Version aufgespielt.\x0d\x0a\x0d\x0a"+ "Bitte leeren Sie jetzt den Cache Ihres Browsers (Temporäre Internetdateien) und\x0d\x0a"+ "starten Sie das Konfigurationsprogramm erneut."); } setTimeout('stReload()',10000); } function stReload(){ ajaxInit(); if (http) { var req = "/cgi-bin/webcm?getpage=../html/query.txt&var:cnt=5"; req += "&var:n0=connection0:pppoe:status/connect"; req += "&var:n1=sar:status/dsl_carrier_state"; req += "&var:n2=box:status/hint_dsl_no_cable"; req += "&var:n3=connection0:pppoe:settings/username"; req += "&var:n4=connection0:settings/enabled"; ajaxGet(req,ajaxCallback); } else { var ishow = nr_akt; if (ihg > 0) ishow = 0; // Hintergrundtimer schon gestartet? top.frames[2].location.href = "/cgi-bin/webcm?getpage=../html/hcti_startseite.htm&var:ishow="+ishow; } } function ajaxCallback(){ try { if (http.readyState==4 && http.status==200) { var resp = http.responseText; if (resp) { var part = resp.split(String.fromCharCode(10)); if (part.length>2) status(part[0],part[2],part[3],part[4]); } setTimeout('stReload()',10000); } } catch(e) { status(0,0,"foo",1); } } function as(nr){ top.frames[0].as_akt = nr; nr+=1; top.frames[2].location.href = "/cgi-bin/webcm?getpage=../html/hcti_telefon_as.htm&var:as="+nr; top.frames[1].document.getElementById("m_but1").style.color='#000000'; top.frames[1].document.getElementById("m_but1").style.backgroundImage='none'; top.frames[0].m_akt=33; top.frames[1].document.getElementById("m_but33").style.color='#FFFFFF'; top.frames[1].document.getElementById("m_but33").style.backgroundImage='url(/html/pic_m_marker.gif)'; } function stInet(um){ if (um=="1") document.inetform.PostCon.disabled = false; if (um=="0") { document.inetform.PostDis.disabled = false; document.inetform.PostState.value = 0; } document.inetform.submit(); } function stUnlock(um){ if (um=='1' || sperrwarn()) { document.lockform.PostOn.value = um; document.lockform.submit(); } } function status(state,nocable,username,unlocked) { var image = 'aktiv'; var li = null; var re = null; var info = '46'; if (unlocked==0) { image = 'gesperrt'; re = 'unlock'; info = '44'; } else { re = 'lock'; li = 'disconnect'; if (state!=5) { li = 'connect'; if (nocable==1) { image = 'kein_dsl'; re = null; li = null; info = '43'; } else { if (username=="") { image = 'keine_zdat' re = null; li = null; info = '41'; } else { image = 'getrennt'; info = '45'; } } } } document.getElementById("c_status").innerHTML='<img border="0" src="/html/pic_c_inet_'+image+'.gif" onmouseover=i_showElem('+info+') onmouseout=i_showElem(0)>'; li = null; if (li==null) { document.getElementById('disconnect').style.visibility = 'hidden'; document.getElementById('connect').style.visibility = 'hidden'; } else { if (li=='disconnect') { document.getElementById('disconnect').style.visibility = 'visible'; document.getElementById('connect').style.visibility = 'hidden'; } else { document.getElementById('disconnect').style.visibility = 'hidden'; document.getElementById('connect').style.visibility = 'visible'; } } if (re==null) { document.getElementById('lock').style.visibility = 'hidden'; document.getElementById('unlock').style.visibility = 'hidden'; } else { if (re=='lock') { document.getElementById('lock').style.visibility = 'visible'; document.getElementById('unlock').style.visibility = 'hidden'; } else { document.getElementById('lock').style.visibility = 'hidden'; document.getElementById('unlock').style.visibility = 'visible'; } } } function sperrwarn(){ return confirm("Wenn Sie das Internet sperren, werden alle Verbindungen ins Inter-\x0d\x0a" + "net sofort getrennt. Das betrifft auch Telefongespräche, die über\x0d\x0a" + "das Internet geführt werden.\x0d\x0a"+ "Ein erneuter Verbindungsaufbau wird solange verhindert, bis diese\x0d\x0a" + "Sperre mit 'Internet freischalten' wieder aufgehoben wird.\x0d\x0a" + "\x0d\x0a" + "Um den Internetzugang weiterhin zu ermöglichen, klicken Sie auf\x0d\x0a" + "'Abbrechen'.\x0d\x0a" + "\x0d\x0a" + "Um das Internet jetzt zu sperren und alle Verbindungen zu trennen\x0d\x0a" + "klicken Sie auf 'OK'."); } function rahmen(high, typ){ if (high==0){ document.getElementById("t_but" + typ).style.color='#000000'; document.getElementById("t_but" + typ).style.borderColor='#666666'; } else{ document.getElementById("t_but" + typ).style.color='#E20074'; document.getElementById("t_but" + typ).style.borderColor='#E20074'; } } function butrahmen(high, typ){ if (high==0){ document.getElementById(typ).style.color='#000000'; document.getElementById(typ).style.borderColor='#666666'; } else{ document.getElementById(typ).style.color='#E20074'; document.getElementById(typ).style.borderColor='#E20074'; } } function bildrahmen(high,nr){ if (high==1){ document.getElementById("c_as" + nr).style.borderColor='#E20074'; } else{ document.getElementById("c_as" + nr).style.borderColor='#666666'; } i_showElem(8*high); } //--> </script> <link rel="stylesheet" href="webcm_data/style.css" type="text/css"> <style type="text/css"> #c_as0 { POSITION: absolute; LEFT: 313px; TOP: 160px; cursor: pointer; border-color: #666666; border-width: 1px; border-style: solid; } #c_as1 { POSITION: absolute; LEFT: 339px; TOP: 160px; cursor: pointer; border-color: #666666; border-width: 1px; border-style: solid; } #c_status { POSITION: absolute; LEFT: 0px; TOP: 282px; } #i_content41 {Z-INDEX: 2; POSITION: absolute; LEFT: 10px; WIDTH: 180px; TOP: 10px; VISIBILITY: hidden} #i_content42 {Z-INDEX: 2; POSITION: absolute; LEFT: 10px; WIDTH: 180px; TOP: 10px; VISIBILITY: hidden} #i_content43 {Z-INDEX: 2; POSITION: absolute; LEFT: 10px; WIDTH: 180px; TOP: 10px; VISIBILITY: hidden} #i_content44 {Z-INDEX: 2; POSITION: absolute; LEFT: 10px; WIDTH: 180px; TOP: 10px; VISIBILITY: hidden} #i_content45 {Z-INDEX: 2; POSITION: absolute; LEFT: 10px; WIDTH: 180px; TOP: 10px; VISIBILITY: hidden} #i_content46 {Z-INDEX: 2; POSITION: absolute; LEFT: 10px; WIDTH: 180px; TOP: 10px; VISIBILITY: hidden} </style></head><body onload="chk()"> <map name="M1"><area shape="rect" coords="44,388,75,425" title="Steckernetzgerät Buchse" nohref="" onmouseover="i_showElem(2)" onmouseout="i_showElem(0)"><area shape="rect" coords="194,388,241,425" title="Ethernet LAN Buchse" nohref="" onmouseover="i_showElem(5)" onmouseout="i_showElem(0)"><area shape="rect" coords="302,388,352,425" title="T-DSL Anschluss" nohref="" onmouseover="i_showElem(7)" onmouseout="i_showElem(0)"><area shape="rect" coords="30,252,370,278" title="Leuchtanzeigen (LED)" nohref="" onmouseover="i_showElem(1)" onmouseout="i_showElem(0)"> </map> <div id="c_Frame"> <div id="c_bild"><img src="webcm_data/pic_c_startbild.jpg" usemap="#M1" border="0"></div> <script language="Javascript"> <!-- var i; for (i=0;i < 2;i++){ document.write('<DIV id=c_as' + i + ' onclick=as(' + i + ') onmouseover=bildrahmen(1,' + i + ') onmouseout=bildrahmen(0,' + i + ')><img src="/html/pic_c_as' + (i+1) + '.gif"></DIV>'); } //--> </script><div style="border-color: rgb(102, 102, 102);" id="c_as0" onclick="as(0)" onmouseover="bildrahmen(1,0)" onmouseout="bildrahmen(0,0)"><img src="webcm_data/pic_c_as1.gif"></div><div style="border-color: rgb(102, 102, 102);" id="c_as1" onclick="as(1)" onmouseover="bildrahmen(1,1)" onmouseout="bildrahmen(0,1)"><img src="webcm_data/pic_c_as2.gif"></div> <div id="c_status"><img src="webcm_data/pic_c_inet_aktiv.gif" onmouseover="i_showElem(46)" onmouseout="i_showElem(0)" border="0"></div> </div> <div id="t_Frame"> <div style="visibility: hidden;" class="t_butli" id="disconnect" onclick='stInet("0")' onmouseover='butrahmen(1,"disconnect")' onmouseout='butrahmen(0,"disconnect")'>Internet trennen</div> <div style="visibility: hidden;" class="t_butli" id="connect" onclick='stInet("1")' onmouseover='butrahmen(1,"connect")' onmouseout='butrahmen(0,"connect")'>Internet verbinden</div> <div style="border-color: rgb(102, 102, 102); visibility: visible; color: rgb(0, 0, 0);" class="t_butre" id="lock" onclick='stUnlock("0")' onmouseover='butrahmen(1,"lock")' onmouseout='butrahmen(0,"lock")'>Internet sperren</div> <div style="visibility: hidden;" class="t_butre" id="unlock" onclick='stUnlock("1")' onmouseover='butrahmen(1,"unlock")' onmouseout='butrahmen(0,"unlock")'>Internet freischalten</div> </div> <form name="inetform" method="post" action="/cgi-bin/webcm"> <input name="getpage" value="../html/hcti_startseite.htm" type="hidden"> <input name="errorpage" value="../html/hcti_startseite.htm" type="hidden"> <input name="connection0:settings/cmd_connect" value="1" disabled="disabled" id="PostCon" type="hidden"> <input name="connection0:settings/cmd_disconnect" value="1" disabled="disabled" id="PostDis" type="hidden"> <input name="var:state" value="5" id="PostState" type="hidden"> </form> <form name="lockform" method="post" action="/cgi-bin/webcm"> <input name="getpage" value="../html/hcti_startseite.htm" type="hidden"> <input name="errorpage" value="../html/hcti_startseite.htm" type="hidden"> <input name="connection0:settings/enabled" id="PostOn" type="hidden"> </form> <div id="i_Frame"> <div style="visibility: visible; color: rgb(0, 0, 0);" id="i_content"> <h2>Konfigurationsprogramm</h2> <p>Dieses Programm ermöglicht es Ihnen, Einstellungen in Ihrem Router vorzunehmen.</p> <p><b><font color="#999999">ASSISTENT</font></b><br> <b>> Schritt für Schritt</b><br> Für den Einstieg empfehlen wir Ihnen den Assistenten. Er führt Sie Schritt für Schritt durch die notwendigen Einstellungen.</p> <p><b><font color="#999999">KONFIGURATION</font></b><br> Erfahrene Benutzer können in diesem Bereich detaillierte Einstellungen vornehmen.</p> <p><b><font color="#999999">STATUS</font></b><br> In der Übersicht sehen Sie die wichtigsten Infos zum Status.</p> <p><b><font color="#999999">VERWALTUNG</font></b><br> Hier können Sie Daten laden und sichern.</p> <p>Weitere Informationen erhalten Sie, wenn Sie den Mauszeiger über die Grafik bewegen.</p> </div> <div id="i_content1"> <h2>Leuchtanzeigen (LED)</h2> <p><b>T-DSL</b><br> Zeigt die Bereitschaft des Routers an.<br> Leuchtet dauerhaft, wenn Stromzufuhr und Verbindung zum T-DSL bestehen.<br> Blinkt, wenn Stromzufuhr besteht aber die Verbindung zum T-DSL unterbrochen ist.</p> <p><b>Online</b><br> Zeigt bestehende Internetverbindung an.</p> <p><b>Internet</b><br> Signalisiert eine aktive Telefon- verbindung über das Internet.</p> <p><b>Festnetz</b><br> Signalisiert eine aktive Telefon- verbindung über den Festnetzanschluss.<br> Blinkt wenn eine Nachricht in der T-NetBox gespeichert ist.</p> <p><b>WLAN</b><br> Leuchtet dauerhaft, wenn WLAN eingeschaltet ist.</p> </div> <div id="i_content2"> <h2><b>Anschlüsse</b></h2> <p><b>12VDC/1A</b><br> Buchse zum Anschluss des Netzgerätes.</p> </div> <div id="i_content5"> <h2><b>Anschlüsse</b></h2> <p><b>LAN</b><br> Ethernet-Buchse für den Anschluss eines PCs oder eines weiteren Hubs/Switches.</p> </div> <div id="i_content7"> <h2><b>Anschlüsse</b></h2> <p><b>T-DSL/T-Net</b><br> Über diesen Anschluss stellen Sie die Verbindung zum Splitter her. Über den Splitter erfolgt die Verbindung in das öffentliche Netz.</p> </div> <div style="visibility: hidden; color: rgb(144, 144, 144);" id="i_content8"> <h2><b>Anschlüsse</b></h2> <p><b>Interne Anschlüsse</b><br> Klicken Sie hier, um Ihren internen Anschluss für die Telefonie einzustellen. Die Buchse zum Einstecken des Telefons finden Sie auf der Unterseite dieses Gerätes.</p> </div> <div id="i_content9"> <h2><b>Status Internetverbindung</b></h2> <p>Hier sehen Sie den Status der Internetverbindung.</p> </div> <div id="i_content41"> <h2><b>Status Internetverbindung</b></h2> <p>Keine Zugangsdaten.</p> <p>Eine Verbindung ins Internet ist nicht möglich, weil Sie noch keine Zugangsdaten eingegeben haben.</p> <p>Klicken Sie im Menü links, unter Assistent auf die Schaltfläche <b>Schritt für Schritt</b>.</p> <p>Durchlaufen Sie den Assistenten, Sie werden innerhalb des Assistenten nach den Zugangsdaten gefragt.</p> </div> <div id="i_content43"> <h2><b>Status Internetverbindung</b></h2> <p>Kein DSL.</p> <p>Eine Verbindung ins Internet ist nicht möglich, weil keine T-DSL Verbindung besteht.</p> <p>Prüfen Sie bitte ob Ihr DSL Kabel zwischen Ihrem Endgerät (T-DSL Buchse) und dem Splitter richtig verbunden ist.</p> </div> <div id="i_content44"> <h2><b>Status Internetverbindung</b></h2> <p>Internetverbindung gesperrt.</p> <p>Zum Freischalten der Internetverbindung klicken Sie bitte auf die Schaltfläche: 'Internet freischalten'.</p> </div> <div id="i_content45"> <h2><b>Status Internetverbindung</b></h2> <p>Internetverbindung getrennt.</p> <p>Die Dauerverbindung ist eingeschaltet, es wird versucht die Internetverbindung herzustellen.</p> <p>Zum dauerhaften Sperren der Internetverbindung klicken Sie bitte auf die Schaltfläche: 'Internet sperren'.</p> </div> <div style="visibility: hidden; color: rgb(96, 96, 96);" id="i_content46"> <h2><b>Status Internetverbindung</b></h2> <p>Internetverbindung aktiv.</p> <p>Die Dauerverbindung ist eingeschaltet.</p> <p>Zum dauerhaften Sperren der Internetverbindung klicken Sie bitte auf die Schaltfläche: 'Internet sperren'.</p> </div> </div> </body></html> i hope this is what ya want^^ If you open IE and browse to "https://192.168.2.1/cgi-bin/webcm?login:command/password=1234" does this page come up? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Busti Posted June 11, 2007 Author Share Posted June 11, 2007 No,it just opens the Main site. My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity Link to comment Share on other sites More sharing options...
DaleHohm Posted June 11, 2007 Share Posted June 11, 2007 See this in the source: <div style="visibility: hidden;" class="t_butli" id="disconnect" onclick='stInet("0")' onmouseover='butrahmen(1,"disconnect")' onmouseout='butrahmen(0,"disconnect")'>Internet trennen</div> Try $oDiscon = _IEGetObjByID($oIE, "disconnect") _IEAction($oDiscon, "click") Dale 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 Link to comment Share on other sites More sharing options...
Busti Posted June 12, 2007 Author Share Posted June 12, 2007 (edited) There comes : E:\AutoIt3\Include\IE.au3 (2691) : ==> The requested action with this object has failed.: $o_object.Click () $o_object.Click ()^ ERROR oÝ÷ ØGb´(¶+p¢¹" èÁ«¢+Ø(¥¹±Õ±Ðí%¹ÔÌÐì(¥¹±Õ±Ðí%9йÔÌÐì()±½° ½¹ÍÐÀÌØíY}I =99 Q}Q%5HôÄÀÀÀ)±½°ÀÌØíY}%@ô}Ñ%@ ¤() ÅÕ½ÐíI½¹¹Ñ¥¹ÅÕ½Ðì¤) ÅÕ½Ðí=±%@èÅÕ½ÐìµÀìÀÌØíY}%@¤((ÀÌØí9Ý%@ô}I½¹¹Ð ¤) ÀÌØí9Ý%@ôÀÌØíY}%@¤¤)]¡¥±ÀÌØí9Ý%@ôÀÌØíY}%@(% ÅÕ½ÐìÀÌØí=±%@ô}Ñ%@ ¤¸¸¹IÑÉ她I½¹¹ÐÅÕ½Ðì¤($ÀÌØí9Ý%@ô}I½¹¹Ð ¤(%M±À ÀÌØíY}I =99 Q}Q%5H¤($ÀÌØíY}%@ô}Ñ%@ ¤(%%ÉɽÈQ¡¸($% ÅÕ½Ðí9½Ð ½¹¹ÑÐÌÌìÅÕ½Ðì¤($%±Í($% ÀÌØí9Ý%@µÀìÅÕ½ÐìôÅÕ½ÐìµÀìÀÌØíY}%@µÀìÅÕ½ÐìM±ÁQ¥µÈèÅÕ½ÐìµÀìÀÌØíY}I =99 Q}Q%5H¤(%¹%)]¹) ÅÕ½ÐíI½¹¹ÑÐÌÌìÅÕ½Ðì¤) ÅÕ½Ðí9Ü%@èÅÕ½ÐìµÀì}Ñ%@ ¤¤()Õ¹}I½¹¹Ð ÀÌØíÍI½ÕÑÉUÉ°ôÅÕ½ÐìÄäȸÄØà¸È¸ÄÅÕ½Ðì°ÀÌØíÍI½¹¹ÑUÉ°ôÅÕ½Ðí¡ÑÑÀè¼¼ÄäȸÄØà¸È¸Ä½¤µ¥¸½Ý´ýÑÁôÐØìÐØ콡ѵ°½¡Ñ¥}ÍÑÉÑͥѹ¡Ñ´ÅÕ½Ðì°ÀÌØíͥͽ¹¹Ñ ѸôÅÕ½Ðí¥Í½¹¹ÐÅÕ½Ðì°ÀÌØíÍ ½¹¹Ñ ѸôÅÕ½Ðí½¹¹ÐÅÕ½Ðì°ÀÌØíͼôÅÕ½Ðí±¥¬ÅÕ½Ðì°ÀÌØíµÌôÌÀÀÀ¤($ÀÌØí½%ô}% ÉÑ ÅÕ½Ðí½ÕÐé±¹¬ÅÕ½Ðì°À°Ä¤(%}%9Ù¥Ñ ÀÌØí½%°ÀÌØíÍI½¹¹ÑUÉ°¤($ÀÌØí½¥Í½¸ô}%Ñ=© å% ÀÌØí½%°ÀÌØíͥͽ¹¹Ñ Ѹ¤(%}%Ñ¥½¸ ÀÌØí½¥Í½¸°ÀÌØíͼ¤(%}%1½]¥Ð ÀÌØí½%¤($íM±À ÀÌØíµÌ¤(%}%9Ù¥Ñ ÀÌØí½%°ÀÌØíÍI½¹¹ÑUÉ°¤($ÀÌØí½ ½¹¹ô}%Ñ=© å% ÀÌØí½%°ÀÌØíÍ ½¹¹Ñ Ѹ¤(%}%Ñ¥½¸ ÀÌØí½ ½¹¹°ÀÌØíͼ¤(%}%1½]¥Ð ÀÌØí½%¤($íM±À ÀÌØíµÌ¤(%}%EեРÀÌØí½%¤($ÀÌØí¹%@ô}Ñ%@ ¤(%IÑÕɸÀÌØí¹%@)¹Õ¹()Õ¹ ÀÌØí¤(% ½¹Í½±]É¥Ñ ÅÕ½Ðím UulÅÕ½ÐìµÀí!=UHµÀìÅÕ½ÐìèÅÕ½ÐìµÀí5%8µÀìÅÕ½Ðì¸ÅÕ½ÐìµÀíMµÀìÅÕ½ÐítèÅÕ½ÐìµÀìÀÌØíµÀí1¤)¹Õ¹(( Thanks Edited June 12, 2007 by Busti My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity Link to comment Share on other sites More sharing options...
Busti Posted June 19, 2007 Author Share Posted June 19, 2007 *bump* simple question,how can i make a "post" with ie.au3 ? <3 My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity Link to comment Share on other sites More sharing options...
DaleHohm Posted June 19, 2007 Share Posted June 19, 2007 *bump*simple question,how can i make a "post" with ie.au3 ? <3See helpfile... look at _IEFormElementSetValue, open a new thread for any further questions -- don't pile on please.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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now