Nahuel Posted November 4, 2007 Share Posted November 4, 2007 I've tried everything I could.. but this doesn't work for me. It does nothing...Example code I tried:#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_Icon_Add=C:\Archivos de Programa\AutoIt3\Icons\au3.ico #AutoIt3Wrapper_Res_Icon_Add=C:\Archivos de Programa\AutoIt3\Icons\filetype1.ico #AutoIt3Wrapper_Res_Icon_Add=C:\Archivos de Programa\AutoIt3\Icons\filetype2.ico #AutoIt3Wrapper_Res_Icon_Add=C:\Archivos de Programa\AutoIt3\Icons\filetype3.ico #AutoIt3Wrapper_Res_Icon_Add=C:\Archivos de Programa\AutoIt3\Icons\filetype-blank.ico #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <GUIConstants.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()Output:>"C:\Archivos de programa\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper_Gui.exe" /in "D:\Scripts\AutoIt Tray\Nuevo Script (4).au3"+>22:56:15 Starting AutoIt3Wrapper GUI v.1.9.3-> 7 Change(s) made.+>22:56:35 Starting AutoIt3Wrapper v.1.9.3>Running AU3Check (1.54.9.0) from:C:\Archivos de programa\AutoIt3+>22:56:38 AU3Check ended.rc:0>Running:(3.2.8.1):C:\Archivos de programa\AutoIt3\aut2exe\aut2exe.exe+>22:56:46 Aut2exe.exe ended.rc:0-> Warning: This is an Unicode compiled script and will not run on Win9x/ME.-*** ResHacker.exe program is missing in directory: - To be able to update the resource information you need to download reshacker.exe from:- http://angusj.com/resourcehacker/ and copy it to: >Running (3.0.0.0): C:\Archivos de programa\AutoIt3\aut2exe\upx.exe+>22:57:23 UPX.exe ended.rc:0+>22:57:24 AutoIt3Wrapper Finished>Exit code: 0 Time: 70.261I DO have ResHacker.exe at C:\Archivos de programa\AutoIt3\SciTE\AutoIt3Wrapper.When I first tried to compile, the Autoit3Wrapper GUI said that I needed ResHacker.exe so I downloaded it and placed it where it said I should. Now I can see the options in the Autoit3Wrapper GUI but I get the same error and none of the directives is being applied to the exe file...it just shows AutoIt's default values... what am I doing wrong? Link to comment Share on other sites More sharing options...
Developers Jos Posted November 4, 2007 Developers Share Posted November 4, 2007 (edited) .. strange, the error shows that the Path for Reshacker is empty which should default to the AutoIt3Wrapper script directory.Do you have anything in AutoIt3Wrapper.ini for:Global $ResHackerPath = IniRead(@ScriptDir & "\AutoIt3Wrapper.ini", "Config", "ResHackerPath", @ScriptDir)EDIT: Please try downloading the latest test version found here , I see some changes were made a few weeks ago. Edited November 4, 2007 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nahuel Posted November 4, 2007 Author Share Posted November 4, 2007 Thank you Jos! I had to edit the ini file and add the path to ResHacker.exe Works great now. Link to comment Share on other sites More sharing options...
Developers Jos Posted November 4, 2007 Developers Share Posted November 4, 2007 Thank you Jos! I had to edit the ini file and add the path to ResHacker.exeWorks great now.Good that it works again, but it should work without anything in the ini file when you use that latest version I pointed too .When you have time, could you try that for me to see if that solves it ?ThanksJos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nahuel Posted November 4, 2007 Author Share Posted November 4, 2007 Yup. I deleted the path to ResHacker.exe in the ini and compiled a script. Works great. I also tried renaming the ini and it still works Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now