AutoHotkey 发送 {Del} 在 Win10 的资源管理器中不起作用
AutoHotkey send {Del} not work in explorer on Win10
我想用Alt+d触发删除。
!d::Send, {delete}
除了资源管理器之外,这几乎适用于任何地方。 select 文件并按 Alt+d 时没有任何反应。这是为什么?
环境:最新的 AutoHotKey,Windows10-64 位
尝试
!d::
IfWinActive ahk_class CabinetWClass ; explorer
{
; The control retrieved by this command is the one that has keyboard focus
ControlGetFocus, FocusedControl, A ; A means the active window
; MsgBox %FocusedControl%
If FocusedControl contains DirectUIHWND,SysListView
SendInput, {AppsKey}d
else
Send, {delete}
}
else
Send, {delete}
return
我想用Alt+d触发删除。
!d::Send, {delete}
除了资源管理器之外,这几乎适用于任何地方。 select 文件并按 Alt+d 时没有任何反应。这是为什么?
环境:最新的 AutoHotKey,Windows10-64 位
尝试
!d::
IfWinActive ahk_class CabinetWClass ; explorer
{
; The control retrieved by this command is the one that has keyboard focus
ControlGetFocus, FocusedControl, A ; A means the active window
; MsgBox %FocusedControl%
If FocusedControl contains DirectUIHWND,SysListView
SendInput, {AppsKey}d
else
Send, {delete}
}
else
Send, {delete}
return