Link to home
Start Free TrialLog in
Avatar of D B
D BFlag for United States of America

asked on

Windows 7 Pinned Items

I've got items pinned to the task bar. One of those items is Internet Exlorer. Within IE, I've got pinned items, so when I right-click, I get a list of Pinned items, a list of Frequent items, a list of Tasks followed by the commands to open a new browser, unpin IE from the taskbar and Close the session.

I know where the list of items that are actually pinned to the taskbar are located, but what I cannot locate is the list of items pinned within IE. I'd like to locate and edit the description of some of the items. For example, when I pinned Gmail inbox, the displayed item is "Inbox (443) - me@gmail.com" and I'd just like it to say something like "Inbox". I've searched the registry and my drive looking for "Inbox (443)" and cannot locate it anywhere.
Avatar of Esteban Blanco
Esteban Blanco
Flag of United States of America image

C:\Users\[User name]\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar?
Avatar of D B

ASKER

Nope. That just tells me IE is pinned.
Maybe I am misunderstanding the question (if I am I apologize).  Looking...(trying to replicate).
I found an MSDN article that describes somewhat what you are trying to do.  I just did it on my computer and it worked.  Try it.  I'm putting the whole article because last time I put a link to a TechNet article, I got a lovely email from Experts-Exchange telling me that was wrong of me (REALLY??!!).  Here you go.

Pinned Sites in Internet Explorer 9

Pinned Sites are an important means of achieving Microsoft’s stated aim of putting the user’s preferred web experience “front and center”. Minimizing browser chrome, sorting new tabs in order of pages most viewed, combining the address bar and search box—these all aim to put more attention on website content than on the technology required to present it.

Pinning a site is part of the same mindset. It lets site visitors give highest priority ease of access to the web pages they want to visit the most, and delivers actively updated information about those web pages to draw them back to the site.

Pinned Sites don’t require existing content to be changed. They will open in their own browser window, very much like a custom-branded desktop app.

It is in the implementation and configuration of the options, particularly features such as custom browser branding and site-driven calls to user action, that Pinned Sites offer the kind of marketing potential that site owners will want to utilize.

Companies that have configured Pinned Sites for their online consumers have already reported increases in traffic and user interaction.

Let’s look at the developer’s role by exploring some of the different specific features of Pinned Sites.

How it Works

There are three ways to pin a site with IE9: Drag the favicon (found in the address bar next to the website’s URL), drag a purpose-specific pre-configured image on the page or tear the tab off the browser window and drag it to one of the pinned locations: in this article, we’ll focus on the taskbar. In each case, the taskbar icon for the resulting Pinned Site will be the same as the favicon:



When a Pinned Site is launched, the Back and Forward buttons will take on the dominant color of the favicon and shift slightly to the right to make room for the favicon, which then acts as the Pinned Site’s Home button, creating a branded, functional experience.



You may notice that the favicon outside the address bar is larger than the one inside. This takes advantage of the favicon’s ability to support different resolutions.

If you make your favicon 64×64 or 32×32 pixels—rather than the more standard 16×16—any browser will scale it down for display in your address bar, but IE9 will use a 24×24 version of the specified favicon larger favicon as the site Home button for a pinned site, making that piece of site branding even more dominant.

If you have your taskbar configured to use small icons, your Pinned Site icon will be displayed at 16×16, otherwise the 32×32 version will be displayed.

All the developer has to do is create a favicon, using either their favorite image editing software or a stand alone application, and upload it to the website root directory. I used Photoshop with a plugin to handle .ico files. You can also use the X-Icon Editor Tool.

If your website doesn’t already use a favicon, you’ll also need to insert a line of code in your site header: <link rel="shortcut icon" href="/filename.ico" />

The Icon

OK, so you have a nice high res favicon set up that can be dragged to become a taskbar icon providing a shortcut to a website.

When you hover over an application icon pinned to the Windows 7 taskbar you are shown a thumbnail view of the program linked to. Click on the thumbnail or the icon and that program takes over the dominant window. This is also true of the icons for Pinned Sites.



The website icons pinned to the taskbar, however, offer further functionality.

If the Pinned Site has multiple tabs open, the taskbar icon takes on a layered effect with each layer representing an open tab.

Hover over the multi-layered icon and thumbnails of the web page on each tab are laid out for you. Click on the thumbnail to go to that open tab of the pinned website.



This doesn’t require the developer to do anything, but it is good practice to insert some feature detection code to check whether a user’s browser supports site pinning.

This will do the job:

Our next part gives the developer a bit more to do.

Jump Lists

Developers have the ability to create custom Jump Lists, accessible by right-clicking a Pinned Site’s taskbar icon. Jump Lists allow users to perform actions or visit specific areas of a website or web app without having to first launch a browser window.

A default Jump List is set up automatically for a Pinned Site, and will look like this:



With a little coding, however, a great deal of functionality can be added to the Jump List.

