【问题标题】:AutoHotKey script SendInputAutoHotKey 脚本 SendInput
【发布时间】:2016-11-28 02:37:41
【问题描述】:

我正在尝试使用 AutoHotKey 编写一个小脚本来替换键以更改我的键盘布局。它应该像这样工作:

[=ü
{=Ü
;=ö
:=Ö
'=ä
"=Ä
]='
}="
\=;
|=:

除了 :=Ö 之外的所有键都有效,这将导致 :=:

我是否正确使用了 $ 和 {Raw}?

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



    #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

【问题讨论】:

    标签: autohotkey sendinput


    【解决方案1】:

    如果有人有类似的问题,这里有一个解决方案:$+;:: + 是换档键。移位和; =:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-17
      • 2018-05-07
      • 2022-01-19
      • 1970-01-01
      • 1970-01-01
      • 2016-04-23
      • 1970-01-01
      • 2014-04-09
      相关资源
      最近更新 更多