<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Определение активности / бездействия пользователя]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7793&amp;type=atom" />
	<updated>2012-11-19T16:01:07Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7793</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение активности / бездействия пользователя]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65824#p65824" />
			<content type="html"><![CDATA[<p><strong>cbSize</strong> должен быть корректно заполнен. И вообще почти во всех структурах, на входе нужно инициализировать поле с размером.</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-11-19T16:01:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65824#p65824</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение активности / бездействия пользователя]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65771#p65771" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Egorov пишет:</cite><blockquote><p>Тыкните носом , что делаю не так ?</p></blockquote></div><p>Синтаксис уж точно неверный. Правильно:<br /></p><div class="codebox"><pre><code>FileAppend, % &quot;cbSize: &quot; (lastInputInfo ? cbSize : 0) . &quot;`ndwTime: &quot; (lastInputInfo ? dwTime : 0), 1.txt</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-11-18T21:57:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65771#p65771</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение активности / бездействия пользователя]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65768#p65768" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?id=7689">Проверка на активность клавиатуры\мыши</a></p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-11-18T21:03:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65768#p65768</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Определение активности / бездействия пользователя]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65766#p65766" />
			<content type="html"><![CDATA[<p>Необходимо определить активность пользователя , решил использовать WinAPI функцию GetLastInputInfo , но не смог с ней разобраться . <br />Тыкните носом , что делаю не так ?</p><div class="codebox"><pre><code>#include ahkstructlib2.ahk ; http://www.autohotkey.com/board/topic/4613-ahkstructlib-functions-for-use-with-structures-version-2/

cStruct_Create(&quot;lastInputInfo&quot;
    , &quot;UInt&quot; , &quot;cbSize&quot;
    , &quot;dword&quot; , &quot;dwTime&quot;)
loop
{
    sleep,1000
    DllCall(&quot;user32/GetLastInputInfo&quot;, &quot;Str&quot;, lastInputInfo)
    cStruct_Get(&quot;lastInputInfo&quot;)
    fileappend, cbSize: %lastInputInfo?cbSize% `n dwTime: %lastInputInfo?dwTime% , 1.txt
}</code></pre></div><p>В файл пишутся нули ...</p>]]></content>
			<author>
				<name><![CDATA[Egorov]]></name>
			</author>
			<updated>2012-11-18T20:49:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65766#p65766</id>
		</entry>
</feed>
