【问题标题】:Autohotkey continuous macro自动热键连续宏
【发布时间】:2019-05-20 18:02:59
【问题描述】:

因为我必须放弃我的宏键盘,所以我发现 autohotkey 是可靠的。遗憾的是我并没有真正找到如何制作连续宏..

我的意思是:(伪代码)

^!c:: 
while ^!c is not pressed again -> send keystrokes c

垃圾邮件无限 c 击键,直到我再次按下上面的组合

我该如何处理?

【问题讨论】:

    标签: macros autohotkey


    【解决方案1】:
     toggle = 0   ; timer is off because toggle isn't yet initialized
     return
    
     ^!c::        ; toggle timer
     if toggle := !toggle       
       SetTimer, Send_c, 0    
     else 
       SetTimer, Send_c, off 
     return
    
      Send_c:
     Send c
     Sleep, 300
     return
    

    【讨论】:

      猜你喜欢
      • 2012-11-16
      • 1970-01-01
      • 2013-03-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-13
      • 1970-01-01
      相关资源
      最近更新 更多