HP Dx9000 Resources for Developing Touch-Friendly Applications for HP Business - Page 31

Re-task Side Volume Up and Down Buttons to Launch

Page 31 highlights

Example 1 - XML to Disable All Side Volume Buttons Purpose:  Disable side volume up button  Disable side volume down button  Disable side volume mute button Example 2 - XML to Disable Side Mute Volume Button and Re-task Side Volume Up and Down Buttons to Launch Applications Purpose:  Enable side volume up button and re-task it to launch MyTest.bat when the button is pressed. MyTest.bat is launched with several parameters: C:\MyTest.bat param1 /param2 -param3 "c:\test1\test2\test3.bat" - param5:"param5 value" Auto-repeating is disabled. When the side volume up button is pressed and held, it will behave similar to when the button is pressed exactly once.  Disable side volume mute button  Enable side volume down button and re-task it to launch Microsoft Internet Explorer with the link to Google search for the phrase "Hewlett-Packard Company". 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. 31

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37

31
</xs:annotation>
<xs:sequence>
<xs:element name="Button" type="hpcfg:Button"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="HPSystemConfiguration">
<xs:sequence>
<xs:element name="Buttons"
type="hpcfg:Buttons"/>
</xs:sequence>
<!-- version, current version is 1.0 -->
<xs:attribute name="SchemaVersion" type="xs:decimal"
use="required"/>
</xs:complexType>
</xs:schema>
Example 1
XML to Disable All Side Volume Buttons
Purpose:
Disable side volume up button
Disable side volume down button
Disable side volume mute button
<?xml version="1.0" encoding="UTF-8"?>
<HPSystemConfiguration
xmlns="urn:HPSystemConfiguration"
xsi:schemaLocation="urn:HPSystemConfiguration HPSystemConfiguration.xsd"
SchemaVersion="1.0">
<Buttons>
<Button Id="VolumeUpButton" Enabled="false" />
<Button Id="VolumeMuteButton" Enabled="false" />
<Button Id="VolumeDownButton" Enabled="false" />
</Buttons>
</HPSystemConfiguration>
Example 2
XML to Disable Side Mute Volume Button and
Re-task Side Volume Up and Down Buttons to Launch
Applications
Purpose:
Enable side volume up button and re-task it to launch MyTest.bat when the
button is pressed. MyTest.bat is launched with several parameters:
C:\MyTest.bat param1 /param2
param3
“c:
\test1\test2\
test3.bat” –
param5:”param5 value”
Auto-repeating is disabled. When the side volume up button is pressed and
held, it will behave similar to when the button is pressed exactly once.
Disable side volume mute button
Enable side volume down button and re-task it to launch Microsoft Internet
Explorer with the link to Google search for the phrase
Hewlett-Packard
Company
”. 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.