by fwejifjjwk2 » 22 Jun 2020, 11:20
話說如果你這樣設定之後,你要怎麼打開文件或軟體呢?
Code: Select all
; from https://autohotkey.com/board/topic/109625-can-i-toggle-the-enter-key-when-renaming-files/
SetTitleMatchMode,RegEx
#IfWinActive ahk_class CabinetWClass
Enter::
if Rtoggle = 1
{
SendInput, {Enter}
Rtoggle := 0
}
else
{
SendInput, {F2}
Rtoggle := 1
}
return
#IfWinActive
上面的方式在某些輸入法需要使用 Enter 或者用 F2 編輯的時候要多按一次 Enter
話說如果你這樣設定之後,你要怎麼打開文件或軟體呢?
[code=AutoHotkey]
; from https://autohotkey.com/board/topic/109625-can-i-toggle-the-enter-key-when-renaming-files/
SetTitleMatchMode,RegEx
#IfWinActive ahk_class CabinetWClass
Enter::
if Rtoggle = 1
{
SendInput, {Enter}
Rtoggle := 0
}
else
{
SendInput, {F2}
Rtoggle := 1
}
return
#IfWinActive
[/code]
上面的方式在某些輸入法需要使用 Enter 或者用 F2 編輯的時候要多按一次 Enter