WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: fhammer on May 14, 2020, 09:14:50 PM

Title: Assign icon to a wbt file
Post by: fhammer on May 14, 2020, 09:14:50 PM
I often have several .wbt scripts executing concurrently.
Is here a way to apply a unique icon to each, so I can easily differentiate them on the taskbar or tray?

Thanks.
Title: Re: Assign icon to a wbt file
Post by: td on May 14, 2020, 10:09:44 PM
If you compile them, you can use any icon group you want. That is as long as the icon group meets the WinBatch icon spec.

https://docs.winbatch.com/mergedProjects/WinBatch/WINBATCH_I__001.htm (https://docs.winbatch.com/mergedProjects/WinBatch/WINBATCH_I__001.htm)
Title: Re: Assign icon to a wbt file
Post by: snowsnowsnow on May 15, 2020, 02:00:47 AM
I think the short answer to OP's question is: No.

You can't do it at the .WBT file level - only at the .EXE file level.

At least that's always been my understanding.

P.S.  It makes me think that there should be some kind of runtime way to do it - i.e., some obscure DllCall that changes the currently displayed icon.
Title: Re: Assign icon to a wbt file
Post by: td on May 15, 2020, 11:27:52 AM
You can mess with the WinBatch executable because it is code signed.