#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=C:\哈哈\4.ico
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_Res_Icon_Add=C:\哈哈\1.ico
#AutoIt3Wrapper_Res_Icon_Add=C:\哈哈\2.ico
#AutoIt3Wrapper_Res_Icon_Add=C:\哈哈\3.ico
#AutoIt3Wrapper_Res_Icon_Add=C:\哈哈\4.ico
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <ButtonConstants.au3>
GUICreate("Demo resource ICO's")
$h_Button1 = GUICtrlCreateButton("my picture button", 10, 20, 40, 40, $BS_ICON)
GUISetState()
For $x = 0 To 7
$rc = TraySetIcon(@ScriptFullPath, -$x)
$rc2 = GUICtrlSetImage($h_Button1, @ScriptFullPath, -$x)
If $x < 3 Then
TrayTip("Default ico:" & $x, "TraySetIcon rc:" & $rc & @LF & "GUICtrlSetImage rc:" & $rc2, 3)
Else
TrayTip("New ico:" & $x, "TraySetIcon rc:" & $rc & @LF & "GUICtrlSetImage rc:" & $rc2, 3)
EndIf
Sleep(2000)
Next
GUIDelete()
怎么附加不了图标啊?折腾死我了。求解、还有就是
_TrayItemSetIcon($menuA0, "2.ico", 0)
这么调用附加图标?
求大虾解。 |