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

keydown doesn't work with spanish "ñ". Possible solution in Win10 #100

Open
2 tasks
leomm20 opened this issue Jun 15, 2023 · 0 comments
Open
2 tasks

keydown doesn't work with spanish "ñ". Possible solution in Win10 #100

leomm20 opened this issue Jun 15, 2023 · 0 comments

Comments

@leomm20
Copy link

leomm20 commented Jun 15, 2023

Checklist

  • I use the latest release of atbswp
  • The issue is not existing yet

Verbose log

PASTE VERBOSE LOG HERE

Miscellaneous information

Operating System

Windows 10

Desktop Environment/Window Manager

Write here

Python version

3.11

Description

KeyDown doesn't work with spanish "ñ" (it doesn't break, but doesn't print anything).
Possible solution in Windows 10 at least:

In HEADER, add:
f"# -- coding: ISO-8859-1 --\n"
f"import pyperclip\n"

in on_press add:

if key.char == 'ñ':
                self._capture.append("pyperclip.copy('ñ')")
                self._capture.append("pyautogui.hotkey('ctrl', 'v')")
elif key.char == 'Ñ':
                self._capture.append("pyperclip.copy('Ñ')")
                self._capture.append("pyautogui.hotkey('ctrl', 'v')") 
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