How to turn on the monitor after the idle timer has disabled it? I have power settings in Windows 7: Turn off the monitor after: 1 minuteGo to sleep: Never
But I do not know how to return it back through the code.
This looks promising: http://www.codeproject.com/KB/cs/Monitor_management_guide.aspx
It uses the SendMessage API call:
SC_MONITORPOWER . , . lParam :-1 -1 -2 -
SC_MONITORPOWER . , . lParam :
-1 -
1 -
2 -
? , WinAPI:
SetThreadExecutionState (ES_DISPLAY_REQUIRED)
, .net, .
Source: https://habr.com/ru/post/1717771/More articles:Ruby on Rails Boolean Form - ruby-on-railsРазвертывание базы данных с помощью VSDBCMD.exe без использования встроенной безопасности - visual-studio-2008Android How to send mail without user intervention? - androidList of Mock Objects (Moq) - Best Practices / Simplification - unit-testingСохранение данных в сеансе рельсов для использования в форме при следующем запросе - ruby-on-railsDragging and dropping into TreeView, searching for the index into which to remove the deleted item - wpfjQuery UI: nested sortable errors - jqueryhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1717774/a-tool-for-converting-database-tables-to-entity-java-classes-for-hibernate&usg=ALkJrhgeqpReO4tGICm6QmjVGgumeChvUQMule / Jetty Setup - javaHow to block form submission when you press enter or return? - javascriptAll Articles