Thanks a lotI have just made the source available on GitHub.
You can find it here. (it's also in the opening post)
Thanks a lotI have just made the source available on GitHub.
You can find it here. (it's also in the opening post)
Use SystemParamertsInfo to detect if the screen saver is running (SPI_GETSCREENSAVERRUNNING). Check http://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx#Screensaver for more details.There have been multiple requests for this feature already, and I would like that too.
But as of yet I was not able to get a trigger from the screensaver when it starts or stops screensaving.
It's on the list, but it's a tricky one.
Win32API.SendMessageA(Form.ActiveForm.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, value ? MONITOR_OFF : MONITOR_ON);