Meta elements in the website page HTML can customize the way the Pinned Site renders after it is launched, using the following syntax:

<meta name="name" content="content"/>

The values for name and guidelines for content are as follows:

application-name: If you don’t give your shortcut a name, the page title is used instead.

msapplication-tooltip: Optional text that is displayed as a tooltip when the mouse pointer hovers over the Pinned Site shortcut icon.

msapplication-starturl: The root URL of the application. If missing, the address of the current page is used instead. Only HTTP, HTTPS, or FTP protocols are allowed.

msapplication-navbutton-color: The color of the Back and Forward buttons in the Pinned Site browser window. Any named color, or hex color value as defined by Cascading Style Sheets (CSS), Level 3 (CSS3) is valid. For more information, see Color Table. If this meta element is absent, the color is based on the shortcut icon.

msapplication-window: The initial size of the Pinned Site browser window. Content sub-elements provide size as number N, separated by a semicolon. Note that user action overwrites this value. Windows preserves the user-generated window size when the user changes the size of the window and then closes the instance.

The following code example uses meta elements to customize the Pinned Site shortcut with a tooltip, start URL, initial window size, and navigation button color.

Meta elements are also used to define application-specific actions that can be added to the Jump List.

A great example of this in action is at the website for The Huffington Post, one online entity that has taken some trouble to make the most of site pinning and what it offers their readership. This is what the basic Huffpost Jump List looks like:



In the Tasks list, different colored favicons have been used to distinguish readership areas of interest. Notice that the icons attached to the Big News items correspond to the web page category types listed under Tasks.

The Big News list is a custom category, with items which update on the Jump List as they are updated on the website—we’ll look at how to do that next.

This all helps to make a meaningful, useful and actionable menu for Huffington Post readers, which will ultimately benefit the site owners as well. IE blogger Ziad Ismail profiled the Huffington Post as a case study for a news service using site pinning: it’s definitely worth a read.

Custom Jump List Categories

Like those at the Huffington Post, developers can add custom categories to a Jump List that not only provide a direct link to a website or specific web page, but can also provide information to the user about that page.

To do this, we’ll call the msSiteModeCreateJumplist method to create a custom category with the label Alerts.

Call msSiteModeCreateJumplist at least once before using any of the other methods in these steps.

The category label won’t appear on the Jump List until there is at least one item in the category, so the next step is to create the list items, using msSiteModeAddJumpListItem. The first parameter specifies the item name, the second specifies the URL to use when the item is selected and the third parameter specifies the icon that to use when displaying the item on the list.

Having created the list and its items, we now need to display the list. Using the msSiteModeShowJumplist method, Windows displays the current list items in the Jump List and also immediately updates the in-memory list.

When you call the msSiteModeClearJumplist method, Windows removes the items from the Jump List.

Another example of a good use of Jump Lists is at the Amazon site:



The code for this shows that the custom Amazon Favorites category is created while the page is loading, so the msSiteModeShowJumpList method is not required.

Notice how items are added in the reverse order of how they appear in the Jump List.

Notice also that the Tasks list focuses on things the user can do, while the custom Amazon Favorites category lists pages the user can go to.

Up to 20 items can be displayed at any one time in a custom category. If you add more than 20 items to a category, the earliest added items are deleted. Although a custom Jump List category can contain up to 20 items, only the last 10 items in the list are visible by default.

You can change the default settings of the taskbar, but bear in mind that this will affect only your display. Others may continue to see the default.

Right-click the taskbar and click Properties.
Click on the Start Menu tab and click the Customize button.
Under Start menu size towards the bottom of the box, set the Number of recent items to display in Jump Lists option to your preferred number.
Click OK and OK.
Be aware that users can remove items from a custom Jump List—although they may be restored in a new session—but not from the pre-set Tasks list.

Making Jump Lists Dynamic

With our custom category set up, we’re going to add items to it dynamically by calling the msSiteModeAddJumpListItem method. Items are added at the top of the list, in the reverse order from how they will appear on the Jump List.

In this example, two tasks in our custom “Alerts” category list are set up in response to the onload event. Task2 is defined before Task1 so that they appear in the correct order on the Jump List.

Items on a Jump List remain visible even after you close a Pinned Site. However, if the dynamic items depend on an application state change, they will not be valid after the site is closed. For that reason, links in a Jump List should contain enough information to navigate regardless of the application state.

Having set our first two tasks to be loaded during onload, changes to the originating pages will not be shown automatically.

We’re now going to add a couple more items to our custom list that will update in response to a user click. We’ll keep the global variable set in the example above.

Remember how I mentioned that users can remove items from a custom category Jump List? As well as updating the Jump List, the msSiteModeShowJumpList method raises an onmssitemodejumplistitemremoved event once for each item that has been removed by the user since the last time the msSiteModeShowJumpList method was called. This event will not be raised if you use msSiteModeClearJumpListto clear the list.

