【问题标题】:AutoHotkey don't exit the scriptAutoHotkey 不退出脚本
【发布时间】:2015-08-02 15:03:14
【问题描述】:

在 autohotkey 中,下面的代码可以让我按 alt+1 多次而不退出脚本。

!1::
{
  Send abcd
  Return
}

但是,如何使用 WinWaitActive 使用下面的代码完成相同的结果。无法弄清楚如何防止它退出脚本。

  WinWaitActive ahk_class Chrome_WidgetWin_1
  Send abcd

【问题讨论】:

    标签: autohotkey


    【解决方案1】:

    使用#Persistent

    #Persistent
    WinWaitActive ahk_class Chrome_WidgetWin_1
    Send abcd
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-05
      • 2013-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-10
      • 2016-06-17
      相关资源
      最近更新 更多