I'm actually learning to automate task with PYAUTOGUI
with python 3.x
.
Currently all work perfectly except when I try to write an @
I tried using typewrite()
and press()
same don'st write it.
With this code it write : testgmx.fr
a, b, c, d = pyautogui.locateOnScreen('email.png')
pyautogui.click(x=a, y=b, clicks=1, button='left')
pyautogui.typewrite('test@gmx.fr')
As far as I know, you need to break your mail into two. From your example
import pyautogui
pyautogui.typewrite('test')
pyautogui.hotkey('altright','2') # The @ hotkey in Windows PC
pyautogui.typewrite('gmx.fr')
Hope this helps
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.