Page 1 of 1

Automatically enter the login details batch file

Posted: 30 Aug 2018 02:55
by michelvaillancourt
Hi,

I have created a batch files that open a few websites in chrom. My problem is that i would like it to open them and enter the login details like : email and password and user and password.
can some one help me?

Code:

@ECHO OFF
SET BROWSER=chrome.exe
SET WAIT_TIME=2
START %BROWSER% -new-tab "http://Semple website"
START %BROWSER% -new-tab "http://Semple website"
@ping 127.0.0.1 -n %WAIT_TIME% -w 1000 > nul
START %BROWSER% -new-tab "http://Semple website"

Re: Automatically enter the login details batch file

Posted: 01 Sep 2018 09:55
by Ed Dyreen
michelvaillancourt wrote:
30 Aug 2018 02:55
Hi,

I have created a batch files that open a few websites in chrom. My problem is that i would like it to open them and enter the login details like : email and password and user and password.
can some one help me?

Code:

@ECHO OFF
SET BROWSER=chrome.exe
SET WAIT_TIME=2
START %BROWSER% -new-tab "http://Semple website"
START %BROWSER% -new-tab "http://Semple website"
@ping 127.0.0.1 -n %WAIT_TIME% -w 1000 > nul
START %BROWSER% -new-tab "http://Semple website"
The best way to do that would be by interfacing with the DOM ( Document Object Model ). I only did it with a language called autoIT. But the last time I checked it only supported Internet Explorer ( ie.au3 ). Some guys wrote a library that also supported firefox ( ff.au3 ). So unless you are willing to connect through Internet Explorer I can't really help. Also this is a bit complex, you'll need some basic understanding of DOM. Probably applications exist that can be run straight from the command prompt also.

Re: Automatically enter the login details batch file

Posted: 01 Sep 2018 22:10
by ShadowThief
You might also want to look into Selenium for automating logins, as that can be used on IE, Firefox, or Chrome. Beyond that, I'd recommend custom Greasemonkey scripts.