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 fixed) Accents and special characters on PT-BR ABNT and other keyboards #346

Open
MagosBoy opened this issue Nov 6, 2024 · 1 comment

Comments

@MagosBoy
Copy link

MagosBoy commented Nov 6, 2024

Related Problem

The code does not write accents like ^~´`... So words that contain áàâãéèêíìîôõ are completely invalid.

Feature Description

Words in Portuguese lose letters with accents
For example: Tênis = Tnis, Calça = Cala

And also do not write or change special characters
For example: "[" = " ", "~" = "^"

@MagosBoy
Copy link
Author

MagosBoy commented Nov 6, 2024

Terminal code:
pyp install Keyboard

Open Pywhatkit/core/core.py

insert on line 7 import keyboard

in:

def send_message(message: str, receiver: str, wait_time: int) -> None:
"""Parses and Sends the Message"""

_web(receiver=receiver, message=message)
time.sleep(7)
click(WIDTH / 2, HEIGHT / 2)
time.sleep(wait_time - 7)
if not check_number(number=receiver):
    for char in message:
        if char == "\n":
            hotkey("shift", "enter")
        else:
            #typewrite(char) <----------------DELETE THIS
            keyboard.write(char) <-----------INSERT THIS
press("enter")

Hope this helps

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