Automatically enter the login details batch file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
michelvaillancourt
Posts: 1
Joined: 30 Aug 2018 02:48

Automatically enter the login details batch file

#1 Post by michelvaillancourt » 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"

Ed Dyreen
Expert
Posts: 1568
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Automatically enter the login details batch file

#2 Post by Ed Dyreen » 01 Sep 2018 09:55

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.

ShadowThief
Expert
Posts: 892
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Automatically enter the login details batch file

#3 Post by ShadowThief » 01 Sep 2018 22:10

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.

Post Reply