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?
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
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

