【发布时间】: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