const { Desktop } = require('terminator.js');async function automateNotepad() { const desktop = new Desktop(); // open notepad await desktop.openApplication('notepad'); // find text editor and type const editor = desktop.locator('name:Edit'); await editor.typeText('hello from terminator!\nthis is automated text input.'); // get the text back const content = await editor.getText(); console.log('editor content:', content);}automateNotepad();