How to pin to Taskbar various scripts under just one icon?
Posted: Mon Jul 03, 2023 4:20 pm
[I have already posted this question on forum of AutoHotkey, but got no answers there: https://www.autohotkey.com/boards/viewt ... 2&t=115329]
How can I pin under just 1 and the same icon some kind of multiple shortcuts to e.g. BAT files [which will contain already correctly working Registry hack that I have]?
I need to create a sub-menu for my already pinned Magnifier, which entries will load to it [during its opening] different settings in a quick / convenient way. But it seems that I cannot trick my Windows 10 by:
● pinning to this EXE a BAT or AHK [otherwise working] file - because when clicked it will be ignored and simply will run with the last used settings
● pinning to this EXE an LNK leading to BAT or AHK [otherwise working] file
● renaming BAT to something like BAT2 and associating it with - because Windows 10 will not allow for such associating, saying "The program you have selected cannot be associated with this file type"
● changing the Target of a sub-menu entry - because it is available only for LNK files which when pinned under 1 icon are not pinned as but e.g. or
● using command lines of the free NirCmd by NirSoft - because the arguments are ignored and what happens is opening of window which only displays info about this third party program
● compiling BAT [containing Registry hack] to EXE and trying for it the above methods
To sum up: it seems that it was not intended by Microsoft for a user to be able to pin to already pinned to Taskbar program anything other than legit file formats already associated with a given program; and especially to not be able to pin an EXE file format, as it can only by put on Taskbar as a separate icon and only once
How can I pin under just 1 and the same icon some kind of multiple shortcuts to e.g. BAT files [which will contain already correctly working Registry hack that I have]?
I need to create a sub-menu for my already pinned Magnifier, which entries will load to it [during its opening] different settings in a quick / convenient way. But it seems that I cannot trick my Windows 10 by:
● pinning to this EXE a BAT or AHK [otherwise working] file - because when clicked it will be ignored and simply
magnify.exe
● pinning to this EXE an LNK leading to BAT or AHK [otherwise working] file
● renaming BAT to something like BAT2 and associating it with
magnify.exe
● changing the Target of a sub-menu entry - because it is available only for LNK files which when pinned under 1 icon are not pinned as
file.lnk
file.bat
file.ahk
● using command lines of the free NirCmd by NirSoft - because the arguments are ignored and what happens is opening of
nircmd.exe
● compiling BAT [containing Registry hack] to EXE and trying for it the above methods
To sum up: it seems that it was not intended by Microsoft for a user to be able to pin to already pinned to Taskbar program anything other than legit file formats already associated with a given program; and especially to not be able to pin an EXE file format, as it can only by put on Taskbar as a separate icon and only once