diff --git a/testData/solutions/win32.json b/testData/solutions/win32.json new file mode 100644 index 000000000..3dbcfc12e --- /dev/null +++ b/testData/solutions/win32.json @@ -0,0 +1,1286 @@ +{ + "com.freedomscientific.jaws": { + "name": "JAWS", + "contexts": { + "OS": [ + { + "id": "win32" + } + ] + }, + "settingsHandlers": [ + { + "type": "gpii.settingsHandlers.INISettingsHandler", + "options": { + "filename": "${{environment}.APPDATA}\\Freedom Scientific\\JAWS\\16.0\\Settings\\enu\\DEFAULT.JCF" + }, + "capabilities": [ + "applications.com\\.freedomscientific\\.jaws.id" + ], + + "capabilitiesTransformations": { + "Voice Profiles\\.ActiveVoiceProfileName": { + "transform": { + "type": "fluid.transforms.literalValue", + "inputPath": "http://registry\\.gpii\\.net/common/voiceProfile", + "value": "GPII" + } + }, + "options\\.TypingEcho": { + "transform": { + "type": "fluid.transforms.valueMapper", + "inputPath": "http://registry\\.gpii\\.net/common/typingEcho", + "options": { + "on": { + "outputValue": 1 + }, + "off": { + "outputValue": 0 + } + } + } + } + } + }, + + { + "type": "gpii.settingsHandlers.INISettingsHandler", + "options": { + "filename": "${{environment}.APPDATA}\\Freedom Scientific\\JAWS\\16.0\\Settings\\VoiceProfiles\\GPII.VPF" + }, + "capabilities": [ + "applications.com\\.freedomscientific\\.jaws.id", + "display.screenReader.-provisional-punctuationVerbosity", + "display.screenReader.speechRate", + "display.textReadingHighlight.pitch" + ], + "capabilitiesTransformations": { + "ENU-Global\\.Punctuation": { + "transform": { + "type": "fluid.transforms.valueMapper", + "inputPath": "http://registry\\.gpii\\.net/common/punctuationVerbosity", + "options": { + "none": { + "outputValue": 0 + }, + "some": { + "outputValue": 1 + }, + "most": { + "outputValue": 2 + }, + "all": { + "outputValue": 3 + } + } + } + }, + "ENU-Global\\.Pitch":{ + "transform": { + "type": "fluid.transforms.valueMapper", + "inputPath": "http://registry\\.gpii\\.net/common/pitch", + "options": { + "low": { + "outputValue": 25 + }, + "medium": { + "outputValue": 75 + }, + "high": { + "outputValue": 125 + } + } + } + }, + "ENU-Global\\.Rate": { + "transform": { + "type": "fluid.transforms.linearScale", + "valuePath": "http://registry\\.gpii\\.net/common/speechRate", + "factor": 0.125, + "offset": -12.125 + } + } + } + } + ], + "lifecycleManager": { + "start": [ + "setSettings", + { + "type": "gpii.launch.exec", + "command": "\"${{registry}.HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\JAWS16.exe\\}\"" + } + ], + "stop": [ + { + "type": "gpii.launch.exec", + "command": "${{environment}.SystemRoot}\\System32\\taskkill.exe /f /im jfw.exe" + }, + "restoreSettings" + ] + } + }, + + "com.texthelp.readWriteGold": { + "name": "Read Write Gold", + "contexts": { + "OS": [ + { + "id": "win32", + "version": ">=5.0" + } + ] + }, + "settingsHandlers": [ + { + "type": "gpii.settingsHandlers.XMLHandler", + "options": { + "filename": "${{environment}.APPDATA}\\Texthelp Systems\\ReadAndWrite\\10\\RWSettings10.xml", + "encoding": "utf-8", + "xml-tag": "" + }, + "capabilities": [ + "applications.com\\.texthelp\\.readWriteGold.id", + "languageAssistance" + ], + "capabilitiesTransformations": { + "ApplicationSettings": "ApplicationSettings" + } + } + ], + "lifecycleManager": { + "start": [ + { + "type": "gpii.launch.exec", + "command": "echo 'kill' > ${{environment}.TEMP}\\RW8Updates.dat" + }, + "setSettings", + { + "type": "gpii.launch.exec", + "command": "\"${{registry}.HKEY_CURRENT_USER\\Software\\Texthelp\\Read&Write10\\InstallPath}\\ReadAndWrite.exe\"" + } + ], + "stop": [ + { + "type": "gpii.launch.exec", + "command": "echo 'kill' > ${{environment}.TEMP}\\RW8Updates.dat" + }, + "restoreSettings" + ] + } + }, + + "com.microsoft.windows.magnifier": { + "name": "Windows Built-in Screen Magnifier", + "contexts": { + "OS": [ + { + "id": "win32", + "version": ">=5.0" + } + ] + }, + "settingsHandlers": [ + { + "type": "gpii.windows.registrySettingsHandler", + "options": { + "hKey": "HKEY_CURRENT_USER", + "path": "Software\\Microsoft\\ScreenMagnifier", + "dataTypes": { + "Magnification": "REG_DWORD", + "Invert": "REG_DWORD", + "FollowFocus": "REG_DWORD", + "FollowCaret": "REG_DWORD", + "FollowMouse": "REG_DWORD", + "MagnificationMode": "REG_DWORD", + "ZoomIncrement": "REG_DWORD" + } + }, + "capabilities": [ + "applications.com\\.microsoft\\.windows\\.magnifier.id", + "display.screenEnhancement.screenMagnification.applications.com\\.microsoft\\.windows\\.magnifier.name" + ], + "capabilitiesTransformations": { + "Invert": { + "transform": { + "type": "gpii.transformer.booleanToNumber", + "inputPath": "http://registry\\.gpii\\.net/common/invertColours" + } + }, + "Magnification": { + "transform": { + "type": "fluid.transforms.round", + "input": { + "transform": { + "type": "fluid.transforms.linearScale", + "valuePath": "http://registry\\.gpii\\.net/common/magnification", + "factor": 100 + } + } + } + }, + "transform": [{ + "type": "fluid.transforms.arrayToSetMembership", + "inputPath": "http://registry\\.gpii\\.net/common/tracking", + "presentValue": 1, + "missingValue": 0, + "options": { + "focus": "FollowFocus", + "caret": "FollowCaret", + "mouse": "FollowMouse" + } + }], + "MagnificationMode": { + "transform": { + "type": "fluid.transforms.valueMapper", + "inputPath": "http://registry\\.gpii\\.net/common/magnifierPosition", + "options": { + "FullScreen": { + "outputValue": 2 + }, + "Lens": { + "outputValue": 3 + }, + "LeftHalf": { + "outputValue": 1 + }, + "RightHalf": { + "outputValue": 1 + }, + "TopHalf": { + "outputValue": 1 + }, + "BottomHalf": { + "outputValue": 1 + }, + "Custom": { + "outputValue": 2 + } + } + } + } + } + } + ], + "lifecycleManager": { + "start": [ + "setSettings", + { + "type": "gpii.launch.exec", + "command": "${{environment}.SystemRoot}\\System32\\Magnify.exe" + } + ], + "stop": [ { + "type": "gpii.launch.exec", + "command": "${{environment}.SystemRoot}\\System32\\taskkill.exe /f /im Magnify.exe" + }, + "restoreSettings" + ] + } + }, + + "com.microsoft.windows.onscreenKeyboard": { + "name": "Windows Built-in Onscreen Keyboard", + "contexts": { + "OS": [ + { + "id": "win32", + "version": ">=5.0" + } + ] + }, + "settingsHandlers": [ + { + "type": "gpii.settingsHandlers.noSettings", + "capabilities": [ + "control.onscreenKeyboard", + "applications.com\\.microsoft\\.windows\\.onscreenKeyboard.id", + "control.onscreenKeyboard.applications.com\\.microsoft\\.windows\\.onscreenKeyboard.name" + ] + } + ], + "lifecycleManager": { + "start": [ + { + "type": "gpii.launch.exec", + "command": "${{environment}.SystemRoot}\\System32\\osk.exe" + } + ], + "stop": [ + { + "type": "gpii.launch.exec", + "command": "${{environment}.SystemRoot}\\System32\\taskkill.exe /im osk.exe" + } + ] + } + }, + + "org.nvda-project": { + "name": "NVDA Screen Reader", + "contexts": { + "OS": [ + { + "id": "win32", + "version": ">=5.0" + } + ] + }, + "settingsHandlers": [ + { + "type": "gpii.settingsHandlers.INISettingsHandler", + "options": { + "filename": "${{environment}.APPDATA}\\nvda\\nvda.ini", + "allowNumberSignComments": true, + "allowSubSections": true + }, + "capabilities": [ + "applications.org\\.nvda-project.id", + "display.screenReader.applications.org\\.nvda-project.name" + ], + "capabilitiesTransformations": { + "speech\\.espeak\\.pitch": { + "transform": { + "type": "fluid.transforms.linearScale", + "valuePath": "http://registry\\.gpii\\.net/common/pitch", + "factor": 100 + } + }, + "speech\\.espeak\\.volume": { + "transform": { + "type": "fluid.transforms.linearScale", + "valuePath": "http://registry\\.gpii\\.net/common/volumeTTS", + "factor": 100 + } + }, + "presentation\\.reportHelpBalloons": "http://registry\\.gpii\\.net/common/speakTutorialMessages", + "keyboard\\.speakTypedCharacters": "http://registry\\.gpii\\.net/common/keyEcho", + "keyboard\\.speakTypedWords": "http://registry\\.gpii\\.net/common/wordEcho", + "speech\\.espeak\\.sayCapForCapitals": "http://registry\\.gpii\\.net/common/announceCapitals", + "transform": [ + { + "type": "fluid.transforms.arrayToSetMembership", + "inputPath": "http://registry\\.gpii\\.net/common/trackingTTS", + "presentValue": true, + "missingValue": false, + "options": { + "focus": "reviewCursor\\.followFocus", + "caret": "reviewCursor\\.followCaret", + "mouse": "reviewCursor\\.followMouse" + } + }, + { + "type": "fluid.transforms.valueMapper", + "inputPath": "http://registry\\.gpii\\.net/common/screenReaderTTSEnabled", + "options": { + "false": { + "outputValue": { + "transform": [ + { + "type": "fluid.transforms.literalValue", + "value": "silence", + "outputPath": "speech\\.synth" + }, + { + "type": "fluid.transforms.literalValue", + "value": "Microsoft Sound Mapper", + "outputPath": "speech\\.outputDevice" + } + ] + } + } + } + } + ], + "speech\\.espeak\\.rate": { + "transform": { + "type": "fluid.transforms.round", + "input": { + "transform": { + "type": "fluid.transforms.binaryOp", + "right": 3.10, + "operator": "/", + "left": { + "transform": { + "type": "fluid.transforms.binaryOp", + "right": 80, + "operator": "-", + "left": { + "transform": { + "type": "fluid.transforms.condition", + "truePath": "http://registry\\.gpii\\.net/common/speechRate", + "false": { + "transform": { + "type": "fluid.transforms.binaryOp", + "leftPath": "http://registry\\.gpii\\.net/common/speechRate", + "operator": "/", + "right": 3 + } + }, + "condition": { + "transform": { + "type": "fluid.transforms.binaryOp", + "leftPath": "http://registry\\.gpii\\.net/common/speechRate", + "operator": "<=", + "right": 390 + } + } + } + } + } + } + } + } + } + }, + "speech\\.espeak\\.rateBoost": { + "transform": { + "type": "fluid.transforms.binaryOp", + "leftPath": "http://registry\\.gpii\\.net/common/speechRate", + "operator": ">", + "right": 390 + } + }, + "speech\\.symbolLevel": { + "transform": { + "type": "fluid.transforms.valueMapper", + "inputPath": "http://registry\\.gpii\\.net/common/punctuationVerbosity", + "options": { + "none": { + "outputValue": 0 + }, + "some": { + "outputValue": 100 + }, + "most": { + "outputValue": 200 + }, + "all": { + "outputValue": 300 + } + } + } + }, + "speech\\.espeak\\.voice": { + "transform": { + "type": "fluid.transforms.valueMapper", + "inputPath": "http://registry\\.gpii\\.net/common/auditoryOutLanguage", + "options": { + "en": { + "outputValue": "en\\en" + }, + "en-GB": { + "outputValue": "en\\en" + }, + "en-US": { + "outputValue": "en\\en-us" + }, + "en-scotland": { + "outputValue": "en\\en-sc" + }, + "en-BZ": { + "outputValue": "en\\en-wi" + }, + "en-BS": { + "outputValue": "en\\en-wi" + }, + "en-AG": { + "outputValue": "en\\en-wi" + }, + "en-AI": { + "outputValue": "en\\en-wi" + }, + "af": { + "outputValue": "af" + }, + "bg": { + "outputValue": "bg" + }, + "bs": { + "outputValue": "bs" + }, + "ca": { + "outputValue": "ca" + }, + "cs": { + "outputValue": "cs" + }, + "cy": { + "outputValue": "cy" + }, + "da": { + "outputValue": "da" + }, + "de": { + "outputValue": "de" + }, + "el": { + "outputValue": "el" + }, + "grc": { + "outputValue": "test\\grc" + }, + "eo": { + "outputValue": "eo" + }, + "es": { + "outputValue": "es" + }, + "es-ES": { + "outputValue": "es" + }, + "es-419": { + "outputValue": "es-la" + }, + "et": { + "outputValue": "et" + }, + "fi": { + "outputValue": "fi" + }, + "fr": { + "outputValue": "fr" + }, + "fr-BE": { + "outputValue": "fr-be" + }, + "hi": { + "outputValue": "hi" + }, + "hr": { + "outputValue": "hr" + }, + "hu": { + "outputValue": "hu" + }, + "hy": { + "outputValue": "hy" + }, + "hy-arevmda": { + "outputValue": "hy-west" + }, + "id": { + "outputValue": "id" + }, + "is": { + "outputValue": "is" + }, + "it": { + "outputValue": "it" + }, + "jbo": { + "outputValue": "test\\jbo" + }, + "ka": { + "outputValue": "ka" + }, + "kn": { + "outputValue": "kn" + }, + "ku": { + "outputValue": "ku" + }, + "la": { + "outputValue": "la" + }, + "lv": { + "outputValue": "lv" + }, + "mk": { + "outputValue": "mk" + }, + "ml": { + "outputValue": "ml" + }, + "nci": { + "outputValue": "test\\nci" + }, + "nl": { + "outputValue": "nl" + }, + "no": { + "outputValue": "no" + }, + "pap": { + "outputValue": "test\\pap" + }, + "pl": { + "outputValue": "pl" + }, + "pt-BR": { + "outputValue": "pt" + }, + "pt-PT": { + "outputValue": "pt-pt" + }, + "ro": { + "outputValue": "ro" + }, + "ru": { + "outputValue": "ru" + }, + "sk": { + "outputValue": "sk" + }, + "sq": { + "outputValue": "sq" + }, + "sr": { + "outputValue": "sr" + }, + "sv": { + "outputValue": "sv" + }, + "sw": { + "outputValue": "sw" + }, + "ta": { + "outputValue": "ta" + }, + "tr": { + "outputValue": "tr" + }, + "vi": { + "outputValue": "vi" + }, + "zh-cmn": { + "outputValue": "zh" + }, + "cmn": { + "outputValue": "zh" + }, + "zh-yue": { + "outputValue": "zh-yue" + }, + "zh-yue": { + "outputValue": "yue" + } + } + } + } + } + } + ], + "lifecycleManager": { + "start": [ + "setSettings", + { + "type": "gpii.launch.exec", + "command": "\"${{registry}.HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\nvda.exe\\}\"" + } + ], + "stop": [ + { + "type": "gpii.launch.exec", + "command": "${{environment}.SystemRoot}\\System32\\taskkill.exe /f /im nvda_service.exe" + },{ + "type": "gpii.launch.exec", + "command": "${{environment}.SystemRoot}\\System32\\taskkill.exe /f /im nvda.exe" + }, + "restoreSettings" + ] + } + }, + + "trace.easyOne.communicator.windows": { + "name": "EasyOne Communicator Windows", + "contexts": { + "OS": [ + { + "id": "win32", + "version": ">=5.0" + } + ] + }, + + "settingsHandlers": [ + { + "type": "gpii.settingsHandlers.noSettings", + "capabilities": [ + "content.simplification", + "applications.trace\\.easyOne\\.communicator\\.windows.id", + "content.simplification.applications.trace\\.easyOne\\.communicator\\.windows.name" + ] + } + ], + "lifecycleManager" : { + "start": [ + { + "type": "gpii.launch.exec", + "command": "\"${{registry}.HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\firefox.exe\\}\" http://easy123.org/user/${{userToken}}" + } + ], + "stop": [ + { + "type": "gpii.launch.exec", + "command": "${{environment}.SystemRoot}\\System32\\taskkill.exe /im firefox.exe" + } + ] + } + }, + + "trace.easyOne.sudan.windows": { + "name": "EasyOne Communicator Sudan", + "contexts": { + "OS": [ + { + "id": "win32", + "version": ">=5.0" + } + ] + }, + "settingsHandlers": [ + { + "type": "gpii.settingsHandlers.noSettings", + "capabilities": [ + "content.pictorialSimplification", + "applications.trace\\.easyOne\\.sudan\\.windows.id", + "content.pictorialSimplification.applications.trace\\.easyOne\\.sudan\\.windows.name" + ] + } + ], + "lifecycleManager" : { + "start": [ + { + "type": "gpii.launch.exec", + "command": "\"${{registry}.HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\firefox.exe\\}\" http://easy123.org/sudan" + } + ], + "stop": [ + { + "type": "gpii.launch.exec", + "command": "${{environment}.SystemRoot}\\System32\\taskkill.exe /im firefox.exe" + } + ] + } + }, + + "webinsight.webAnywhere.windows": { + "name": "Web Anywhere", + "contexts": { + "OS": [ + { + "id": "win32", + "version": ">=5.0" + } + ] + }, + "settingsHandlers": [ + { + "type": "gpii.settingsHandlers.noSettings", + "capabilities": [ + "display.screenReader", + "applications.webinsight\\.webAnywhere\\.windows.id", + "display.screenReader.applications.webinsight\\.webAnywhere\\.windows.name" + ] + } + ], + "lifecycleManager" : { + "start": [ + { + "type": "gpii.launch.exec", + "command": "\"${{registry}.HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\firefox.exe\\}\" \"http://webanywhere.cs.washington.edu/beta/?starting_url=http%3A%2F%2Fcloud4all.info\"" + } + ], + "stop": [ + { + "type": "gpii.launch.exec", + "command": "${{environment}.SystemRoot}\\System32\\taskkill.exe /im firefox.exe" + } + ] + } + }, + + "net.opendirective.maavis": { + "name": "maavis", + "contexts": { + "OS": [ + { + "id": "win32", + "version": ">=5.0" + } + ] + }, + + "settingsHandlers": [{ + "type": "gpii.settingsHandlers.JSONSettingsHandler", + "options": { "filename": "${{environment}.MAAVIS_HOME}\\MaavisMedia\\Users\\Default\\userconfig.json" }, + "capabilities": [ "applications.net\\.opendirective\\.maavis.id" ] + }], + + "lifecycleManager": { + "start": [ + "setSettings", + { + "type": "gpii.launch.exec", + "command": "${{environment}.ComSpec} /c \"cd ${{environment}.MAAVIS_HOME} && MaavisPortable.cmd\"" + } + ], + "stop": [ + { + "type": "gpii.launch.exec", + "command": "${{environment}.SystemRoot}\\System32\\taskkill.exe /f /im firefox.exe" + }, + "restoreSettings" + ] + } + }, + + "com.microsoft.windows.highContrast": { + "name": "Windows High Contrast", + "contexts": { + "OS": [ + { + "id": "win32", + "version": ">=5.0" + } + ] + }, + "settingsHandlers": [ + { + "type": "gpii.windows.spiSettingsHandler", + "options": { + "getAction": "SPI_GETHIGHCONTRAST", + "setAction": "SPI_SETHIGHCONTRAST", + "uiParam": "struct_size", + "pvParam": { + "type": "struct", + "name": "HIGHCONTRAST" + }, + "verifySettings": true + }, + "capabilities": [ + "display.screenEnhancement.-provisional-highContrastEnabled", + "applications.com\\.microsoft\\.windows\\.highContrast.id" + ], + "capabilitiesTransformations": { + "HighContrastOn": { + "transform": { + "type": "fluid.transforms.value", + "inputPath": "http://registry\\.gpii\\.net/common/highContrastEnabled", + "outputPath": "value" + }, + "path": { + "transform": { + "type": "fluid.transforms.literalValue", + "value": "pvParam.dwFlags.HCF_HIGHCONTRASTON" + } + } + } + } + } + ], + "lifecycleManager": { + "start": [ + "setSettings" + ], + "stop": [ + "restoreSettings" + ] + } + }, + + "com.microsoft.windows.mouseTrailing": { + "name": "Windows Mouse Trailing", + "contexts": { + "OS": [ + { + "id": "win32", + "version": ">=5.0" + } + ] + }, + "settingsHandlers": [ + { + "type": "gpii.windows.spiSettingsHandler", + "options": { + "getAction": "SPI_GETMOUSETRAILS", + "setAction": "SPI_SETMOUSETRAILS", + "uiParam": 0, + "pvParam": { + "type": "UINT" + }, + "verifySettings": true + }, + "capabilities": [ + "display.screenEnhancement.mouseTrailing", + "applications.com\\.microsoft\\.windows\\.mouseTrailing.id" + ], + "capabilitiesTransformations": { + "MouseTrails": { + "transform": { + "type": "fluid.transforms.value", + "inputPath": "http://registry\\.gpii\\.net/common/mouseTrailing", + "outputPath": "value" + }, + "path": { + "transform": { + "type": "fluid.transforms.literalValue", + "value": { + "get": "pvParam", + "set": "uiParam" + } + } + } + } + } + } + ], + "lifecycleManager": { + "start": [ + "setSettings" + ], + "stop": [ + "restoreSettings" + ] + } + }, + + "com.microsoft.windows.cursors": { + "name": "Windows Cursors", + "contexts": { + "OS": [ + { + "id": "win32", + "version": ">=5.0" + } + ] + }, + "settingsHandlers": [ + { + "type": "gpii.windows.registrySettingsHandler", + "options": { + "hKey": "HKEY_CURRENT_USER", + "path": "Control Panel\\Cursors", + "dataTypes": { + "Arrow": "REG_SZ", + "Hand": "REG_SZ", + "Help": "REG_SZ", + "AppStarting": "REG_SZ", + "No": "REG_SZ", + "NWPen": "REG_SZ", + "SizeAll": "REG_SZ", + "SizeNESW": "REG_SZ", + "SizeNS": "REG_SZ", + "SizeNWSE": "REG_SZ", + "SizeWE": "REG_SZ", + "UpArrow": "REG_SZ", + "Wait": "REG_SZ" + }, + "verifySettings": true + }, + "capabilities": [ + "display.screenEnhancement.cursorSize", + "applications.com\\.microsoft\\.windows\\.cursors.id" + ], + "capabilitiesTransformations": { + "Arrow": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_arrow.cur" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_arrow_l.cur" + }, { + "output": "%SystemRoot%\\cursors\\aero_arrow_xl.cur" + } + ] + } + }, + "Hand": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_link.cur" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_link_l.cur" + }, { + "output": "%SystemRoot%\\cursors\\aero_link_xl.cur" + } + ] + } + }, + "Help": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_helpsel.cur" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_helpsel_l.cur" + }, { + "output": "%SystemRoot%\\cursors\\aero_helpsel_xl.cur" + } + ] + } + }, + "AppStarting": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_working.ani" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_working_l.ani" + }, { + "output": "%SystemRoot%\\cursors\\aero_working_xl.ani" + } + ] + } + }, + "No": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_unavail.cur" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_unavail_l.cur" + }, { + "output": "%SystemRoot%\\cursors\\aero_unavail_xl.cur" + } + ] + } + }, + "NWPen": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_pen.cur" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_pen_l.cur" + }, { + "output": "%SystemRoot%\\cursors\\aero_pen_xl.cur" + } + ] + } + }, + "SizeAll": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_move.cur" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_move_l.cur" + }, { + "output": "%SystemRoot%\\cursors\\aero_move_xl.cur" + } + ] + } + }, + "SizeNESW": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_nesw.cur" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_nesw_l.cur" + }, { + "output": "%SystemRoot%\\cursors\\aero_nesw_xl.cur" + } + ] + } + }, + "SizeNS": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_ns.cur" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_ns_l.cur" + }, { + "output": "%SystemRoot%\\cursors\\aero_ns_xl.cur" + } + ] + } + }, + "SizeNWSE": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_nwse.cur" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_nwse_l.cur" + }, { + "output": "%SystemRoot%\\cursors\\aero_nwse_xl.cur" + } + ] + } + }, + "SizeWE": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_ew.cur" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_ew_l.cur" + }, { + "output": "%SystemRoot%\\cursors\\aero_ew_xl.cur" + } + ] + } + }, + "UpArrow": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_up.cur" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_up_l.cur" + }, { + "output": "%SystemRoot%\\cursors\\aero_up_xl.cur" + } + ] + } + }, + "Wait": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/cursorSize", + "ranges": [ + { + "upperBound": 0.333, + "output": "%SystemRoot%\\cursors\\aero_busy.ani" + }, { + "upperBound": 0.666, + "output": "%SystemRoot%\\cursors\\aero_busy_l.ani" + }, { + "output": "%SystemRoot%\\cursors\\aero_busy_xl.ani" + } + ] + } + } + } + } + ], + "lifecycleManager": { + "start": [ + "setSettings", + { + "type": "gpii.windows.spiSettingsHandler.updateCursors" + } + ], + "stop": [ + "restoreSettings", + { + "type": "gpii.windows.spiSettingsHandler.updateCursors" + } + ] + } + }, + + "eu.singularlogic.pixelsense.sociable": { + "name": "Sociable", + "contexts": { + "OS": [ + { + "id": "win32", + "version": ">=5.0" + } + ] + }, + "settingsHandlers": [ + { + "type": "gpii.settingsHandlers.XMLHandler", + "options": { + "filename": "C:\\Sociable\\Configuration.xml", + "encoding": "utf-8", + "xml-tag": "" + }, + "capabilities": [ + "applications.eu\\.singularlogic\\.pixelsense\\.sociable.id" + ], + "capabilitiesTransformations": { + "user.$t": { + "literalValue": 1 + }, + "expert.$t": { + "literalValue": 1 + }, + "careCenter.$t": { + "literalValue": 1 + }, + "screenReaderTTSEnabled": { + "value": "http://registry\\.gpii\\.net/common/screenReaderTTSEnabled" + }, + "highContrastEnabled": { + "value": "http://registry\\.gpii\\.net/common/highContrastEnabled" + }, + "fontSize": { + "value": { + "transform": { + "type": "gpii.transformer.quantize", + "inputPath": "http://registry\\.gpii\\.net/common/fontSize", + "ranges": [{ + "upperBound": 14, + "output": "normal" + },{ + "output": "large" + }] + } + } + } + } + } + ], + "lifecycleManager": { + "start": [ + "setSettings", + { + "type": "gpii.launch.exec", + "command": "C:\\Sociable\\Cloud4All.exe" + } + ], + "stop": [ { + "type": "gpii.launch.exec", + "command": "C:\\Sociable\\Cloud4All.exe -stop" + }, + "restoreSettings" + ] + } + } +} diff --git a/testData/solutions/win32.json5 b/testData/solutions/win32.json5 index e4dcd58f2..d90b4823f 100644 --- a/testData/solutions/win32.json5 +++ b/testData/solutions/win32.json5 @@ -970,7 +970,12 @@ "retryInterval": 1000 }, "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } } }, @@ -1044,7 +1049,12 @@ "type": "gpii.windows.enableRegisteredAT", "options": { "registryName": "osk", - "queryProcess": "osk.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "osk.exe" + } + ] } } }, diff --git a/tests/JournalIntegrationTests.js b/tests/JournalIntegrationTests.js index 8cfc89838..8e0105819 100644 --- a/tests/JournalIntegrationTests.js +++ b/tests/JournalIntegrationTests.js @@ -93,7 +93,12 @@ gpii.tests.journal.initialSettings = { }, "options": { "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } }] } @@ -107,7 +112,12 @@ gpii.tests.journal.settingsAfterCrash = { }, "options": { "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } }] } diff --git a/tests/platform/windows/windows-builtIn-testSpec.js b/tests/platform/windows/windows-builtIn-testSpec.js index b2549e410..35a4fa20a 100644 --- a/tests/platform/windows/windows-builtIn-testSpec.js +++ b/tests/platform/windows/windows-builtIn-testSpec.js @@ -42,7 +42,12 @@ gpii.tests.windows.builtIn = [ retryInterval: 1000 }, "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } }] } @@ -266,7 +271,12 @@ gpii.tests.windows.builtIn = [ retryInterval: 1000 }, "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } }] } @@ -288,7 +298,12 @@ gpii.tests.windows.builtIn = [ retryInterval: 1000 }, "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } }], "com.microsoft.windows.onscreenKeyboard": [{ @@ -297,7 +312,12 @@ gpii.tests.windows.builtIn = [ }, "options": { "registryName": "osk", - "queryProcess": "osk.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "osk.exe" + } + ] } }] } @@ -479,7 +499,12 @@ gpii.tests.windows.builtIn = [ retryInterval: 1000 }, "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } }], "com.microsoft.windows.onscreenKeyboard": [{ @@ -488,7 +513,12 @@ gpii.tests.windows.builtIn = [ }, "options": { "registryName": "osk", - "queryProcess": "osk.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "osk.exe" + } + ] } }] } @@ -510,7 +540,12 @@ gpii.tests.windows.builtIn = [ retryInterval: 1000 }, "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } }], "com.microsoft.windows.onscreenKeyboard": [{ @@ -519,7 +554,12 @@ gpii.tests.windows.builtIn = [ }, "options": { "registryName": "osk", - "queryProcess": "osk.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "osk.exe" + } + ] } }] } @@ -701,7 +741,12 @@ gpii.tests.windows.builtIn = [ retryInterval: 1000 }, "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } }], "com.microsoft.windows.onscreenKeyboard": [{ @@ -710,7 +755,12 @@ gpii.tests.windows.builtIn = [ }, "options": { "registryName": "osk", - "queryProcess": "osk.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "osk.exe" + } + ] } }] } @@ -732,7 +782,12 @@ gpii.tests.windows.builtIn = [ retryInterval: 1000 }, "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } }], "com.microsoft.windows.onscreenKeyboard": [{ @@ -741,7 +796,12 @@ gpii.tests.windows.builtIn = [ }, "options": { "registryName": "osk", - "queryProcess": "osk.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "osk.exe" + } + ] } }] } @@ -923,7 +983,12 @@ gpii.tests.windows.builtIn = [ retryInterval: 1000 }, "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } }], "com.microsoft.windows.onscreenKeyboard": [{ @@ -932,7 +997,12 @@ gpii.tests.windows.builtIn = [ }, "options": { "registryName": "osk", - "queryProcess": "osk.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "osk.exe" + } + ] } }] } @@ -954,7 +1024,12 @@ gpii.tests.windows.builtIn = [ retryInterval: 1000 }, "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } }], "com.microsoft.windows.onscreenKeyboard": [{ @@ -963,7 +1038,12 @@ gpii.tests.windows.builtIn = [ }, "options": { "registryName": "osk", - "queryProcess": "osk.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "osk.exe" + } + ] } }] } @@ -1038,7 +1118,12 @@ gpii.tests.windows.builtIn = [ retryInterval: 1000 }, "registryName": "magnifierpane", - "queryProcess": "Magnify.exe" + "isRunning": [ + { + "type": "gpii.processReporter.find", + "command": "Magnify.exe" + } + ] } }] }