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

编辑增强插件如果使用 SendInput 则会出现打出kj的情况。 #38

Closed
snomiao opened this issue Apr 11, 2022 · 1 comment
Closed
Assignees
Labels

Comments

@snomiao
Copy link
Member

snomiao commented Apr 11, 2022

目前已经更换为SendEvent
SendEvent {Blind}{up}

上方向键发送(n:=1)
{
    ; 在 OneNote 笔记内部直接 Send 上下方向键无反应, 故特殊处理使用 ControlSend 。
    if (hWnd := WinActive(".*- OneNote ahk_class Framework\:\:CFrame ahk_exe ONENOTE.EXE")) {
        ControlGetFocus, focusedClassNN, ahk_id %hWnd%
        if (focusedClassNN == "OneNote`:`:DocumentCanvas1") {
            loop %n%{
                ControlSend, OneNote::DocumentCanvas1, {Blind}{Up}
            }
        }
    }
    loop %n%{
        ; 这里如果使用 SendInput 则会出现打出kj的情况。
        SendEvent {Blind}{up}
    }
}
@snomiao snomiao added the bug label Apr 11, 2022
@snomiao snomiao self-assigned this Apr 11, 2022
@snomiao
Copy link
Member Author

snomiao commented Apr 11, 2022

#31

@snomiao snomiao closed this as completed Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant