Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change Quick Launch icon size (to small / large) on the fly from vbscript?

Status
Not open for further replies.

Codeboy99

Programmer
May 24, 2017
2
0
0
US
This is for a Windows 10 laptop (MS Surface Pro 3) configured with the quick launch menu.

Depending on whether the PC is attached to an external display or not, the size of the quick launch icons changes. Windows 10 doesn't seem to handle scaling the display very well automatically:[ul]
[li]External display resolution is 2048x1152. When this display is attached, the quick launch icons are giant, and need to be set to Small.[/li]
[li]Laptop display resolution is 2160x1440. When no external display is attached, the quick launch icons are miniscule, and need to be set to Large.[/li]
[/ul]

Changing the quick launch icon size can be accomplished manually, specifically with these steps:
>To change icons small, you need to first unlock the Taskbar,
>as the Quick Launch options are only visible
>when you right click an empty spot inside Quick Launch area on an unlocked Taskbar
[ol 1]
[li]Unlock the taskbar[/li]
[li]right click an empty spot INSIDE the Quick Launch area[/li]
[li]from the resulting menu click View > Large Icons, or View > Small Icons[/li]
[/ol]

Would it be possible to automate changing the icon size with a VBScript, eg accomplish the same as right-clicking inside the quick launch area and clicking View > Large/Small Icons ?

I found some threads where they discussed accomplishing this by setting the registry, but that would require a reboot, and this needs to be done on the fly.

Evidently it is possible to modify the quick launch toolbar from vbscript, at least adding items, for example:
[ul]
[li]Add items to quick launch toolbar[/li]
[li]Add Show Desktop icon to Quick Launch via VBScript[/li]
[/ul]

So could the icon size be changed on the fly from vbscript?

Or else would a 3rd party tool (such as AutoHotKey) be needed, if that would even work?

Any help appreciated, thanks.
 
I doubt vbscript can help you, other than being used to change something in registry. If you're sure that the registry change would require a reboot, and this is not acceptable, then I agree that a 3rd party tool might be the way to go.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top