看板 EzHotKey 關於我們 聯絡資訊
※ 引述《runwind (星夜)》之銘言: : 當我按下F8會讓autoit重複輸入鍵盤上的A B C 然後A B C時間 要互相間隔1秒 : 直到我按下F7才會停止 參考官網 Function HotKeySet 範例改寫 http://www.autoitscript.com/autoit3/docs/functions/HotKeySet.htm 醜醜的,但是會動、會暫停 Global $Paused HotKeySet("{F7}", "Pause") HotKeySet("{F8}", "Input_ABC") While 1 Sleep(100) WEnd Func Pause() $Paused = Not $Paused While $Paused Sleep(100) ToolTip('Script is "Paused"', 0, 0) WEnd ToolTip("") EndFunc Func Input_ABC() For $i = 0 To 9999 Send("{A}") Sleep(1000) Send("{B}") Sleep(1000) Send("{C}") Sleep(1000) $i += 1 Next EndFunc -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.110.151.249 ※ 編輯: GodIsland 來自: 123.110.151.249 (05/01 19:13)