#LoadIcon Filepath (Directive)

Propose new features and changes
User avatar
Animan8000
Posts: 58
Joined: 11 May 2022, 05:00
Contact:

#LoadIcon Filepath (Directive)

20 May 2022, 12:08

Why?
If you use the Menu Command, even if it's on the first line, then you will see for a split second the default AHK Icon in the traybar. This might be slightly annoying if you intend to not compile the script nor modify AHK itself (like with Resource Hacker) but wish to have a different icon from the very beginning when clicking on a particular .ahk file.

That's why I had this directive as a suggestion in mind, to solve that problem.


Thanks! :wave:
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: #LoadIcon Filepath (Directive)

20 May 2022, 13:28

You might be interested in :arrow: #notrayicon.

Cheers.
User avatar
Animan8000
Posts: 58
Joined: 11 May 2022, 05:00
Contact:

Re: #LoadIcon Filepath (Directive)

21 May 2022, 01:21

Not really. For this case I mean if the user actually wants to have the traybar, not hide it.
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: #LoadIcon Filepath (Directive)

21 May 2022, 03:25

You can show the icon again after you changed it, eg,

Code: Select all

#NoTrayIcon 					; avoid showing the default icon
TraySetIcon "Shell32.dll", 174 	; change the icon
A_IconHidden := false 			; show it
Cheers.
User avatar
Animan8000
Posts: 58
Joined: 11 May 2022, 05:00
Contact:

Re: #LoadIcon Filepath (Directive)

21 May 2022, 03:54

Good idea! Thanks :thumbup:

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 27 guests