Sign in to follow this  
Followers 0
Errol

Can a compiled script dynamically change its own icon?

7 posts in this topic

#1 ·  Posted (edited)

Allo!

I would like my exe to change its own icon after it has been compiled.

The executable runs a tutorial based on an XML file. The XML file changes, but the exe itself is exactly the same. However, I would like to have different icons for the tutorial. Right now, I just recompile the script for every tutorial I have (I think there are about 20 of them) but it would be handy if the exe can just see the ico file in it's directory and change it's own icon accordingly.

Thank you very much!

Edited by Errol

Share this post


Link to post
Share on other sites



What icon do you mean? The one shown in the windows explorer? The one shown in your gui? The one in the tray?


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

What icon do you mean? The one shown in the windows explorer? The one shown in your gui? The one in the tray?

Ah... sorry about that.

Not an icon on the gui, nor an icon on the tray. The icon shown on windows explorer.

Share this post


Link to post
Share on other sites

Puh ;), extracting the icon should be possible but changing the icon ? I don't know - sorry!

http://www.autoitscript.com/forum/index.php?showtopic=85618


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Puh ;), extracting the icon should be possible but changing the icon ? I don't know - sorry!

No problem. :evil: I was hoping it was possible and my search abilities were just wanting.

Share this post


Link to post
Share on other sites

Why not using a workaround? You could rename your script or recompile it with the new icon (that will be dirty)


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Why not using a workaround? You could rename your script or recompile it with the new icon (that will be dirty)

Oh, I do that now. Problem is, I have about 20 exe's that I need to recompile. So every time I do a version change, that's another 20 that I need to do. ;)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0