Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted

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.

Posted

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!"

Posted (edited)

Sorry, I missed your problem :mellow:. 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 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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted (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 by johngreenwood
Posted

  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!"

Posted

  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!"

Posted

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!"

Posted

  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!"

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...