Opt("GUIOnEventMode", 1) GUICreate("Test") GUISetOnEvent(-3, "_Form") $Button = GUICtrlCreateButton("禁用窗口",150,150,80,40) GUICtrlSetOnEvent(-1, "_ButtonClick") GUISetState() While 1 Sleep(100) WEnd Func _Buttonclick() GUISetState(@SW_DISABLE) MsgBox(32,"现在已经禁用了原窗口","按确定后,启用原窗口,但窗口不会自动激活。") GUISetState(@SW_ENABLE) EndFunc Func _Form() Exit EndFunc
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-11-16 22:25 , Processed in 0.072553 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.