Jump to content

reconect in background

Recommended Posts

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

_IECreate("", 0, 0)
Sleep (6600)
Send("java script:uiDoDisconnect();")
Sleep (6600)
Send("java script:uiDoConnect();")
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.)


Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...