HP Dx9000 Resources for Developing Touch-Friendly Applications for HP Business - Page 33
Example 4, XML to Retask Volume Mute Button to, Cleaning Mode, Button Element Attribute Summary
UPC - 884420541578
View all HP Dx9000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 33 highlights
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). 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 Valid Value VolumeUpButton, VolumeMuteButton or VolumeDownButton Enabled true or false AutoRepeatEnabled true or false AutoRepeatInterval 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