electronutils
Utility functions for Electron
syncWindows
Move a window with another one (Docked mode)
syncWindows(mainWindow, dialog, {id: "sync-1"});
Demo
unsyncWindows
Remove listeners (Undocked mode)
unsyncWindows("sync-1");
sendSequence
Sends keystroke sequence to a browser window
await sendSequence("F1, Ctrl + F2, A, B, C, Tab, Tab, Space, Escape", {
browserWindow,
delay : 200
});
Available key codes https://www.electronjs.org/docs/latest/api/accelerator#available-key-codes