Anyone familiar with the Windows Sidebar (that is, the Windows Vista sidebar) knows that the weather displayed in the sidebar is the default system (Redmond ), if you want to change the area where the weather is displayed to a custom city, it is "basically impossible.
Is it really impossible? Of course not! However, you only need to master the methods described in this article. As long as you follow the methods described in this article successfully, you can display the weather of the custom city on the Vista sidebar.
1. Obtain the cityCode
To enable the Windows Sidebar to "display on demand" city weather, you must first obtain the corresponding code of the city in the system. The method is as follows:
Log on to http://weather.msn.com/. then, enter the name of the city in the "Find weather for" Column (pinyin. This document uses Beijing as an example and input the pinyin Beijing, 1 ).
Figure 1 enter the city name (pinyin)
After entering the information, press Enter. On the displayed page, click "conditions and five-day forecast" (2 ).
Figure 2 click conditions and five-day forecast
When the page is opened, move the mouse to the IE Address Bar, and the final string is the matching City (this article is Beijing, chxx0008) code (3 ).
Figure 3 get the code of the city
The steps for getting the city code seem to be many, but it is very simple. You can copy and save the city code, which will be used in subsequent operations.
[# Page _ display custom city weather in the sidebar: Modify the city #0 #0 #0 #0 #0 #]
2. Replace the default city of the system
The subsequent operations are not very complex, but you need to be careful when replacing the code to avoid the change failure caused by replacement errors.
Create a new notepad, click "file"> "open", and enter "X:/program files/Windows Sidebar/gadgets/weather in the" file name "column of the pop-up dialog box. gadget/ZH-CN/JS/localizedstrings. JS "(X represents the partition where Vista is located ).
After opening the file, find:
L _ l o c a l I z e d s t r I n g s _ t e x T ['d e f a u l t c I t y'] =' r e d m o n d, W ';
L _ l o c a l I z e d s t r I n g s _ t e x T ['d e f a u l t l o c a t I o n c o d E'] = 'W C: u s w a 0 3 6 7'
Find the corresponding modification item
Then modify the two:
L _ l o c a l I z e d s t r I n g s _ t e x T ['d e f a u l t c I t y'] =' beijing, chn ';
L _ l o c a l I z e d s t r I n g s _ t e x T ['d e f a u l t l o c a t I o n c o d E'] = 'W C: chxx0008'
After modification, save the settings and exit. Do you want to see the results of your changes? If the system cannot be refreshed immediately, log out of the system or restart the system and check again.
> Click to learn more about Vista skills <
ArticleCopyright from http://vista.zol.com.cn owned by original author