JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 05.11.2011, 23:54
jdfrnewbie
Guest
 
Posts: n/a
Default Windows solution for Orange LiveBox 2 Sagem reconnection

Hi all,

Please find hereafter a script that help a Livebox to reconnect.
Works fine with LiveBox 2 Sagem -version FAST3XXX_6814AC
under Windows 7.
If LiveBox version is not this one, it may work as weel, as soon as html pages & elements ids have not changed.

The HTML header solution doesn't work because it records html dialog and livebox password encryption depends on session.
The solution is to redo the typing and clinking as if we where using Internet Explorer. And in fact, we will use it via vbscript.

First you have to create the following vbscript (with your prefered editor - notepad is OK) :

set args = wscript.Arguments
set nav = CreateObject("InternetExplorer.Application")
nav.Visible = true
nav.navigate args(0)
Do While not nav.ReadyState = 4
Loop
nav.document.All.tags("input").Item("authlogin").Value = "admin"
nav.document.All.tags("input").Item("authpasswd").Value = args(1)
nav.document.formu.submit
WScript.Sleep(1000)
Do While not nav.ReadyState = 4
Loop
nav.document.getElementById("rubric2").Click
WScript.Sleep(1000)
Do While not nav.ReadyState = 4
Loop
nav.document.getElementById("link3").Click
WScript.Sleep(1000)
Do While not nav.ReadyState = 4
Loop
nav.document.getElementById("rowbutt3").Click
WScript.Sleep(8000)
Do While not nav.ReadyState = 4
Loop
nav.Quit


Save the script anywhere you want on you disk.
Then Open JDownloader Preferences
-> Modules/Reconnect
-> choose "External"
In command type : <the-path-to-your-vbscript.vbs> including the .vbs suffix
In the parameter window,
- on 1rst line, type your livebox ip (for exemple: 192.168.1.1)
- on 2nd line, type your LiveBox admin password


Have better reconnections
Regards
Reply With Quote
  #2  
Old 05.11.2011, 23:56
jdfrnewbie
Guest
 
Posts: n/a
Default

On script copy there is a html mismatch.
).Value has no blank inside
Reply With Quote
  #3  
Old 06.11.2011, 10:51
remi
Guest
 
Posts: n/a
Default

Thanks for your contribution.

I would use the code tags of the forum to post your script as the board's software inserts spaces that break your script
Reply With Quote
  #4  
Old 15.11.2011, 23:24
mOrfiUs mOrfiUs is offline
Super Loader
 
Join Date: Nov 2011
Posts: 28
Default

Hi all.
This simple code also work for

Livebox 2 (Livebox-83be (Firmware FAST3yyy_691288))

Greetins from Spain
Bye.

Code:
[[[HSRC]]]
    [[[STEP]]]
        [[[REQUEST]]]
        GET /index.cgi?page=internet&action=reset&authlogin=%%%user%%%&authpasswd=%%%pass%%%&authaction=login HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]
[[[/HSRC]]]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 03:51.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.