Reputation: 71
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
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