I’m creating an Electron / Vue application, and I cannot get the Vue Devtools to load in the Electron app window. This is my first time using Electron with Vue, and I’m not sure if there’s a dependency issue that I’m not aware of. I came across this Github issue, but my versions of Ele…
Tag: electron
using npm module in renderer process of electron
I have installed Buffer module via npm install Buffer on my machine and I want to simply import it to the renderer process to use the Buffer When I use this: it says require is undefined. None of the solutions on Stack Overflow are working. Answer Make sure you have nodeIntegration in your BrowserWindow setti…
How to create a custom alphabet charatcer map in electron nodejs
A client asked me to write a desktop application that give the ability for the users of creating a custom char map for messages. To be more clear, consider the message Hello! it can become Atco! because the user have decided to asign to each letter a different one, in the example the H letter is replaced by t…
Why is electron’s showMessageBoxSync duplicating itself when cancel is clicked?
So the issue is: I open an electron messageBox of type ‘info’ once a button is clicked. It has ‘OK’ and ‘Cancel’ options. If I click ‘OK’, no problem. But when I click ‘Cancel’, then click my button again, another messageBox will open in succession f…
update elements in electron with python (and flask?)
I am trying to use a python script to update elements on electron. I have read many tutorials but most of them didn’t work and the one that did work I couldn’t understand how to change it to use it in my program. For this reason I have created an electron app that updates a <p> element with …
CSS variable won’t get set | Electron
I’m currently having an issue with CSS variables not being set, I’m using electron and im trying to set it like this: And i’ve my variables defined like so: The color is printed, but the variable is not being set. I’ve seen ‘BlinkFeatures’ and i’ve enabled those too, …
NODEJS: Return array of arrays from dialog openDirectory
I am working in a electron desktop app, and what I need to do is: Open a directory using ‘dialog.showOpenDialog’. Filter the files by their extension. Read filtered files (they have no header). Parse them into columns and return only columns 4 and 6 (coordinates). Return an array of arrays of all …
Electron, contextIsolation and contextBridge
I recently had to revamp an old Electron app. I found out that it had contextIsolation set to false, so I went ahead and set it to true (and btw set nodeIntegration to false). As expected, it broke the ipc communications So I used, as advised in many places, a preload script that enables some communications c…
Take desktop screenshot with Electron
I am using Electron to create a Windows application that creates a fullscreen transparent overlay window. The purpose of this overlay is to: take a screenshot of the entire screen (not the overlay itself which is transparent, but the screen ‘underneath’), process this image by sending the image as…
My app doesn’t close on button, electron.js
I have this electron.js app and I would like the application to close when I click on the text with class closer. Here is my code: HTML main.js initialization electron closer.js My problem is that clicking the button, doesn’t work. What should I do? Answer I think you can do it with a loop like this.