Jump to content
ZacUSNYR

Stop script from inheriting shortcut's different icon?

Recommended Posts

ZacUSNYR

Have a script, specifying the icon in AutoIt3Wrapper.  Also resource adding other icons to use as shortcuts that call the script with parameters.

The issue i'm having is I open it - it opens fine.  Windows taskbar shows the icon I specified.  If I call it via a shortcut that has a different icon - it uses that shortcuts icon instead of the icon I specified.

Anyone ever experience this?  I've tried using GUISetIcon but it doesn't change the windows taskbar icon.  Any ideas?

Share this post


Link to post
Share on other sites
Starstar

#include <File.au3>
$IcoPath = _PathFull(@ScriptFullPath)
FileCreateShortcut(@Scriptfullpath, @desktopdir&"\short.lnk","","","",$IcoPath)

Create a shortcut with your specified Icon........


Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once."

Share this post


Link to post
Share on other sites
ZacUSNYR

That's the problem, I want a different icon for the shortcut but I want the script to use the original icon specified

Share this post


Link to post
Share on other sites
Starstar

Use BinaryToAu3Kompressor to convert your icon to a function then by generated function create Your Icon in the temporary folder from this path use your icon..........Your problem will be solve.

Edited by Starstar
  • Like 1

Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once."

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

×