How do I get node.js to wake up my screensaver and return to my desktop after it goes off?
I've tried the following:
const robot = require("robotjs");
...
//Simulate an "enter" keypress
robot.keyTap("enter");
console.log("enter simulate");
..
//Move the mouse a certain distance
robot.moveMouse(10,10);
console.log("mouse move simulate");
..
//Simulate a mouse left click
robot.mouseClick();
console.log("mouse left click simulate");
Basically I have a timer where one of these functions gets executed after the timer goes off, but the screen saver still stays on (Windows 11).
It works if I preview the screensaver, but when the screensaver automatically comes on and I execute one of these functions after the timer goes off, it remains on...