FRIEGER.COM

Configuring SmartBatt

To get information about home screen layout XML please refer to Microsoft MSDN.

This figure shows main SmartBatt components:

CLSID: {8EBDBF71-BE2E-4CD1-A94F-BBC267EC8C53}



<BATTERY>
This tag contains battery-related output parameters.

Attributes:

  • BatteryChargedPercent="nn" battery life percent assumed to be "fully charged", i.e. 99
  • BatteryCharged="file.wav" file to be played when battery is charged
  • BatteryLowPercent="nn"  battery life percent assumed to be "low", i.e. 15
  • BatteryLow="file.wav" file to be played when battery is low
<IMAGE>

This tag controls battery status image.
Attributes:

  • x="n" y="n" x and y coordinates of image
  • mode="large|small"  image type either large or small
<BAR>

This tag controls battery charge bar settings.
Attributes:

  • x="n" y="n" w="n" h="n"x and y coordinates of bar as well as width and height
  • bgcolor="#rrggbb" background color of the bar. Use 'transparent' to get a transparent background
  • border-color="#rrggbb" color of the bar's bounding border. Use 'transparent' to get a transparent border

Example
<battery batterycharged="charged.wav" batterylow="low.wav">
   <image mode="large" x="10" y=10"/>
   <bar x="20" y= "13" w="50" h="5" bgcolor="transparent" border-color="#FFFFFF"/>
</battery>



<TEMP>
This tag controls thermometer size and position
<BAR>
This tag controls thermometer charge bar settings.
Attributes:
  • x="n" y="n" w="n" h="n"x and y coordinates of bar as well as width and height
  • fgcolor="#rrggbb" color of termometer's bar. Default value is Red (#ff0000)
  • bgcolor="#rrggbb" background color of the bar. Use 'transparent' to get a transparent background
  • border-color="#rrggbb" color of the bar's bounding border. Use 'transparent' to get a transparent border
Example:
<temp>
  <bar x= "75" y= "13" w= "50" h="5" fgcolor="#1E23FA" bgcolor="transparent" border-color="#3080CF"/>
</temp>


<LABEL>
For more information about LABEL tag and its attributes please refer to Microsoft MSDN.
Supported replacement variables are:
  • <BatteryPercent/> - battery life left in percents
  • <BatteryTime/> - time untill full charge / discharge
  • <BatteryTemp/> - battery temperature in degrees of Celsius
  • <BatteryTempFahrenheit/>  - battery temperature in degrees of Fahrenheit
  • <ACLineStatus/> - AC Line status


You may download a sample layout here
1