python autogui 对于消息框的操作
import pyautogui as pag pag.alert() #提示框,单纯的提示暂停。
import pyautogui as pag
pag.alert('aaa','bbb','ccc') #修改提示框的文字。import pyautogui as pag
pag.alert('aaa','bbb','ccc',timeout=5000) #5000毫秒,5秒后自动关闭。是否框 import pyautogui as pag pag.confirm() #点是按钮返回的是ok,点击否按钮,返回值是cancel
import pyautoguias pag pag.prompt() #文本框,输入完内容点击确定以后,返回值是用户输入的内容
import pyautogui as pag pag.password() #默认星号遮挡
import pyautogui as pag pag.password(mask='+') #加号遮挡