Vbscript Automated Task
This script opens up a web browser, inputs a URL of www.youtube.com, and goes to the print option on the browser.
Task
1. Opens Webpage
2. F6 key to go to the URL input section on the internet browser.
3. types in www.youtube.com
4. Press the enter key.
5. Ctrl + P to open the print option on the firefox browser.
6. Tab key to go to properties on the print option.
7. Enter to go to properties on the print option.
Code
Option Explicit
Dim a,b
Set a=CreateObject("wscript.shell")
Set b=Wscript.CreateObject("wscript.Shell")
a.run """C:\Program Files (x86)\Mozilla Firefox\firefox.exe"""
wscript.sleep (3000)
b.Sendkeys "{F6}"
wscript.sleep (3000)
b.Sendkeys "www.youtube.com"
wscript.sleep (4000)
b.Sendkeys "{ENTER}"
wscript.sleep (6000)
b.Sendkeys "^p"
wscript.sleep (2000)
b.Sendkeys "{TAB}"
wscript.sleep (1000)
b.Sendkeys "{ENTER}"
I have a website which contains the links to all my batch programming videos.
https://he-1000-1975.com/video-directory/#F