退格走高一级
问题描述:
这是我对kidmar's script from AHK forums的稍作修改后的版本。退格走高一级
脚本应该改变Backspace
关键行为,即当我们在Windows资源管理器按Backspace
,它就像Alt-Up
(我们去了在文件层次中的一个级别)。
由于某种原因,它不起作用。它应该如何解决?
FunBackspaceExplorer()
{
IfWinActive, ahk_class CabinetWClass
{
ControlGetFocus, focused, A
IfNotInString, focused, "Edit" ; Return true only if current control isn't an edit control
return 1
}
return 0
}
#If, FunBackspaceExplorer() ; Backspace hotkey exists only if all conditions are met
Backspace:: SendInput, !{Up}
#If
(这个任务还有另一个工作解决方案,但我在这个任务中交叉)。
答
你的版本作品在我的系统上,如果我使用:
#If, FunBackspaceExplorer() ; Backspace hotkey exists only if all conditions are met
Backspace::
SetKeyDelay 10,1000
SendEvent {Alt down}{Up down}{Alt Up}{Up Up}
return
#If
SetKeyDelay插入向下事件及向上事件的发送,或发送键后的延迟之间的延迟。 它不适用于SendInput。