Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] pyautogui.write('%...') writes '5...' #871

Open
tddschn opened this issue Aug 5, 2024 · 0 comments
Open

[Bug] pyautogui.write('%...') writes '5...' #871

tddschn opened this issue Aug 5, 2024 · 0 comments

Comments

@tddschn
Copy link

tddschn commented Aug 5, 2024

I observed that on my machine (Apple Silicon Mac) with pyautogui 0.9.54, the pyautogui.write(s) method writes the first char as 5 if s starts with %:

Python 3.12.4 (main, Jun  6 2024, 18:26:44) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyautogui
>>> pyautogui.__version__
'0.9.54'
>>> pyautogui.write('%%%')
5%%>>> 5%%
KeyboardInterrupt

In the example, %%% was written as 5%%, which is very weird. I tested writing other strings, and if the first char is %, it always writes 5. However, if I only write a single %, it writes % as expected.

>>> pyautogui.write('%')
%>>> 
KeyboardInterrupt

On US keyboard one would type % with shift + 5 keys. Could you help me figure out why this would happen?

@tddschn tddschn changed the title pyautogui.write('%...') writes '5...' Bug - pyautogui.write('%...') writes '5...' Aug 5, 2024
@tddschn tddschn changed the title Bug - pyautogui.write('%...') writes '5...' [Bug] pyautogui.write('%...') writes '5...' Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant