There’s a tool for Windows called Caffeine that simulates pressing the F15 key, which is almost never used by any software being that most keyboards don’t have function keys that go that high.
From the webpage:
If you have problems with your PC locking or going to sleep, caffeine will keep it awake. It works by simulating a keypress once every 59 seconds, so your machine thinks you’re still working at the keyboard, so won’t lock the screen or activate the screensaver.
There’s a tool for Windows called Caffeine that simulates pressing the F15 key, which is almost never used by any software being that most keyboards don’t have function keys that go that high.
From the webpage:
I can’t install unapproved software on my work laptop, probably like most others hence I ain’t messing with that.
The best is to get a physical mouse jiggler