Re: [請問] 請問如何讓autoit重複輸入某個字?

看板EzHotKey作者 (搞不定嗎用C4就對了)時間12年前 (2013/05/01 19:12), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《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)
文章代碼(AID): #1HWFY3AD (EzHotKey)
文章代碼(AID): #1HWFY3AD (EzHotKey)