Sign in to follow this  
Followers 0
trunc.ate

Updating the Quicklaunch Toolbar

7 posts in this topic

Does anybody know how I can quickly update the icons of the Quicklaunch toolbar (beneath the START button) with AutoIt?

Background: On system-startup I am running an automated backup of my Firefox-browser via AutoIt and the RunWait command (which fires the backup application). Firefox is represented with an icon in the quicklaunch toolbar.

What I want to achieve is that the link and the icon are replaced by others to show me that the browser is currently not available so I don't click on it by accident. There are other ways to notify of that (MsgBox or whatever) but I'd like to try it this way.

The icon/link-replacement works but the icon is still the old one (cached).

The replacement *is* possible by letting AutoIt disabling and afterwards enabling the toolbar. Drawbacks are that this is sloooow and that the width of the toolbar is not remembered.

Any idea of a quicker way?

Share this post


Link to post
Share on other sites



I don't think this will work, but you can always try...

EnvUpdate()

Share this post


Link to post
Share on other sites

C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch

Its all lnk files, so you can just use FileMove to rename etc...

Hope that will help.


Were ever i lay my script is my home...

Share this post


Link to post
Share on other sites

ooh stupid me...

I have tried to post the answer above all day, but could not logon, and when i login and post it, i noticed that its not the "correct" answer :D

If you don´t find any solution, you can try this.

Move a temporary link to the same location with the same name, with a different icon. It will then update windows with the new icon, and hopefully it will then not have it cached.


Were ever i lay my script is my home...

Share this post


Link to post
Share on other sites

The "guest" options is off now. Welcome aboard with a true identity Doxie!

Share this post


Link to post
Share on other sites

The following updates the icon right away for me on Windows XP Pro:

Change the path of $LNK as needed; might have different username than "Administrator"

$icon = @SystemDir & "\SHELL32.dll"
$LNK = "C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\Firefox.lnk"

FileCreateShortcut("",$LNK,"","","",$icon)

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

w00T - thanks, you rock! :D

Works like a charm, I now have it like this:

$icon_real = "D:\progs\Firefox\firefox.exe"
$icon_temp = "E:\Icons\Firefox-disabled.ico"
$LNK = "C:\Dokumente und Einstellungen\<Username>\Anwendungsdaten\Microsoft\Internet Explorer\Quick Launch\Mozilla Firefox.lnk"

FileCreateShortcut("",$LNK,"","","",$icon_temp)

...<backup launch code goes here>...

FileCreateShortcut("",$LNK,"","","",$icon_real)
Edited by trunc.ate

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0