【问题标题】:Autohotkey, How to use shortcuts with #L and not lock the screen?Autohotkey,如何使用带有#L 的快捷方式而不锁定屏幕?
【发布时间】:2013-04-09 09:38:18
【问题描述】:

我正在从 linux 迁移到 windows,而 autohotkey 正在挽救我的生命。我遇到的一件事是功能:

如果我按下 HJKL(vim 键)并按下左标志(windows)键,我想模拟箭头键。

我的自动热键脚本中有这个:

LWin::Send {LWin}
<#h::Send {left}
<#j::Send {down}
<#k::Send {up}
<#l::Send {right}
; tried to use "lWIn & l", "$<#l", "$LWin & $l"... 

一切正常,除了标志+L。我的意思是,它有效,因为我得到了一个左键按下事件就好了。但屏幕也会锁定。

手册上说$ 避免了原来的按键事件,但它仍在锁定屏幕。

有解决这个问题的希望吗?

【问题讨论】:

    标签: windows-7 keyboard-shortcuts autohotkey


    【解决方案1】:

    您必须在注册表中禁用此选项:警告实际路径可能取决于版本

    RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Policies\System, DisableLockWorkstation, 1
    

    这是另一篇文章:http://www.howtogeek.com/howto/windows-vista/disableenable-lock-workstation-functionality-windows-l/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多