asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.45k stars 1.26k forks source link

Bug after using Message Box Functions Versions are 0.9.53 #662

Closed djpangxie closed 2 years ago

djpangxie commented 2 years ago

After using the pyautogui.alert()、pyautogui.confirm()、pyautogui.prompt() functions, the calls to the keyboard functions have no effect, but the calls to the mouse functions are normal.This could be a BUG,or maybe it's a problem with my system.If it's a bug please fix it,Thank you very much!Best wishes to everyone! On my operating system:ubuntu 20.04,python interpreter:3.8.10,and scrot、python3-tk、python3-dev、PyTweening、PyScreeeze、PyGetWindow、PymsgBox、MouseInfo are all installed.

djpangxie commented 2 years ago

I'm sorry, this is a cheap mistake I made, the reason the keyboard function fails after calling 'Message Box Functions' is that the window I want to type in has no focus.