<?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=5098&amp;type=atom" />
	<updated>2019-07-19T14:56:43Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5098</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие на удержание клавиши мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134958#p134958" />
			<content type="html"><![CDATA[<p><strong>Ms_Smail</strong><br />нет, надо чтобы при длительном нажатии нажималась MButton, а при простом RButton</p>]]></content>
			<author>
				<name><![CDATA[ildar12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40265</uri>
			</author>
			<updated>2019-07-19T14:56:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134958#p134958</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие на удержание клавиши мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134913#p134913" />
			<content type="html"><![CDATA[<p><strong>ildar12</strong><br />Если я вас правильно понял, то вы об этом?<br /></p><div class="codebox"><pre><code>
~RButton::
MsgBox, Вы нажали ПКМ
return
</code></pre></div><p>В данном случае произойдёт нажатие ПКМ как обычно и вылетит диалоговое окно.</p>]]></content>
			<author>
				<name><![CDATA[Ms_Smail]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39022</uri>
			</author>
			<updated>2019-07-18T19:27:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134913#p134913</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие на удержание клавиши мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134910#p134910" />
			<content type="html"><![CDATA[<p>Скорее всего никак.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-07-18T18:33:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134910#p134910</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие на удержание клавиши мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134909#p134909" />
			<content type="html"><![CDATA[<p>а как сделать чтобы при обычном нажатии RButton она работала как обычно?</p>]]></content>
			<author>
				<name><![CDATA[ildar12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40265</uri>
			</author>
			<updated>2019-07-18T18:22:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134909#p134909</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие на удержание клавиши мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40985#p40985" />
			<content type="html"><![CDATA[<p>Спасибо, отлично работает</p>]]></content>
			<author>
				<name><![CDATA[Kialtor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24606</uri>
			</author>
			<updated>2010-10-28T05:06:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40985#p40985</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие на удержание клавиши мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40979#p40979" />
			<content type="html"><![CDATA[<p>Тогда так:<br /></p><div class="codebox"><pre><code>RButton::
   StartTime := A_TickCount
   KeyWait, RButton
   if (A_TickCount - StartTime) &gt; 300
      Send, {MButton}
   Else
      Send, {RButton}
   Return</code></pre></div><p>Или так:<br /></p><div class="codebox"><pre><code>RButton::
   mod =
   SetTimer, Timer, -300
   KeyWait, RButton
   SetTimer, Timer, Off
   if !mod
      Send, {RButton}
   Return
   
Timer:
   mod = 1
   Send, {MButton}
   Return</code></pre></div><p>В первом случае посыл <em>MButton</em> совершается после отпускания <em>RButton</em>, во втором — после истечения времени задержки (300 ms).</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-10-27T20:47:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40979#p40979</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие на удержание клавиши мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40978#p40978" />
			<content type="html"><![CDATA[<p>Оба варианта соответствуют контекстному меню с клавиатуры, если навести мышь на файл, то откроется не его контекстное меню, а рабочего стола. Немного не то</p>]]></content>
			<author>
				<name><![CDATA[Kialtor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24606</uri>
			</author>
			<updated>2010-10-27T20:39:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40978#p40978</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие на удержание клавиши мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40971#p40971" />
			<content type="html"><![CDATA[<p>Можно так:<br /></p><div class="codebox"><pre><code>RButton::
   StartTime := A_TickCount
   KeyWait, RButton
   if (A_TickCount - StartTime) &gt; 300
      Send, {MButton}
   Else
      Send, {RButton Up}
   Return</code></pre></div><p>Или так:<br /></p><div class="codebox"><pre><code>RButton::
   mod =
   SetTimer, Timer, -300
   KeyWait, RButton
   SetTimer, Timer, Off
   if !mod
      Send, {RButton Up}
   Return
   
Timer:
   mod = 1
   Send, {MButton}
   Return</code></pre></div><p>В первом случае посыл <em>MButton</em> совершается после отпускания <em>RButton</em>, во втором — после истечения времени задержки (300 ms).</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-10-27T18:33:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40971#p40971</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Действие на удержание клавиши мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40966#p40966" />
			<content type="html"><![CDATA[<p>Помогите пожалуйста сделать так, чтобы при удержании RButton отправлялся MButton. Или при удержании LButton + RButton. У меня не получается, очень хочется добавить mouse3 к тачпаду. Пока у меня работает строчка<br /></p><div class="codebox"><pre><code>RButton::Send {MButton}</code></pre></div><p>, тогда при нажатии ПКМ с альтом или контролом клавиша работает как RButton,&nbsp; а при обычном нажатии как MButon, но это не очень удобно</p>]]></content>
			<author>
				<name><![CDATA[Kialtor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24606</uri>
			</author>
			<updated>2010-10-27T17:54:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40966#p40966</id>
		</entry>
</feed>