There’s quite a bit more to say about site pinning, particularly some clever things you can do with the taskbar icon, including using overlay icons to notify users of events or status changes on the Pinned Site, and adding toolbar commands to allow users to access application functionality within a Pinned Site thumbnail window.

I’m going to save them up for my next article, as well as a couple of other tips on how to get the most out of site pinning and the role that developers play in making it all work to the greatest advantage of site users and site owners.

Until then, Microsoft’s BuildMyPinnedSite.com and Pinned Sites Developer Documentation is the key resource for information about site pinning, while Ziad Ismail’s series on the Exploring IE blog is also very useful.
Avatar of D B

ASKER

I found the same link. Unfortunately, although it appears to show how to create jumplists programmatically, it gives no reference to where the data is stored. Using msSiteModeAddJumpListItem may add an item to the jumplist, but how does the jumplist know the item has been added unless it is stored somewhere (e.g. registry or file location)?
Avatar of D B

ASKER

estebs1978: If you go to that location, you will see Internet Explorer pinned (assuming you have pinned it to the taskbar). However, if you have pinned URLs to IE, (e.g. I have my bank, Gmail, a couple of internal sites, EE, etc. pinned to IE), where is that data stored?
%AppData%\Microsoft\Windows\Recent\AutomaticDestinations OR %AppData%\Microsoft\Windows\Recent\CustomDestinations
Avatar of D B

ASKER

I have %AppData%\Microsoft\Windows\Recent Items\, but not %AppData%\Microsoft\Windows\Recent\.

%AppData%\Microsoft\Windows\Recent Items\ has neither an AutomaticDestinations or CustomDestinations folder. It DOES contain a LOT of MRU items for different applications (e.g. Excel,  Word, Explorer locations, etc.) but not what I am looking for (i.e. IE jumplist items).
%APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations is what I keep seeing.  Let me drive home and ponder.  Will be back online in 30 minutes or so.
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

I hope this one is it...
Avatar of D B

ASKER

If you pin IE to the taskbar, then pin a URL to the IE item (e.g. open your Favorites list, click and hold a site, and drag it to the taskbar, which will display a tip stating "Pin to Internet Explorer" and release the mouse button), that item will now appear in the Pinned items list if you right-click on IE on the task bar.

What I am trying to locate is the item(s) that were pinned to IE. You've just reiterated your first response, collapsing "C:\Users\[User name]\AppData\Roaming" to "%AppData%"
My apologies.  I didn't see that.  I actually checked the thread to make sure that I had not already put that path.

I understand your question.  I unfortunately have not been able to do exactly what you are trying to do on my machine and during research this is what I have found.

I will let someone else take it from here.

Cheers,

EB
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of D B

ASKER

RobSampson: Sorry for the delay; work got in the way :-)
Anyway, that path does not exist. I believe you left part of the path off, as %APPDATA% should be followed by either Local, LocalLow or Roaming. In any event, parsing those paths yields nothing.
Under %APPDATA%\Roaming\Microsoft\Windows\ there is a 'Recent Items', but it does not contain a folder named AutomaticDestinations. or anything closely named.

One thing I noticed in the article:
There are also custom Jump Lists, *.customDestinations-ms (customdest) files, which are created when a user "pins" a file to an application, such as via the TaskBar.  Per Troy, these files appear to consist of stacked segments (not in an OLE container) that are LNK file formats.

This custom list is what I am interested in, because I pinned the items myself. Can't find either one.

Also, sorry of it takes me a couple of days to get back. Work really is hectic right now. Put in 12.5 hours yesterday.
Avatar of D B

ASKER

I did find a number of files in:
%APPDATA%\AppData\Roaming\Microsoft\Windows\Recent\CustomDestinations\
Just brosing the data with an editor, looks like a large number of items that I did not custom pin, but apparently the application may have. No way of knowing, without peeking inside the file, which belong to IE vs. another application.
I used JumpLister and what I was seeing didn't make a lot of sense. In one, the Local Base Path was iTunes but I have NEVER had iTunes installed on this laptop. In others, they were non-existent IE sites (not in my pinned list) that referred to non-existent files in %APPDATA%\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\.
So, it appears that I am probably not going to get anywhere with this.
It doesn't look like it.  I cannot find any other evidence to suggest the jump list data is stored elsewhere, and in any case, I don't think it's possible to modify those with a script.  The only thing I can think of based on what I'm reading, is that you set up a base jump list as you want it, then copy
%APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\28c8b86deab549a1.automaticDestinations-ms

or
%APPDATA%\Microsoft\Windows\Recent\CustomDestinations\28c8b86deab549a1.customDestinations-ms

to each user profile you want to have the same jump list.  Maybe that would work.

Regards,

Rob.
Avatar of D B

ASKER

Didn't solve my problem but gave me some good information. Always nice to learn something new, even if it may not necessarily be useful :-)