4 questions
3
votes
1
answer
97
views
How to Use Windows System Menu via Python and Pygame
I have a fairly typical pygame project with a game loop that processes events, updates game state and data, and then draws the next frame. That's all working.
For various reasons, this is Windows only ...
0
votes
1
answer
65
views
.NET Console App - can it detect its own imminent termination due to system shutdown?
I have a small console app that runs continuously on an Azure Windows 10 VM, doing some calculations.
But I would like it if the job could detect when the VM is about to reboot, or when it itself is ...
0
votes
1
answer
3k
views
How to run official SetWinEventHook example code on Windows platform?
I want to try and run the official SetWinEventHook() example given at https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwineventhook:
// Global variable.
HWINEVENTHOOK g_hook;
...
0
votes
0
answers
54
views
How to create a service for monitoring of opening and switching of active application on Windows using Win32 api? [duplicate]
I want to create the simplest service for monitoring which new application I am opening or which application I am switching to make it active window/application on Windows 10+ using the Win32 api.
...