【发布时间】:2019-05-20 18:02:59
【问题描述】:
因为我必须放弃我的宏键盘,所以我发现 autohotkey 是可靠的。遗憾的是我并没有真正找到如何制作连续宏..
我的意思是:(伪代码)
^!c::
while ^!c is not pressed again -> send keystrokes c
垃圾邮件无限 c 击键,直到我再次按下上面的组合
我该如何处理?
【问题讨论】:
标签: macros autohotkey
因为我必须放弃我的宏键盘,所以我发现 autohotkey 是可靠的。遗憾的是我并没有真正找到如何制作连续宏..
我的意思是:(伪代码)
^!c::
while ^!c is not pressed again -> send keystrokes c
垃圾邮件无限 c 击键,直到我再次按下上面的组合
我该如何处理?
【问题讨论】:
标签: macros autohotkey
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
【讨论】: