本帖最后由 mo_shaojie 于 2010-12-5 10:56 编辑
晕了,这个方法应该不会错吧.#include <GUIConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
If FileExists(@SystemDir & "\pic.ini") Then
$pic = IniRead(@SystemDir & "\pic.ini","Pic","Pic","")
Else
FileInstall("file\logo.bmp",@TempDir & "\logo.bmp",1)
$pic = @TempDir & "\logo.bmp"
EndIf
GUICreate("",350,460,-1,-1)
GUICtrlCreatePic($pic,5,5,140,420)
GUISetState(@SW_SHOW)
FileDelete(@TempDir & "\logo.bmp")
Sleep(8000);暂停看效果
意思是先读取ini下的图片,如果没有,则使用自带的.
应该没错的吧.怎么实现不了的?请教. |