Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

login chrome browser using script?

I use the school computers on a daily basis, but every time I use the computers, I have to login to all the websites again, including the chrome browser...
I know it only takes a minute or two, but it is quite annoying to do this every time you've been logged off the computer...
I've been using a script that opens all the necessary websites and the schools login site, but how can log in to the chrome browser with the same manner?

Code
@if (@CodeSection == @Batch) @then

@echo off
set SendKeys=CScript //nologo //E:JScript "%~F0"

rem open main login for school
start chrome "innsida ntnu no"
timeout /t 5

rem write username and password into the login
%SendKeys% "username"
%SendKeys% "{TAB}"
%SendKeys% "password"
%SendKeys% "{ENTER}"

rem open BlackBoard & other websites
start chrome "innsida ntnu no/blackboard"
start chrome "www youtube com/watch?v=xv01ZdrnJZI&list=RDxv01ZdrnJZI#"
start chrome "www symbolab com/solver"
start chrome "www falstad com/circuit/"
goto :EOF

@end
// JScript section

var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.SendKeys(WScript.Arguments(0));

I've used a hybrid VBScript-batch file that I found here:
stackoverflow com/questions/42188600/sending-keyboard-input-with-batch-commands

thanks for any help in advance! 🙂

NOTE: cannot posts links
Hey there!

Your script looks okay. I'm not sure what the problem is, but I tested one on facebook.

NOTE: Rather than doing
Code
%SendKeys% "username"
%SendKeys% "{TAB}"
%SendKeys% "password"
%SendKeys% "{ENTER}"

You can do...
Code
%SendKeys% "username{TAB}"
%SendKeys% "password{ENTER}"

Anyways, here's my script...
Code
@if (@CodeSection == @Batch) @then

@echo off
set SendKeys=CScript //nologo //E:JScript "%~F0"

:: Start website
start chrome "<schoolwebsite>"
timeout /t 5

:: Send login info
:: NOTE: You musts use "{TAB}" to navigate to the username and password fields on the desired site...
%SendKeys% "username{TAB}"
%SendKeys% "password{ENTER}"

goto :EOF

@end
// JScript section

var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.SendKeys(WScript.Arguments(0));

There you go! This should do it... 🙂

~Rainbow :3


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™Aug 29, 2026 09:11 AM 1 62 Aug 29, 2026 09:11 AM
Last Post: itcorp
[Shell] by ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™Feb 7, 2025 05:07 PM 0 80 Feb 7, 2025 05:07 PM
Last Post: ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™
[.NET] by t00lsApr 13, 2021 04:00 PM 12 712 Apr 13, 2021 04:00 PM
Last Post: Bumtendo