johngreenwood Posted June 14, 2010 Posted June 14, 2010 Hi everyone. I'm new, I just started using AutoIt 2 days ago and so far I am really enjoying it It's very easy to use and the documentation is excellent. Here is my problem, I have written a script and I have given it a custom icon. I compile the exe and it still shows the default AutoIt icon. If I change the Icon size, then it changes to my custom icon. It's just the one size which shows as the default icon. Does anyone have any idea what the problem is, and how to fix it?
johngreenwood Posted June 17, 2010 Author Posted June 17, 2010 I made an icon with all available sizes. And they all work, except on my Desktop, and in Explorer when the view is set to tiles. I think it's probably just an icon cache thing or something.
UEZ Posted June 17, 2010 Posted June 17, 2010 First install full package of SciTE4AutoIt3 editor if not already done.Then use #AutoIt3Wrapper_Icon in your code.Example:#AutoIt3Wrapper_Icon="c:\Program Files\AutoIt3\Aut2Exe\Icons\AutoIt_Old4.ico" MsgBox(0, "New Icon", "The Exe has now a new icon!")BR,UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
UEZ Posted June 17, 2010 Posted June 17, 2010 What is the output in SciTE (buttom window) when you compile your script? BR, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
johngreenwood Posted June 17, 2010 Author Posted June 17, 2010 There are no errors, only a warning about it being unicode and won't work on older versions of Windows.
UEZ Posted June 17, 2010 Posted June 17, 2010 What is happening when you compile my example from post#4? Can you see the embedded icon in the exe? Maybe you have to adjust the path to the icon. BR, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
johngreenwood Posted June 17, 2010 Author Posted June 17, 2010 The icon is going in fine. It shows at most sizes, it's only one size which shows the AutoIt icon. I think Windows has probably just cached that icon and is using the icon from the cache instead.
GEOSoft Posted June 17, 2010 Posted June 17, 2010 It's a known issue that Jos just became awate of a few days ago. I suspect a bug in the way AU3Wrapper is handleing resources. I have 2 that I have to change manually on every compile. George Reveal hidden contents Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
johngreenwood Posted June 17, 2010 Author Posted June 17, 2010 Hmm, ok. Well, it seems all I can do is wait until they have time to fix it then, it's only a minor inconvenience anyway. Thanks guys.
UEZ Posted June 17, 2010 Posted June 17, 2010 (edited) Sorry, I missed your problem . I thought you have problems with adding the icon to the compiled exe.Can you use AutoIt_Main_v10_256x256_RGB-A.ico instead and test it again? Just read the reply from GEOSoft.BR,UEZ Edited June 17, 2010 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
johngreenwood Posted June 17, 2010 Author Posted June 17, 2010 (edited) I don't seem to have that icon. If I do, I don't know where it is. EDIT:Ah, ok. I'll just wait and see what turns up. Thanks for the help guys. Edited June 17, 2010 by johngreenwood
GEOSoft Posted June 17, 2010 Posted June 17, 2010 On 6/17/2010 at 7:44 AM, 'johngreenwood said: I don't seem to have that icon. If I do, I don't know where it is.EDIT:Ah, ok. I'll just wait and see what turns up. Thanks for the help guys.You do know that you can open the exe with Resource Hacker and fix the affected icon(s), right? Also, depending on your Icons, you may need the Beta version of Resource hacker. George Reveal hidden contents Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
johngreenwood Posted June 17, 2010 Author Posted June 17, 2010 Every time I replace an icon with Resource Hacker, I break the exe.
GEOSoft Posted June 17, 2010 Posted June 17, 2010 On 6/17/2010 at 8:00 AM, 'johngreenwood said: Every time I replace an icon with Resource Hacker, I break the exe.Don't pack it with UPX and use the Beta version of Resource Hacker. George Reveal hidden contents Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
GEOSoft Posted June 17, 2010 Posted June 17, 2010 Let us know how you make out. I know it works for me. George Reveal hidden contents Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
johngreenwood Posted June 17, 2010 Author Posted June 17, 2010 It said "Out of system resources" when I added it, but it seems ok.
GEOSoft Posted June 17, 2010 Posted June 17, 2010 On 6/17/2010 at 9:45 AM, 'johngreenwood said: It said "Out of system resources" when I added it, but it seems ok.That's an old bug that won't be fixed in Resource Hacker. Ignore it any time you see it. George Reveal hidden contents Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
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