<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Выход из спящего режима]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=15018</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15018&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Выход из спящего режима».]]></description>
		<lastBuildDate>Sun, 13 Oct 2019 18:34:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Выход из спящего режима]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=136351#p136351</link>
			<description><![CDATA[<div class="codebox"><pre><code>SleepTime := 60    ; время в сна секундах
SleepMode := true  ; true — гибернация, false — сон

hTimer := DllCall(&quot;CreateWaitableTimer&quot;, &quot;Ptr&quot;, 0, &quot;UInt&quot;, 0, &quot;Str&quot;, &quot;MyTimer&quot;, &quot;Ptr&quot;)
DllCall(&quot;SetWaitableTimer&quot;, &quot;Ptr&quot;, hTimer, &quot;Int64P&quot;, -SleepTime*10000000, &quot;UInt&quot;, 0, &quot;Ptr&quot;, 0, &quot;Ptr&quot;, 0, &quot;UInt&quot;, 1)
if (A_LastError = 50) {; ERROR_NOT_SUPPORTED
	DllCall(&quot;CloseHandle&quot;, &quot;Ptr&quot;, hTimer)
	MsgBox, Этот компьютер не поддерживает пробуждение по таймеру!
	Return
}
DllCall(&quot;PowrProf\SetSuspendState&quot;, &quot;UInt&quot;, SleepMode, &quot;UInt&quot;, 0, &quot;UInt&quot;, 0)
DllCall(&quot;WaitForSingleObject&quot;, &quot;Ptr&quot;, hTimer, &quot;UInt&quot;, INFINITE := 0xFFFFFFFF)
DllCall(&quot;CloseHandle&quot;, &quot;Ptr&quot;, hTimer)
Return</code></pre></div><p>Если не нужно сразу же отправлять в сон, закомментируй строку </p><div class="codebox"><pre><code>DllCall(&quot;PowrProf\SetSuspendState&quot;, &quot;UInt&quot;, SleepMode, &quot;UInt&quot;, 0, &quot;UInt&quot;, 0)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 13 Oct 2019 18:34:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=136351#p136351</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Выход из спящего режима]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=136350#p136350</link>
			<description><![CDATA[<p>Вроде можно устанавливать таймер пробуждения. Сам не пробовал, просто в поисковике задал вопрос.</p><p><a href="https://viarum.ru/kak-posmotret-taymeryi-probuzhdeniya/">Как посмотреть все таймеры пробуждения в Windows 8.1 и 10</a><br /><a href="https://yandex.ru/turbo?text=https%3A%2F%2Fwindows10w.ru%2Fhelp%2Fsamovklyuchenie-ili-probuzhdenie-windows-10.html&amp;d=1">Самовключение или пробуждение Windows 10</a></p><p>Насколько я понимаю, во время сна все процессы замораживаются.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sun, 13 Oct 2019 18:21:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=136350#p136350</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Выход из спящего режима]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=136349#p136349</link>
			<description><![CDATA[<p>Возможно ли как-то по таймеру (расписанию) с помощью скрипта выйти из спящего режима?</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 13 Oct 2019 17:57:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=136349#p136349</guid>
		</item>
	</channel>
</rss>
