首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AutoHotKey脚本SendInput

AutoHotKey脚本SendInput
EN

Stack Overflow用户
提问于 2016-11-27 16:30:18
回答 1查看 1K关注 0票数 1

我正在尝试用AutoHotKey编写一个小脚本,以替换键以更改键盘布局。应该是这样的:

代码语言:javascript
复制
[=ü
{=Ü
;=ö
:=Ö
'=ä
"=Ä
]='
}="
\=;
|=:

除了:=Ö之外,所有键都可以工作,这将导致:=:

我正确地使用了$和{Raw}吗?

我希望我的帖子不要太混乱。;-)

代码语言:javascript
复制
    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    ; #Warn  ; Enable warnings to assist with detecting common errors.
    SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
    SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

    $[::
        SendInput {Raw}ü
    Return
    ${::
        SendInput {Raw}Ü
    Return


    $;::
        SendInput {Raw}ö
    Return
    $:::
        SendInput {Raw}Ö
    Return


    $'::
        SendInput {Raw}ä
    Return
    $"::
        SendInput {Raw}Ä
    Return


    $]::
        SendInput {Raw}'
    Return
    $}::
        SendInput {Raw}"
    Return


    $\::
        SendInput {Raw};
    Return
    $|::
        SendInput {Raw}:
    Return
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-11-27 18:37:41

如果有类似的问题,这里有一个解决方案:$+;::+用于shift键。变换和;=:

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40831166

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档