<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; АНК:Включение, пауза двойного клика мышки]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10361&amp;type=atom" />
	<updated>2015-01-23T17:35:03Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10361</id>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90910#p90910" />
			<content type="html"><![CDATA[<p>А зачем пауза, ведь если отпустить кнопку мыши, то и скрипт и завершит свою работу.<br />Например так:<br /></p><div class="codebox"><pre><code>~LButton::
KeyWait LButton, T0.3
If ErrorLevel
{
   While GetKeyState(&quot;LButton&quot;,&quot;p&quot;)
   {
      send {click 2}
      sleep, 80
   }
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2015-01-23T17:35:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90910#p90910</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90909#p90909" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>Значит, скрипт не видит нажатий. Игра как-то перехватывает, вероятно. Но я не спец по играм. Знаю, что с ними мороки много по сравнению с обычными приложениями.</p></blockquote></div><p>Вы полностью правы. Где то работает скрипт, где то не совсем так как нужно. Но в обоих случаях хоткей(пауза и выход) не работают при активных окнах приложений. Спасибо за попытки</p>]]></content>
			<author>
				<name><![CDATA[BiGBooT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32837</uri>
			</author>
			<updated>2015-01-23T16:56:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90909#p90909</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90908#p90908" />
			<content type="html"><![CDATA[<p>Попробуй так:</p><div class="codebox"><pre><code>~*Lbutton::
While !p &amp;&amp; GetKeyState(&quot;Lbutton&quot;, &quot;P&quot;) {
   send {click 2}
   Sleep 80
}
return

F8:: p := !p
F12:: ExitApp</code></pre></div><div class="quotebox"><cite>BiGBooT пишет:</cite><blockquote><p>&lt;...&gt; Допустим я нахожусь в приложении/игре, то пауза, а темболее выход из скрипта невозможен.&lt;...&gt;</p></blockquote></div><p>Запусти скрипт от имени администратора, обычно помогает.</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2015-01-23T13:45:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90908#p90908</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90906#p90906" />
			<content type="html"><![CDATA[<p>Поскольку программы писал лет 10 назад из под палки, то сам сейчас сообразить не смогу. Скрипт взял отсюда <a href="http://forum.script-coding.com/viewtopic.php?id=5275">http://forum.script-coding.com/viewtopic.php?id=5275</a></p>]]></content>
			<author>
				<name><![CDATA[BiGBooT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32837</uri>
			</author>
			<updated>2015-01-23T12:55:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90906#p90906</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90905#p90905" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>BiGBooT пишет:</cite><blockquote><div class="codebox"><pre><code>send {click 2}  ; если ЛКМ нажата делаем двойной клик</code></pre></div></blockquote></div><p>Что значит &quot;если&quot;? Судя по коду, здесь нет условия. Команда будет просто выполняться. И в чём смысл <em>Return</em> в пределах фигурных скобок?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2015-01-23T12:12:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90905#p90905</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90904#p90904" />
			<content type="html"><![CDATA[<p>Значит, скрипт не видит нажатий. Игра как-то перехватывает, вероятно. Но я не спец по играм. Знаю, что с ними мороки много по сравнению с обычными приложениями.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-01-23T11:47:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90904#p90904</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90903#p90903" />
			<content type="html"><![CDATA[<p>Извиняюсь за кривизну мыслей, попробую объяснить. Допустим я нахожусь в приложении/игре, то пауза, а темболее выход из скрипта невозможен. Также скрипт прерывается если, допустим зажать и удерживать клавишу Ctrl. Сам макрос поставить на паузу, а тем более выключить нельзя находясь в приложениях или играх</p>]]></content>
			<author>
				<name><![CDATA[BiGBooT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32837</uri>
			</author>
			<updated>2015-01-23T11:21:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90903#p90903</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90902#p90902" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Есть ли вариант сделать глобальными кнопки паузы и выхода с приложений?</p></blockquote></div><p>В смысле? Что за кнопки выхода с приложений?</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-01-23T11:03:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90902#p90902</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90899#p90899" />
			<content type="html"><![CDATA[<p>Вроде так, но всёравно не так. В разных приложениях работает по разному. Может это тоже зависит. Есть ли вариант сделать глобальными кнопки паузы и выхода с приложений? В данном случае приходится выходить на рабочий стол, чтобы сработали хоткеи</p><p>Полностью код<br /></p><div class="codebox"><pre><code>#SingleInstance force
#InstallKeybdHook
#InstallMouseHook
#NoEnv
SendMode InputThenPlay

Lbutton::                  ; при нажатии левой кнопки мыши
settimer, timer, 250    ; запустить таймер каждые 80мс
return

timer:   ; таймер
If !GetKeyState(&quot;Lbutton&quot;, &quot;P&quot;)   ; если ЛКМ отпущена
{
    settimer, timer, off   ; выключить таймер
    Return
}
send {click 2}  ; если ЛКМ нажата делаем двойной клик
Return
F8::Suspend
F10::exitapp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[BiGBooT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32837</uri>
			</author>
			<updated>2015-01-23T10:14:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90899#p90899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90897#p90897" />
			<content type="html"><![CDATA[<p>Если под залипанием клавиши имеете в виду бездействие левой кнопки мыши, то так и должно быть, она задействована как горячая клавиша. Гор. клавиши отключаются не через Pause, а через Suspend.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-01-23T09:53:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90897#p90897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90894#p90894" />
			<content type="html"><![CDATA[<p>Не знаю, ничего не залипает вроде, и клик двойной. Вы какого действия ждёте от паузы?</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-01-23T09:29:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90894#p90894</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90893#p90893" />
			<content type="html"><![CDATA[<p>Поправил, опячатка</p>]]></content>
			<author>
				<name><![CDATA[BiGBooT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32837</uri>
			</author>
			<updated>2015-01-23T09:06:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90893#p90893</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90891#p90891" />
			<content type="html"><![CDATA[<p>Вот это?<br /></p><div class="codebox"><pre><code>
F::8 pause
</code></pre></div><p>Тут у вас клавиша F переназначена на 8.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-01-23T08:08:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90891#p90891</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90890#p90890" />
			<content type="html"><![CDATA[<p>Исправил. Да и кстати скрипт странно ведет себя. Тут получается не двойной клик, а 1 но с задержкой в строке </p><div class="codebox"><pre><code>settimer, timer, 80    ; запустить таймер каждые 80мс</code></pre></div>]]></content>
			<author>
				<name><![CDATA[BiGBooT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32837</uri>
			</author>
			<updated>2015-01-23T07:54:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90890#p90890</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК:Включение, пауза двойного клика мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=90887#p90887" />
			<content type="html"><![CDATA[<p>А где пауза?</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-01-23T02:53:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=90887#p90887</id>
		</entry>
</feed>
