Christopher L. Crutchfield
Christopher L. Crutchfield
I have interest in this for a project I am working on in Python. I have a similar project written in C# that currently supports WSL. My solution was to...
Here is my PowerShell version. ``` from subprocess import Popen, PIPE from time import sleep class KeepAwake: def __init__(self) -> None: self._powershell: Popen = None def __enter__(self): self._powershell = Popen(["powershell.exe"],...
## re: wakepy Method for WSL using Powershell & SetThreadExecutionState * `SetLastError` will let us look up the result of the function. We are not using in the snippet above,...
I have submitted my first swag at this issue and #161. We could also use that PR to address #167. I still want to update this with unit tests, but...
While reading through the issue more thoroughly, I'm still concerned that the functions will not match the user's expectations, even when trying to implement the locking functionality. PowerToys sets the...