2014-11-08 83 views

回答

1

試試這個代碼:

版本1:

hotkey := "n" 
Send {%hotkey% down} 

版本2:

!^z:: 
    hotkey := "n" 
    Send {%hotkey% down} 
return 

確保n被封閉在""。用""括起任何文本意味着您將其指定爲文本字符串。並且Send命令中使用的變量應包含一個文本字符串。

如果它不能幫助(和每個用戶的AutoHotkey應該知道的):

始終使用的AutoHotkey及其文檔從https://autohotkey.com(目前最新的版本,新的官方網站)! autohotkey.com及其來自autohotkey.com的文檔已過時,您可能在使用它們時遇到一些問題!

+0

不,這不工作。我在ahkscript上也回覆了http://ahkscript.org/boards/viewtopic.php?f=5&t=5105 – 2014-11-08 18:13:47

+0

@PaulChambers在記事本中檢查**版本2 **。熱鍵是CTRL + ALT + z。它在記事本中有效嗎?對我來說,這兩個版本都有效。我認爲您在使用該腳本的應用程序中遇到問題,而不是腳本本身。 – vasili111 2014-11-08 18:25:40

+0

@PaulChambers我認爲你的問題與此有關:http://ahkscript.org/docs/commands/Send.htm#Repeating__or_Holding_Down_a_Key – vasili111 2014-11-08 18:32:01