Example 3 - Xml To Re-Task Side Volume Buttons To Control Display Brightness And Toggle The Display On/Off - HP TouchSmart 9100 - Business PC Application Manual

Resources for developing touch-friendly applications for hp business touch-enabled desktops
Hide thumbs Also See for TouchSmart 9100 - Business PC:
Table of Contents

Advertisement

<?xml version="1.0" encoding="UTF-8"?>
<HPSystemConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:HPSystemConfiguration"
xsi:schemaLocation="urn:HPSystemConfiguration HPSystemConfiguration.xsd"
SchemaVersion="1.0">
<Buttons>
<Button Id="VolumeUpButton" Enabled="true" AutoRepeatEnabled="false"
Action="LaunchExecutable" ActionValue="C:\MyTest.bat param1 /param2 -
param3 &quot;c:\test1\test2\test3.bat&quot; -param5:&quot;param5
value&quot;" />
<Button Id="VolumeMuteButton" Enabled="false" />
<Button Id="VolumeDownButton" Enabled="true"
AutoRepeatEnabled="false" Action="LaunchExecutable"
ActionValue="&quot;C:\Program Files\Internet Explorer\iexplore.exe&quot;
http://www.google.com/search?hl=en&amp;q=hewlett+packard+company&amp;aq=0&
amp;oq=hewlett+packard+com&amp;aqi=g10" />
</Buttons>
</HPSystemConfiguration>
Example 3 – XML to Re-task Side Volume Buttons to Control
Display Brightness and Toggle the Display On/Off
Purpose:
Enable side volume up button and re-task it to increase the display brightness.
If the button is pressed and held, the auto-repeat interval is 500 miliseconds
(simulating a button press every 0.5 seconds while the button is pressed and
held)
Enable side volume down button and re-task it to decrease the display
brightness. If the button is pressed and held, the auto-repeat interval is 1000
miliseconds (simulating a button press every 1 seconds while the button is
pressed and held)
Enable side volume mute button and re-task it to toggle the display on/off.
Auto-repeating is disabled. When the side volume down button is pressed and
held, it will behave similar to when the button is pressed exactly once. When
the side volume mute button is pressed, if the display is on, the display will be
turned off. If the display is off, it will be turned on when the volume mute button
is pressed.
<?xml version="1.0" encoding="UTF-8"?>
<HPSystemConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:HPSystemConfiguration"
xsi:schemaLocation="urn:HPSystemConfiguration HPSystemConfiguration.xsd"
SchemaVersion="1.0">
<Buttons>
<Button Id="VolumeUpButton" Enabled="true" AutoRepeatEnabled="true"
AutoRepeatInterval="500"
<Button Id="VolumeDownButton" Enabled="true"
AutoRepeatEnabled="true" AutoRepeatInterval="1000"
Action="DecreaseDisplayBrightness" />
<Button Id="VolumeMuteButton" Enabled="true"
AutoRepeatEnabled="false" Action="ToggleDisplayOnOff" />
</Buttons>
</HPSystemConfiguration>
Action="IncreaseDisplayBrightness" />
32

Advertisement

Table of Contents
loading

This manual is also suitable for:

Touchsmart dx9000Touchsmart 9100

Table of Contents