举报
#include <GUIConstantsEx.au3> Opt('MustDeclareVars', 1) Example() Func Example() Local $sFile = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir") & "\Aut2Exe\icons\filetype1.ico" Local $msg GUICreate("My GUI new icon") ; 创建居中窗口 GUISetIcon($sFile) ; 改变图标 GUISetState(); 显示窗口 ; 运行到用户退出 While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd EndFunc ;==>Example
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-5-9 12:58 , Processed in 0.080803 second(s), 22 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.