<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Событие LButton Up иногда не срабатывает.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7384&amp;type=atom" />
	<updated>2012-07-25T18:35:41Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7384</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Событие LButton Up иногда не срабатывает.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62034#p62034" />
			<content type="html"><![CDATA[<p>С указанными исправлениями не удалось вызвать залипание ЛКМ. (AHK_L 1.1.8.0 Unicode, Win7 x64)</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-07-25T18:35:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62034#p62034</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Событие LButton Up иногда не срабатывает.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62031#p62031" />
			<content type="html"><![CDATA[<p>Это конечно всё замечательно, но меня больше интересует почему условие if state = U не было истинным после того как я отпускал ЛКМ. Хочу понять, почему так происходило.</p>]]></content>
			<author>
				<name><![CDATA[JeeJoy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27810</uri>
			</author>
			<updated>2012-07-25T18:12:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62031#p62031</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Событие LButton Up иногда не срабатывает.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62030#p62030" />
			<content type="html"><![CDATA[<p>На самом деле можно вообще написать так:<br /></p><div class="codebox"><pre><code>*LButton::
while GetKeyState(&quot;LButton&quot;,&quot;P&quot;)
   Click</code></pre></div><p>Если скорость повтора не устраивает, то это исправит <strong>SetMouseDelay, Задержка_в_миллисекундах </strong>&nbsp; первой строкой или <strong>Sleep</strong> внутри <strong>блока while {...}</strong>.</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-07-25T17:49:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62030#p62030</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Событие LButton Up иногда не срабатывает.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62029#p62029" />
			<content type="html"><![CDATA[<p>Прошу прощения. В 3-ем сообщении в функции Func не дописал 3 строки. На деле она у меня выглядела так:<br /></p><div class="codebox"><pre><code>
Func:
    GetKeyState, state, LButton, P;
    if state = U
        SetTimer, Func, Off
    Click
return</code></pre></div><p>Т.е. у меня состояние ЛКМ изначально проверялось, но цикл не прерывался, если я её отпускал.</p>]]></content>
			<author>
				<name><![CDATA[JeeJoy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27810</uri>
			</author>
			<updated>2012-07-25T17:40:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62029#p62029</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Событие LButton Up иногда не срабатывает.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62028#p62028" />
			<content type="html"><![CDATA[<p>В том хотя бы, что в этом варианте проверяется физическое состояние ЛКМ <em><strong>в цикле</strong></em>, так что &quot;заедание&quot; ее весьма маловероятно.</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-07-25T17:25:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62028#p62028</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Событие LButton Up иногда не срабатывает.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62027#p62027" />
			<content type="html"><![CDATA[<p>Спасибо! И компактно получилось. Пока &quot;заеданий&quot; не замечал. А в чём разница между этими вариантами (в плане отлова LButton Up)?</p>]]></content>
			<author>
				<name><![CDATA[JeeJoy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27810</uri>
			</author>
			<updated>2012-07-25T17:18:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62027#p62027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Событие LButton Up иногда не срабатывает.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=61927#p61927" />
			<content type="html"><![CDATA[<p>Попробуй так:<br /></p><div class="codebox"><pre><code>*LButton::
    SetTimer, Func, 100
Func:
    Click
	if (!GetKeyState(&quot;LButton&quot;, &quot;P&quot;))
	   SetTimer, Func, Off
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-07-23T19:17:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=61927#p61927</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Событие LButton Up иногда не срабатывает.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=61922#p61922" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
*LButton::
    Click
    SetTimer, Func, 100
    KeyWait, LButton
    SetTimer, Func, Off
return

Func:
    Click
return</code></pre></div><p>или<br /></p><div class="codebox"><pre><code>
*LButton::
    Click
    SetTimer, Func, 100
return

*LButton Up::
    SetTimer, Func, Off
return

Func:
    Click
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[JeeJoy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27810</uri>
			</author>
			<updated>2012-07-23T16:08:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=61922#p61922</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Событие LButton Up иногда не срабатывает.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=61921#p61921" />
			<content type="html"><![CDATA[<p>Код в студию.<br />(Вполне возможно, что до <strong>LButton Up</strong> исполнение не доходит, если наличествуют #IF ... #IF, или можно LButton поменять на ~LButton).</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-07-23T15:39:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=61921#p61921</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Событие LButton Up иногда не срабатывает.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=61920#p61920" />
			<content type="html"><![CDATA[<p>Проблема заключается в том, что временами левую кнопку мышки &quot;заедает&quot;. Как я предполагаю, скрипт не отлавливает событие отпускания ЛКМ. С чем это может быть связано?</p>]]></content>
			<author>
				<name><![CDATA[JeeJoy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27810</uri>
			</author>
			<updated>2012-07-23T15:24:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=61920#p61920</id>
		</entry>
</feed>
