hid?: (string|(IHIDCombinationResult| IHIDPauseResult|HIDKey|string)[]);
Property | Description |
---|---|
HID.key | Gives access to a list of available keys. |
HID.combination | Allows the creation of a key and modifiers combination. |
HID.pause | Allows a pause between consecutive keystrokes to be created. |
HID.modifier | Gives access to a list of available key modifiers. |
/** * Opens notepad and types into it a decoded barcode value. * * Please do not remove the 'export' keyword or this comment. * The onResults function triggers the results of each job run. * For more detailed information, please refer to the documentation. * @param {IMainArguments} input_result - object with results of the job. * @returns {IMainResult} - object-defining outputs per interface. */ export function onResults(input_result) { const run_command = [HID.combination(HID.key.R, HID.modifier.L_WINDOWS), HID.pause(200)] const type_notepad = ["notepad", HID.key.ENTER, HID.pause(1000)]; const decode = input_result.tool_results_by_names.Read_Barcode_1.decodes[0]; return { hid: [...run_command, ...type_notepad, decode.value, HID.key.ENTER] }; }