tmacher Posted May 16, 2007 Share Posted May 16, 2007 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 Link to comment Share on other sites More sharing options...
tmacher Posted May 16, 2007 Author Share Posted May 16, 2007 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. 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