F
F
Foxrey2020-08-24 11:31:09
Python
Foxrey, 2020-08-24 11:31:09

The code should enter chrome itself on the command line and open it, then go to YouTube, but // is entered on the command line instead of chrome, what should I do?

import pyautogui as pg

pg.hotkey("winleft")
pg.typewrite("chrome")
pg.typewrite("www.youtube.com\n", 0.2)

pg.hotkey("winleft", "up")
pg. hotkey("ctrl", "t")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pecenka, 2020-08-24
@Pecenka

Use the os plugin to open the YouTube shortcut

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question