$WM_QUERYENDSESSION = 0x0011 GUIRegisterMsg($WM_QUERYENDSESSION, "Cancel") GUICreate("") GUISetSTate(@SW_HIDE) Global $Esc = 0 While 1 If $Esc = 1 then MsgBox (0, "", "想干什么!按确定后继续截获") $Esc = 0 EndIf sleep(10) WEnd Func Cancel($hWndGUI, $MsgID, $WParam, $LParam) $Esc = 1 Return False EndFunc
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-24 21:52 , Processed in 0.095632 second(s), 23 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.