You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
tddschn
changed the title
pyautogui.write('%...') writes '5...'
Bug - pyautogui.write('%...') writes '5...'
Aug 5, 2024
tddschn
changed the title
Bug - pyautogui.write('%...') writes '5...'
[Bug] pyautogui.write('%...') writes '5...'
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 as5
ifs
starts with%
:In the example,
%%%
was written as5%%
, 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.On US keyboard one would type % with shift + 5 keys. Could you help me figure out why this would happen?
The text was updated successfully, but these errors were encountered: