<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: При бездействии мыши 1 сек происходит нажатие F5]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=9693&amp;type=atom" />
	<updated>2014-06-15T18:46:36Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=9693</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При бездействии мыши 1 сек происходит нажатие F5]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=83888#p83888" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong><br />А как в этом же скрипте запретить срабатывать таймеру Send в то время, когда мышь не двигается, и при этом зажата левая кнопка мыши?<br />Пробовал играться с вариантами:<br />While not GetKeyState(&quot;LButton&quot;)<br />и<br />GetKeyState, LBState, LButton, P<br />if ( LBState != D )<br />, но ничего работающего не получилось.</p><p>PS. Всё оказалось гораздо проще - KeyWait, LButton</p>]]></content>
			<author>
				<name><![CDATA[Aslan]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=29837</uri>
			</author>
			<updated>2014-06-15T18:46:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=83888#p83888</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При бездействии мыши 1 сек происходит нажатие F5]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=83819#p83819" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?id=6350">Отсюда</a>.<br /></p><div class="codebox"><pre><code>
OnExit, Exit
   hHookMouse := DllCall(&quot;SetWindowsHookEx&quot; . (A_IsUnicode ? &quot;W&quot; : &quot;A&quot;)
      , Int, WH_MOUSE_LL := 14
      , Int, RegisterCallback(&quot;LowLevelMouseProc&quot;, &quot;Fast&quot;)
      , Ptr, DllCall(&quot;GetModuleHandle&quot;, UInt, 0, Ptr)
      , UInt, 0, Ptr)
    Return

Esc::
Exit:
    DllCall(&quot;UnhookWindowsHookEx&quot;, Ptr, hHookMouse)
    ExitApp

LowLevelMouseProc(nCode, wParam, lParam)
{
   Critical
   SetTimer, Send, -1000
   Return DllCall(&quot;CallNextHookEx&quot;, Ptr, 0, Int, nCode, UInt, wParam, UInt, lParam)
}
 
Send:
    SendInput {F5}
    Return
</code></pre></div><p>Вместе с кнопками</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-06-11T12:39:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=83819#p83819</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При бездействии мыши 1 сек происходит нажатие F5]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=83809#p83809" />
			<content type="html"><![CDATA[<p>движения</p>]]></content>
			<author>
				<name><![CDATA[actiom]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32343</uri>
			</author>
			<updated>2014-06-11T09:56:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=83809#p83809</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При бездействии мыши 1 сек происходит нажатие F5]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=83767#p83767" />
			<content type="html"><![CDATA[<p>Бездействие мыши, это нажатия её кнопок или движения?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-06-09T07:20:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=83767#p83767</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: При бездействии мыши 1 сек происходит нажатие F5]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=83766#p83766" />
			<content type="html"><![CDATA[<p>Подскажите как создать скрипт: при бездействии мыши 1 сек происходит нажатие F5 в активном окне?</p>]]></content>
			<author>
				<name><![CDATA[actiom]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32343</uri>
			</author>
			<updated>2014-06-09T07:02:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=83766#p83766</id>
		</entry>
</feed>
