举报
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> HotKeySet("{enter}","_Go") #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 292, 158, -1, -1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func _Go() If WinActive($Form1) Then MsgBox(0,0,"Enter热键起作用") Else HotKeySet("{enter}") Send("{enter}") HotKeySet("{enter}","_Go") EndIf EndFunc
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-25 13:14 , Processed in 0.091040 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.