<?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=6790&amp;type=atom" />
	<updated>2012-12-17T17:20:05Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6790</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67090#p67090" />
			<content type="html"><![CDATA[<p>Или может кто подскажет как это с помощью SetTimer сделать?</p>]]></content>
			<author>
				<name><![CDATA[fin1982]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27857</uri>
			</author>
			<updated>2012-12-17T17:20:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67090#p67090</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67089#p67089" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Irbis пишет:</cite><blockquote><p>Исправь <strong>Loop</strong><br /></p><div class="codebox"><pre><code>...
loop
{
  if WinActive(&quot;Cent&quot;) &amp;&amp; !A_IsSuspended
  {
     Send 4
     sleep 200
     Send 5
  }
     sleep 200
}
...</code></pre></div></blockquote></div><p>что то как то глючит, перестал срабатывать шифт при нажатии Xbutton1 кнопки мыши.<br />Где поменять? Нужно чтобы это нажатие цифр как бы бэкраундом начинало работать, не затрагивая другие функции&nbsp; при нажатии Xbutton2, и при последующем нажатии Xbutton2 отключалось и так по кругу, заранее спасибо.</p>]]></content>
			<author>
				<name><![CDATA[fin1982]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27857</uri>
			</author>
			<updated>2012-12-17T17:01:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67089#p67089</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67083#p67083" />
			<content type="html"><![CDATA[<p>Исправь <strong>Loop</strong><br /></p><div class="codebox"><pre><code>...
loop
{
  if WinActive(&quot;Cent&quot;) &amp;&amp; !A_IsSuspended
  {
     Send 4
     sleep 200
     Send 5
  }
     sleep 200
}
...</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-12-17T15:32:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67083#p67083</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67078#p67078" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>В документации много примеров.</p></blockquote></div><p>Я не программист, плохо в этом разбираюсь.</p><p>Попробовал сделать так:<br /></p><div class="codebox"><pre><code>

#IfWinActive Cent
Suspend, Toggle
loop
{
  Send 4
  sleep 200
  Send 5
  sleep 200
}
Lbutton::
    SetTimer, LClick, 20
Return  
 Lbutton Up::
    SetTimer, LClick, Off
Return
 LClick:
    Click
Xbutton1::LShift
Xbutton2::Suspend
#IfWinActive</code></pre></div><p>но так почемуто нажатия происходят не только в нужном окне а везде.<br />В чем загвоздка?</p>]]></content>
			<author>
				<name><![CDATA[fin1982]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27857</uri>
			</author>
			<updated>2012-12-17T14:53:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67078#p67078</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67077#p67077" />
			<content type="html"><![CDATA[<p>В документации много примеров.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2012-12-17T14:51:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67077#p67077</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67076#p67076" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>Добавить цикл <em><a href="http://www.script-coding.com/AutoHotkey/CommandList.html">Loop (normal)</a> </em>или таймер <em><a href="http://www.script-coding.com/AutoHotkey/SetTimer.html">SetTimer</a>.</em></p></blockquote></div><p>а можно пример? и куда его вставить в выше стоящем скрипте что бы его можно было выключать и снова включать по нажатию на Xbutton2?</p>]]></content>
			<author>
				<name><![CDATA[fin1982]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27857</uri>
			</author>
			<updated>2012-12-17T14:26:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67076#p67076</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67046#p67046" />
			<content type="html"><![CDATA[<p>Добавить цикл <em><a href="http://www.script-coding.com/AutoHotkey/CommandList.html">Loop (normal)</a> </em>или таймер <em><a href="http://www.script-coding.com/AutoHotkey/SetTimer.html">SetTimer</a>.</em></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2012-12-17T11:32:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67046#p67046</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=67043#p67043" />
			<content type="html"><![CDATA[<p>а не подскажете что нужно добавить что бы постоянно в этом скрипте происходило нажатие определенных клавиш (цифры 4,5,6&nbsp; на клавиатуре) и до бесконечности пока не будет нажат Xbutton2?</p>]]></content>
			<author>
				<name><![CDATA[fin1982]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27857</uri>
			</author>
			<updated>2012-12-17T10:50:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=67043#p67043</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59336#p59336" />
			<content type="html"><![CDATA[<p>Спасибо за инфу</p>]]></content>
			<author>
				<name><![CDATA[Oleg1000rud88]]></name>
			</author>
			<updated>2012-04-16T06:42:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59336#p59336</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59226#p59226" />
			<content type="html"><![CDATA[<p>Спасибо еще раз:), теперь работает но при запуске мода он сразу начинает работать, а что сделать что бы он не сразу работал а после нажатия Xbutton2, а вот Xbutton1 хотелось бы что бы сразу и постоянно работал в независимости от Xbutton2. Попробовал это:<br /></p><div class="codebox"><pre><code>Xbutton1::LShift
Xbutton2::Suspend</code></pre></div><p>поменять местами не помогло:(</p><p>И еще вопросик, то что SetTimer, LClick, <strong>2</strong> тут какую частоту оптимально поставить? Это получается что кликанье происходит каждые 2мс.? Не может ли быть зависаний или ошибок если с такой частотой?</p>]]></content>
			<author>
				<name><![CDATA[fin1982]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27857</uri>
			</author>
			<updated>2012-04-13T16:07:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59226#p59226</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59215#p59215" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#IfWinActive  Client ahk_class Ap

Lbutton::
    SetTimer, LClick, 2
Return  
 
Lbutton Up::
    SetTimer, LClick, Off
Return
 
LClick:
    Click
Return

Xbutton1::LShift
Xbutton2::Suspend

#IfWinActive</code></pre></div><p>Если не желаете самостоятельно разобраться «как сделать», задались бы хоть формулировкой «что сделать».</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-04-13T13:41:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59215#p59215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59210#p59210" />
			<content type="html"><![CDATA[<p>creature.ws спасибо за помощь, но не работает как нужно((, при нажатии на Xbutton2 происходят постоянные кликанья, а нужно что бы кликанья были когда зажимается и удерживается левая кнопка мыши. После повторного нажатия на Xbutton2 нужно что бы скрипт не работал(срабатывали только одиночные кликанья). <br />Т.е нажал один раз на Xbutton2 скрипт работает, нажал второй раз скрипт отключился, снова нажал опять работает и т.д.</p>]]></content>
			<author>
				<name><![CDATA[fin1982]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27857</uri>
			</author>
			<updated>2012-04-13T13:17:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59210#p59210</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59188#p59188" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#IfWinActive  Client ahk_class Ap

Xbutton2::
    SetTimer, LClick, % (lc:=!lc)? 100:&quot;Off&quot;
    return

LClick:
    Click
    return

Xbutton1::LShift

#IfWinActive</code></pre></div>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-04-13T02:32:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59188#p59188</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59187#p59187" />
			<content type="html"><![CDATA[<p><span style="color: Green"><strong>fin1982</strong>, я убрал из Вашего поста излишнее цитирование, обрамил код <a href="http://forum.script-coding.com/help.php#bbcode">тэгом «code»</a>. Жду от Вас впредь того же.</span></p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2012-04-12T22:07:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59187#p59187</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Множественный клик левой кнопки мыши при нажатии правой]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59186#p59186" />
			<content type="html"><![CDATA[<p>а можно готовый скрипт, а то совсем в этом плохо разбираюсь куда это мне воткнуть нужно?</p><p>Вот у меня есть вот такой скрипт, работающий в определенном окне:<br /></p><div class="codebox"><pre><code>#IfWinActive  Cent ahk_class At

Lbutton::
    SetTimer, LClick, 2
Return  
 
Lbutton Up::
    SetTimer, LClick, Off
Return
 
LClick:
    Click
Return

Xbutton1::LShift

#IfWinActive</code></pre></div><p>нужно что бы при нажатии Xbutton2 он включался и отключался попеременно, а кнопка Xbutton1 работала как шифт постоянно, спасибо за помощью))</p>]]></content>
			<author>
				<name><![CDATA[fin1982]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27857</uri>
			</author>
			<updated>2012-04-12T21:26:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59186#p59186</id>
		</entry>
</feed>
