Example 4 - Xml To Retask Volume Mute Button To Cleaning Mode; Button Element Attribute Summary - 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

Example 4 – XML to Retask Volume Mute Button to
Cleaning Mode
Purpose:
Enable side volume mute button and re-task it to call CleaningMode.cmd file to
put the system into the cleaning mode (hibernating) for a period of two minutes
when the volume mute button is pressed. The system should wake up
automatically by itself when the cleaning mode expires. During the cleaning
mode, the touch screen, the mouse and the keyboard can be wiped or
cleaned, and the system will not take any input from these devices.
Leave volume up and down buttons with their default behavior (increasing and
decreasing the sound volume).
<?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="VolumeMuteButton" Enabled="true"
AutoRepeatEnabled="false" Action="LaunchExecutable"
ActionValue="C:\CleaningMode.cmd" />
</Buttons>
</HPSystemConfiguration>
CleaningMode.cmd file for this example:
@echo off
set PrgFiles=%ProgramFiles(x86)%
if "%PROCESSOR_ARCHITECTURE%"=="x86" set PrgFiles=%ProgramFiles%
REM call HP Maintenance Utility to set the system to hibernate for 2
minutes
"%PrgFiles%\Hewlett-Packard\HP Maintenance Utility\HPMaintUtility.exe"
/hibernate /minutes:2

Button Element Attribute Summary

Attribute
Id
Enabled
AutoRepeatEnabled
AutoRepeatInterval
Valid Value
VolumeUpButton,
VolumeMuteButton or
VolumeDownButton
true or false
true or false
An integer value in the
Note
Each button Id should be specified
at most once in the XML file. If a
button Id is specified more than
once, only the first Button element
with that Id takes effect.
Put "false" to disable a button and
"true" to enable a button
Put "true" to allow a button to
automatically repeat if the button is
pressed and held for a period of
time.
If this attribute is specified with the
value "true", the AutoRepeatInterval
attribute must be set.
The interval in milliseconds for a
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Touchsmart dx9000Touchsmart 9100

Table of Contents