Electron load failed when set uiAccess true

archjv 1 Reputation point
2022-07-15T08:43:37.53+00:00

I want to use electron to develop an app to show above lock screen. I need to set my window alwaysOnTop and set the uiAccess of the exe as true. The exe can load index.html successfully without uiAccess change, but when I change the uiAccess to true, the exe can only create a window but the window is blank, sometimes it's white while sometimes it's black.

I tried to log some event and found that the crashed event was triggered if I open the exe with non-Administrator. If I open the exe with administrator, the 'did-finish-load' was triggered but the window is black, didn't show my index.html. How can I fix this?

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
827 questions
{count} votes