how to use a batch script to start mozilla and fill out a form

  • Thread starter Thread starter mike
  • Start date Start date
M

mike

Hi,

I have a problem that is quite annoying. Every morning I have to start
firefoxand goto a specific webaddress and login using 'user' and
'password' to access clearcase. Does anyone know a way to do this in a
batch script? This would save me a lot of time :-)

cheers,

//mike
 
mike said:
Hi,

I have a problem that is quite annoying. Every morning I have to start
firefoxand goto a specific webaddress and login using 'user' and
'password' to access clearcase. Does anyone know a way to do this in a
batch script? This would save me a lot of time :-)

cheers,

//mike

You could experiment with the following batch file:
@echo off
set account=mike
set pw=tyson
echo > "%temp%\vbs.vbs" Set ws=CreateObject("WScript.Shell")
echo >>"%temp%\vbs.vbs" ws.sendkeys "{Home}"
echo >>"%temp%\vbs.vbs" sleep 500
echo >>"%temp%\vbs.vbs" ws.sendkeys "%account%{Tab}"
echo >>"%temp%\vbs.vbs" sleep 500
echo >>"%temp%\vbs.vbs" ws.sendkeys "%pw%{Enter}"
"C:\Program Files\Mozilla Firefox\firefox.exe"
ping localhost -n 10 > nul
cscript //nologo "%temp%\vbs.vbs"

You will need to adjust the various navigation keys to suit
your web page. Perhaps you need the {Home} key, perhaps
you don't. Perhaps you need the {Tab} key to move to the
password field, perhaps you need a different key.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top