@thimpat/electronutils

1.2.0 • Public • Published

electronutils

Utility functions for Electron

syncWindows

Move a window with another one (Docked mode)

syncWindows(mainWindow, dialog, {id: "sync-1"});
Demo

Docked Windows


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

Readme

Keywords

none

Package Sidebar

Install

npm i @thimpat/electronutils

Weekly Downloads

6

Version

1.2.0

License

MIT

Unpacked Size

37.6 kB

Total Files

9

Last publish

Collaborators

  • thimpat