Tordex Community

Full Version: How to remotely refresh a toolbar ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!

The hotkey Ctrl+F5 which is displayed on a toolbars 'Refresh' context menu item does not seem to work. That's too bad, because I'm desperately looking for a way to remotely force a toolbar refresh. Something like an API call, a command line utility, or a working hotkey which can be called by some scripting language - anything will do.

Please help! Sad
You have to activate the toolbar first for ctrl-f5 to work - TLB Settings/Toolbar/Activate Toolbar hotkey

You can then use vbscript sendkeys to do the refresh:

dim gws
set gws = CreateObject("Wscript.Shell")

gws.sendkeys ActivateToolbarHotkey
wscript.sleep 20
gws.sendkeys ""^{F5}"

- paul
So, how cool is that ??? Big Grin

Paul, you saved my day! I wouldn't have figured that one out in a million years!

Thank you very much! Smile
No problem!