autohotkey
  • sendinput
  • 2016-11-27 120 views 1 likes 
    1

    我正在嘗試使用AutoHotKey編寫一個小腳本來代替鍵來更改我的鍵盤佈局。它應該像這樣的工作:除了AutoHotKey腳本SendInput

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

    所有鍵的作用:= O,這將導致:=:

    難道我使用$ {和}生正確?

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

    
    
        #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 
    
    

    回答

    1

    如果任何人有類似的問題,這裏是一個解決方案:$ +; :: 的+是shift鍵。 Shift和; =:

    相關問題