This example demonstrates a basic Notepad app automation, compatible with both Windows 11 and Server 2019.
- Opens the provided test.txt in Notepad using the Windows Run widget.
- Initially it configures the font.
- Then it sets a text (current timestamp) in the already opened file.
- Saves the new content in the file, then closes the app.
FILE_TO_OPEN
: An absolute filepath to a file, defaults to test.txt found in devdata.NOTEPAD_FONT_NAME
: Defaults to "Times New Roman".NOTEPAD_FONT_STYLE
: Defaults to "Regular".NOTEPAD_FONT_SIZE
: Defaults to "12".