What file(s) are TBLauncher icon numbers associated with

User discussion and information resource forum for Image products.
Post Reply
Yottabytes
Posts: 112
Joined: Fri Nov 22, 2013 2:50 pm

What file(s) are TBLauncher icon numbers associated with

Post by Yottabytes »

For example, by default CopyP2V Script is assigned Icon=;208. Where is that located and can additional Icon's be added to the file?

Also, the only other functionality I'd like to add to TBLauncher is print screen. I know I could simply press the CTRL+PRTSC and then paste it in some folder but it's clunky and I sometimes get out of memory errors. I also tried using a 64-bit Nirsoft utility but that didn't work either.

Code: Select all

[Menu_Item_16]
Name=Screen Shot
Path=%TBDrive%\Nir\nircmd.exe 
WorkingDir=
Parameters=cmdwait 2000 savescreenshot screen1.png
Icon=0
Any ideas on getting screen shots while in TBWinRE?
TeraByte Support(PP)
Posts: 1646
Joined: Fri Aug 12, 2011 12:51 am

Re: What file(s) are TBLauncher icon numbers associated with

Post by TeraByte Support(PP) »

The icons with ; are internal to TBLauncher. You can use a different icon in the .exe by specifying a different index (assuming multiple icons exist) or by specifying an index in a different file (.ico, exe, and .dll are supported). Note that the index isn't used with .ico files, but must still be specified.

For example:

Code: Select all

Icon=2,%SystemRoot%\System32\taskmgr.exe
Icon=0,%TBDrive%\my icons\custom.ico
Icon=6,X:\Custom Program\program.dll
I've noted the suggestion for screenshot functionality.
Yottabytes
Posts: 112
Joined: Fri Nov 22, 2013 2:50 pm

Re: What file(s) are TBLauncher icon numbers associated with

Post by Yottabytes »

Again, thank you very much for responding so quickly

However, after creating an Icons folder under TBData and populating it with icons, this code does not work

Code: Select all

[Menu_Item_4]
Name=Hardware Info
Path=%TBDrive%\TBData\Specs\HWiNFO64.EXE 
WorkingDir=
Parameters=
Icon=0,%TBDrive%\Icons\Motherboard.ico
Looking forward to some print screen solution. I've tried every 64-bit executable on the planet to no avail.
TeraByte Support
Posts: 3628
Joined: Thu May 05, 2011 10:37 pm

Re: What file(s) are TBLauncher icon numbers associated with

Post by TeraByte Support »

"print screen" - you mean print the screen or capture the screen to a file?
TeraByte Support(PP)
Posts: 1646
Joined: Fri Aug 12, 2011 12:51 am

Re: What file(s) are TBLauncher icon numbers associated with

Post by TeraByte Support(PP) »

Yottabytes wrote: Wed Jun 14, 2023 2:10 pm However, after creating an Icons folder under TBData and populating it with icons, this code does not work
I assume the .ico file is a standard Windows icon file. When you checked, was it booted to TBWinPE/RE?

If you're using %TBDrive% you need to be booting from a drive (flashdrive, etc.). TBLauncher also needs to be configured to search for the boot media on startup. Otherwise, you would need to include the files in the build and references them from there (some X:\... location).

You can also test out some of that in Windows to make sure the .ico file works, using correct index for .exe/.dll file, etc. Just put TBLauncher.exe in a folder with TBLauncher.ini and tweak the menu entries to work for Windows. Then it's just a matter of changing the paths to be correct for the TBWinPE/RE build.
Yottabytes
Posts: 112
Joined: Fri Nov 22, 2013 2:50 pm

Re: What file(s) are TBLauncher icon numbers associated with

Post by Yottabytes »

@TeraByte Support
""print screen" - you mean print the screen or capture the screen to a file?"
Ability to serially capture screen shots to multiple separate files.

EDIT: I had the wrong icon path. Working now. Thank you.
Post Reply