Jump to content
Sign in to follow this  
tmacher

reconect in background

Recommended Posts

tmacher

Ok maybe I start with code

#include <IE.au3>
$answer = MsgBox(4, "Reconect Tool for tmacher", "This script will reconect your internet conection.  Run(or wait 10s)?", 10)

If $answer = 7 Then
    Exit
EndIf

_IECreate("http://192.168.1.1/", 0, 0)
Send("admin")
Send("{TAB}")
Send("password")
Send("{ENTER}")
Sleep (6600)
Send("{TAB}")
Send("java script:uiDoDisconnect();")
Send("{ENTER}")
Sleep (6600)
Send("{TAB}")
Send("java script:uiDoConnect();")
Send("{ENTER}")
Sleep (6600)
WinClose(">Home>Home - Microsoft Internet Explorer")

This script I wrote to automate the process of reconnecting. I must do this in such weird way because interface of my router is written in Java script. I have tried the _IE things but with no effects(maybe I just don't know how). The problem is that I want the IE window be hidden but eventually send keys to it. In other words I would like that the script works in background with no interference in other programs.I will be very happy if somebody could help me a litle bit.(I attach .txt with source code of mt routers login page.)

java_login.txt

Share this post


Link to post
Share on other sites
tmacher

and yes I've tried this #343620 if somebody like to know and yes it doesn't help me too(some problems with key send timing.

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  

×