|
Answer» Hey, I'm very very new to Batch files, working on my first one right now as a potential solution to a problem I am facing. For a background, I use a Kyocera KR1 mobile AP CONNECTED through an EVDO card for mobile internet access. The problem is, the router is often times POWERED down, and each time it is powered down, I must go through and access the router with ADMIN rights to reconnect to the EVDO service. As FAR as I can TELL, there is no auto-connect option built into the router... for whatever reason. Anyways, I've worked it down to I've got the exact site I need to go to, with my username and pass set to auto login, I just need to somehow simulate pressing an enter key.... is there anyway to do this within the batch file?
I'm doing something like... start http://xxx.xxx.x.x/do_connect.cgi
i then get prompted for user name and pass, which is auto filled, I just need to somehow simulate the Enter Key being pressed... any help would be greatly appreciated. Thanks much!
JoeI am not aware of any batch method of simulating the enter key. I suspect your start command will launch your browser with the router's address. For Windows, you can use VBScript or JScript both of which are free and suppport the SendKeys method.
Also for Windows and free is AutoIt which claims anything can be scripted.
Good luck. 8-)Thanks for your assistance. I was in face able to find a solution for my problem, using a WshShell, but thanks for your suggestion!
|