I've been trying to produce the "@" character with pyautogui:
import pyautogui
pyautogui.typewrite("@")
pyautogui.typewrite("\x40")
But I can't seem to make it type a "@" in any way.
My keyboard uses AltGr + 2 to create an "@" symbol, but I haven't been able to make that work either.
I did not find a way to do it with the write method, but in some scenarios you could work around it by putting the @ on the clipboard and paste it:
import pyperclip
pyperclip.copy('@')
pyautogui.hotkey('ctrl', 'v')
pyautogui.hotkey('altright','2')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With