autopy icon indicating copy to clipboard operation
autopy copied to clipboard

autopy.key.tap(autopy.key.Code.BACKSPACE) not working

Open aranc opened this issue 3 years ago • 1 comments

It seems that tapping a backspace is not working. Is anyone else having this issue?

Some code to reproduce: import autopy import time

autopy.mouse.click() time.sleep(1) autopy.key.tap("x") time.sleep(1) autopy.key.tap(autopy.key.Code.BACKSPACE) time.sleep(1) autopy.key.tap("y") time.sleep(1)

If I open an editor and run the code above, I see xy being typed without any effect from the backspace If I run this while in the terminal window, I see x^[[3~y instead of just y

aran@laptop:~$ pip3 list | grep autopy autopy 4.0.0

aranc avatar Mar 22 '21 23:03 aranc

There are several features of autopy not working for different versions of OS. With the current release of 3.9.1+, not all features have been upgraded. Move all your code that used to utilize this tool to "pyautogui" which enables the same functionality for keyboard and mouse manipulation through python.

Urmila17 avatar Jul 10 '21 03:07 Urmila17