This shows you the differences between two versions of the page.
user_object_adaptor [2025/01/28 13:58] montse |
user_object_adaptor [2025/03/13 08:21] (current) ale |
||
---|---|---|---|
Line 49: | Line 49: | ||
* The Input parameter is the command itself. The command has to be preceded with the string **"cmd /c"**, for example:\\ **"cmd /c dir /p"** to list the files in a directory, or **"cmd /c copy pathfileOrg pathfileDst"** to copy one file to another. | * The Input parameter is the command itself. The command has to be preceded with the string **"cmd /c"**, for example:\\ **"cmd /c dir /p"** to list the files in a directory, or **"cmd /c copy pathfileOrg pathfileDst"** to copy one file to another. | ||
- | * **executeCommandParam**: | + | * **executeCommandParam**: executes a command parameter in the Windows operating system. |
* **executeJavaScript(NameFunction):** executes the javaScript function whose name is entered as a parameter. The function can have input parameters and return a value. The input parameters will be the variables defined with setVariable, or the results of other predefined functions. The value that returns will be saved in the output variable.\\ Javascript Version ECMAScript 5. | * **executeJavaScript(NameFunction):** executes the javaScript function whose name is entered as a parameter. The function can have input parameters and return a value. The input parameters will be the variables defined with setVariable, or the results of other predefined functions. The value that returns will be saved in the output variable.\\ Javascript Version ECMAScript 5. | ||
Line 83: | Line 83: | ||
* **sendKeysCombination(Key+Key, Delay in miliseconds):** this function sends the combinations of the keys (or Java Robot KeyEvent API) one by one separated by a + where the cursor is at this moment. For Java Robot KeyEvent API see link: 'https://docs.oracle.com/javase/7/docs/api/java/awt/event/KeyEvent.html'.\\ Receive two parameters: Combination of keys to send, for example: “Control+a”, “Control+z”, “Control+alt+3”, “delete”, “VK_CONTROL+VK_A”, “VK_CONTROL+VK_ALT+VK_A”, “VK_DELETE” etc… (Optional) Delay in milliseconds between keys, for example 200.\\ \\ The list of allowed Keys are: ADD, ALT, ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, BACKSPACE, BACK_SPACE, CANCEL, CLEAR, COMMAND, CONTROL, DECIMAL, DELETE, DIVIDE, DOWN, END, ENTER, EQUALS, ESCAPE, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, HELP, HOME, INSERT, LEFT, LEFT_ALT, LEFT_CONTROL, LEFT_SHIFT, META, MULTIPLY, NULL, NUMPAD0, NUMPAD1, NUMPAD2, NUMPAD3, NUMPAD4, NUMPAD5, NUMPAD6, NUMPAD7, NUMPAD8, NUMPAD9, PAGE_DOWN, PAGE_UP, PAUSE, RETURN, RIGHT, SEMICOLON, SEPARATOR, SHIFT, SPACE, SUBTRACT, TAB, UP | * **sendKeysCombination(Key+Key, Delay in miliseconds):** this function sends the combinations of the keys (or Java Robot KeyEvent API) one by one separated by a + where the cursor is at this moment. For Java Robot KeyEvent API see link: 'https://docs.oracle.com/javase/7/docs/api/java/awt/event/KeyEvent.html'.\\ Receive two parameters: Combination of keys to send, for example: “Control+a”, “Control+z”, “Control+alt+3”, “delete”, “VK_CONTROL+VK_A”, “VK_CONTROL+VK_ALT+VK_A”, “VK_DELETE” etc… (Optional) Delay in milliseconds between keys, for example 200.\\ \\ The list of allowed Keys are: ADD, ALT, ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, BACKSPACE, BACK_SPACE, CANCEL, CLEAR, COMMAND, CONTROL, DECIMAL, DELETE, DIVIDE, DOWN, END, ENTER, EQUALS, ESCAPE, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, HELP, HOME, INSERT, LEFT, LEFT_ALT, LEFT_CONTROL, LEFT_SHIFT, META, MULTIPLY, NULL, NUMPAD0, NUMPAD1, NUMPAD2, NUMPAD3, NUMPAD4, NUMPAD5, NUMPAD6, NUMPAD7, NUMPAD8, NUMPAD9, PAGE_DOWN, PAGE_UP, PAUSE, RETURN, RIGHT, SEMICOLON, SEPARATOR, SHIFT, SPACE, SUBTRACT, TAB, UP | ||
+ | |||
+ | * **sendKeysCombinationThread:** this function runs in a separate thread and sends the key combinations (Java Robot KeyEvent API) one by one separated by a + where the cursor is at the moment. The first parameter indicates how long to wait before executing. The function can be used before calling the method that needs key interaction. | ||
* **sendKeysPaste(Text):** this function executes pasting the text where the cursor is at this moment. Like buffered text paste using “Control+V” combination. Receive one parameter: Text to paste, for example: ~!@#$%^&*()_+{}|:\”<>? abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ çÇáÉñÑä | * **sendKeysPaste(Text):** this function executes pasting the text where the cursor is at this moment. Like buffered text paste using “Control+V” combination. Receive one parameter: Text to paste, for example: ~!@#$%^&*()_+{}|:\”<>? abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ çÇáÉñÑä |