<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Определение состояния клавиши путём команды DllCall(GetKeyState)]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9131&amp;type=atom" />
	<updated>2014-01-09T22:18:31Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9131</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение состояния клавиши путём команды DllCall(GetKeyState)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79053#p79053" />
			<content type="html"><![CDATA[<p>Огромное спасибо всё работает.</p>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2014-01-09T22:18:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79053#p79053</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение состояния клавиши путём команды DllCall(GetKeyState)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79050#p79050" />
			<content type="html"><![CDATA[<p>В общем-то, все оказалось проще.<br /></p><div class="codebox"><pre><code>*~lbutton::
Loop 
{
   State:=DllCall(&quot;GetAsyncKeyState&quot;, &quot;Int&quot;, 1, &quot;UShort&quot;) ; 1 = 0x1 = VK_LButton
   if !State
      break
   DllCall(&quot;Sleep&quot;, UInt, Time)
   DllCall(&quot;mouse_event&quot;,uint,1,int,x,int,y,uint,0,int,0)
   DllCall(&quot;Sleep&quot;, UInt, Timee)
}
Return</code></pre></div><p>Функция найдена, как ни странно, совсем <a href="http://forum.script-coding.com/viewtopic.php?id=6913">рядом</a>.</p><p><strong>Ядрён</strong>, обрати внимание на оформление кода (форматирование) - облегчишь жизнь себе и тем, кто будет твой код читать.</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2014-01-09T20:04:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79050#p79050</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение состояния клавиши путём команды DllCall(GetKeyState)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79044#p79044" />
			<content type="html"><![CDATA[<p>Кошмар. Мусье знает толк в извращениях. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2014-01-09T14:37:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79044#p79044</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение состояния клавиши путём команды DllCall(GetKeyState)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79043#p79043" />
			<content type="html"><![CDATA[<p>Хотя бы для защиты кода <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /><br />Вот такой вот пример использует DllCall, хоть так сразу и не скажешь.<br /></p><div class="codebox"><pre><code>#:=&quot;chr&quot;,#@:=(#_:=(##:=($:=(#$:=(_:=!&quot;&quot;)&lt;&lt;_)&lt;&lt;_)&lt;&lt;_)&lt;&lt;_)&lt;&lt;#$,@:=#_&lt;&lt;_|#@,_#:=%#%(@|#$|_),__:=%#%(@|$|_),_@:=%#%(@|#_|#$|_),_$:=%#%(#@|_),@#:=%#%(@|_),@_:=%#%(@|##|$|#$|_),@@:=%#%(@|#_|$|_),@$:=%#%(@|#_|$),$#:=%#%(@|##|$|#$),$_:=%#%(@|#_|#$),$@:=%#%(@|##|#$|_),$$:=%#%(#@|##),###:=%#%(@|$),##_:=%#%(@|##|$),%###%%##_%%##_%%_#%%@#%%##_%%##_%(%#%(#@|##|$|_) __ _@ _@ @# %#%(@|$|#$|_) __ %#%(#@|#$) @_ %#%(@|#_|##),%#%(#@|@|##|_) $# @$,!_,_@ @$ $_,%#%(#@|##|#$) @@ _@ @$ &quot; &quot; _$ $# @_ @$ %#%(@|##) __ $_ &quot; &quot; _$ @@ @$ @_ $$ @_ @$ $@ __ %#%(@|#_|##|_) &quot; &quot; $$ @# _# $@ __ $_,_@ @$ $_,&quot;&quot;,%#%(#@|@|##|_) $# @$,!_)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2014-01-09T14:24:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79043#p79043</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение состояния клавиши путём команды DllCall(GetKeyState)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79041#p79041" />
			<content type="html"><![CDATA[<p>Похоже, никак. У вас там Р стоит, а эта функция не определяет физическое состояние (судя по её описанию). Про кнопки мыши в описании тоже ничего нет.</p><p>А для чего это надо вообще?</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2014-01-09T11:53:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79041#p79041</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Определение состояния клавиши путём команды DllCall(GetKeyState)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79040#p79040" />
			<content type="html"><![CDATA[<p>Доброго времени суток. Подскажите пожалуйста как правильно реализовать команду &quot;DllCall(GetKeyState)&quot;для определения состояние клавиши в коде приведённом ниже.</p><div class="codebox"><pre><code>*~lbutton::
Loop 
{
GetKeyState, state, LButton, P    ;вместо этой строки
if state = U
break
DllCall(&quot;Sleep&quot;, UInt, Time)
DllCall(&quot;mouse_event&quot;,uint,1,int,x,int,y,uint,0,int,0)
DllCall(&quot;Sleep&quot;, UInt, Timee)
}
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2014-01-09T11:36:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79040#p79040</id>
		</entry>
</feed>
