#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=web2logo_011.ico
#AutoIt3Wrapper_outfile=IE搜索.exe
#AutoIt3Wrapper_Compression=4
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <IE.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Global $configPath = @ScriptDir & "\config.ini"
Global $lnk1 = IniRead($configPath,"config","百度",0)
Global $lnk2 = IniRead($configPath,"config","搜狗",0)
Global $lnk3 = IniRead($configPath,"config","谷歌",0)
FileInstall(@ScriptDir & "\SkinCrafterDll.dll", @TempDir & "\SkinCrafterDll.dll",1)
FileInstall(@ScriptDir & "\Flexi_ST.skf", @TempDir & "\Flexi_ST.skf",1)
FileInstall(@ScriptDir & "\baidu.gif", @TempDir & "\baidu.gif",1)
FileInstall(@ScriptDir & "\sogou.gif", @TempDir & "\sogou.gif",1)
FileInstall(@ScriptDir & "\google.gif", @TempDir & "\google.gif",1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("IE搜索", 301, 80, 427, 365,BitOR($WS_SYSMENU, $WS_CAPTION, $WS_POPUP), 0)
_SkinGUI(@TempDir & "\SkinCrafterDll.dll", @TempDir & "\Flexi_ST.skf", $Form1)
$Pic1 = GUICtrlCreatePic(@TempDir & "\baidu.GIF", 3, 8, 95, 40)
$Pic2 = GUICtrlCreatePic(@TempDir & "\sogou.gif", 103, 8, 95, 40)
$Pic3 = GUICtrlCreatePic(@TempDir & "\google.gif", 203, 8, 95, 40)
$Label1 = GUICtrlCreateLabel("百度搜索", 25, 55, 52, 17)
$Label2 = GUICtrlCreateLabel("搜狗搜索", 125, 55, 52, 17)
$Label3 = GUICtrlCreateLabel("谷歌搜索", 225, 55, 52, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $Pic1
_IECreate ($lnk1)
Exit
Case $Pic2
_IECreate ($lnk2)
Exit
Case $Pic3
_IECreate ($lnk3)
Exit
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _SkinGUI($SkincrafterDll, $SkincrafterSkin, $Handle)
$Dll = DllOpen($SkincrafterDll)
DllCall($Dll, "int:cdecl", "InitLicenKeys", "wstr", "1", "wstr", "", "wstr", "1@1.com", "wstr", "1")
DllCall($Dll, "int:cdecl", "InitDecoration", "int", 1)
DllCall($Dll, "int:cdecl", "LoadSkinFromFile", "wstr", $SkincrafterSkin)
DllCall($Dll, "int:cdecl", "DecorateAs", "int", $Handle, "int", 25)
DllCall($Dll, "int:cdecl", "ApplySkin")
EndFunc ;==>_SkinGUI
在没有编译的情况下,运行是正常的,但是一编译,系统就提示: