Skip to content

Trigger Action on Windows unlock #1655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Ace-Radom opened this issue May 20, 2025 · 0 comments · May be fixed by #1658
Open

Trigger Action on Windows unlock #1655

Ace-Radom opened this issue May 20, 2025 · 0 comments · May be fixed by #1658
Labels
feature New feature or request

Comments

@Ace-Radom
Copy link
Contributor

Version

2.25.0

OS

Windows 11 24H2

Device

Lenovo Legion 5 17ACH6 82K0

Is your feature request related to a problem?

Discussed in #1573.

Hello!

I have used LLT since 2022 and have found it helpful. It is getting (and looking) very good!

Is there a way to set up an Action that starts on Windows unlock? There are 2 triggers that seem similar. "On resume" triggers when Windows wakes after sleep. "When user becomes active" triggers when it senses activity after inactivity (the duration of which is selectable).

One utility I use often stops working without crashing. I haven't figured out exactly what precedes this. Terminating the process and restarting it on unlock seems to work in all cases. Doing this on waking misses some cases, while after every minute or two of inactivity is not ideal because of the time it takes to restart it.

Lenovo Legion 5 17ACH6 82K0, Windows 11 24H2, Lenovo Legion Toolkit 2.25.0

Originally posted by @bsfreely in #1573

How would you like the problem to be solved?

A possible solution would be combine SystemEvents.SessionSwitch and WTS API WTSQuerySessionInformation(). We can get session flag every time when SessionSwitch event is triggered, and raise events inside LLT.

What alternatives have you considered?

Using WTSRegisterSessionNotification() instead of C# system events would be more reliable, but I need to take a look if it is necessary.

Additional information

No response

@Ace-Radom Ace-Radom added the feature New feature or request label May 20, 2025
@Ace-Radom Ace-Radom linked a pull request May 22, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant