【问题标题】:AutoHotkey - press Ctrl+Alt only, without any charactersAutoHotkey - 仅按 Ctrl+Alt,不带任何字符
【发布时间】:2017-08-28 16:23:36
【问题描述】:

我可以看到 AutoHotkey 无法使用 Ctrl+Alt+Delete,但是仅 Ctrl+Alt 呢?

我尝试过的事情:

; 1
#+y::
Send, {Ctrl}{Alt}
return

;2
#+y::
Send, {Ctrl down}
Send, {Alt down}
Send, {Alt up}
Send, {Ctrl up}
return

;3
#+y::
Send, {LCtrl down}
Send, {LAlt down}
Send, {LAlt up}
Send, {LCtrl up}
return

;4
#+y::
Send, !^
return

;5
#+y::
Send, {ctrl down}{alt down}{2}{alt up}{ctrl up}
return

有什么想法吗?

【问题讨论】:

  • Ctrl 和 Alt 和 Shift 是修饰键。除非提供了另一个可以用来修改的键,否则它们都没有任何价值。
  • 我想自动使用的程序需要它。手动按下它们确实有效,那么断开连接在哪里呢?

标签: macros autohotkey


【解决方案1】:

下面会做你想做的事。还建议您继续使用SendInput

#+y::
SendInput, {Ctrl Down}{Alt Down}{Ctrl Up}{Alt Up}

【讨论】:

    【解决方案2】:

    尝试指定左或右 ALT 或 CTRL 键

    #+y::
    Send, {LCtrl}{LAlt}
    return
    

    【讨论】:

      猜你喜欢
      • 2018-12-15
      • 2021-08-09
      • 2013-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多