Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question