Category : electron

I want to detect when the user has copied from a window. To intercept the WM_CLIPBOARDUPDATE message, I have to first register the window to receive the message via the AddClipboardFormatListener. The docs say: When a window has been added to the clipboard format listener list, it is posted a WM_CLIPBOARDUPDATE message whenever the contents ..

Read more

I have an Electron app that opens a window like this: function createWindow() { const win = new BrowserWindow({ width: 800, height: 600, titleBarStyle: ‘hidden’, titleBarOverlay: { color: ‘#6a7b8d’, symbolColor: ‘#eee’ }, //…etc }) By passing titleBarOverlay.color and titleBarOverlay.symbolColor to the constructor, I’m able to change the style of the minimize/maximize/close buttons when the app ..

Read more

I want to execute a powershell script on the start of the electron App. I tried to add the following into the <head> in my index.html : <head> <script type="text/javascript"> var spawn = require("child_process").spawn; spawn("powershell.exe",[".myPSScript.ps1"]); </script> </head> <body> … </body> This did not work. When adding: document.write("Hello") it shows up in the app so I ..

Read more