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

input_message方法增加auto_backspace参数 #105

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/mouse_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def input_message(
interval: [int, float] = 0.2,
wayland_shift: bool = False,
_ydotool: bool = False,
auto_backspace: bool = True,
):
"""
输入字符串
Expand Down Expand Up @@ -279,7 +280,8 @@ def check_chinese():
_hk.insert(1, "shift")
cls.hot_key(*_hk)
# 目前的方案中,粘贴内容后会在末尾会多出一个空格,临时处理:去掉末尾空格
cls.press_key("backspace")
if auto_backspace:
cls.press_key("backspace")
else:
for key in message:
if _ydotool:
Expand Down
Loading