简体   繁体   中英

Write lowercase letters and chars with pyautogui

I just started to learn this module pyautogui, and I already run into troubles. I learned about the write method on this page of the docs, but for some reason, it doesn't write lowercase letters, just uppercase ones, I use Windows operating system, and tried on both Python 3.8 and Python 2.7, I didn't do any installs (other than the pip install of pyautogui), if that helps.

First Check Your CapsLock if You Press CapsLock it will write uppercase letters

otherwise try this code:

import pyautogui as pg

pg.typewrite('text'.lower())

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM