jackgames
jackgames

Reputation: 71

Python pyautogui and double quotes

I try to type in double quotes ('"') with pyautogui.write() function but what I get is the caracter 3 instead ! How to type in those double quotes ??

Upvotes: 1

Views: 454

Answers (1)

EasyWay Coder
EasyWay Coder

Reputation: 341

That's because python doesn't accept inverted commas in strings. To do that you'll have to do this:

from pyautogui import *
press("\"")

OR

from pyautogui import *
keyDown("shift")
press("'")
keyUp("shift")

OR

from pyautogui import *
typewrite("\"")

Upvotes: 1

Related Questions