<?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=13140&amp;type=atom" />
	<updated>2017-10-30T19:02:17Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13140</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120636#p120636" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />Понятно, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[villla777]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29535</uri>
			</author>
			<updated>2017-10-30T19:02:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120636#p120636</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120634#p120634" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>villla777 пишет:</cite><blockquote><p>А это не надо заменять или как?<br />что за странное выражение?<br />r := !r ? 1 : 0</p></blockquote></div><p>Странное оно в том, что конструкция if-else здесь лишняя, так как и без нее переменная r после исполнения &quot;r := !r&quot; будет либо 1 либо 0.<br /></p><div class="codebox"><pre><code>r := !r
msgbox % r</code></pre></div><p>Но на результат работы скрипта это никак не влияет, так, что можете оставлять.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-10-30T16:57:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120634#p120634</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120623#p120623" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong><br /></p><div class="codebox"><pre><code>r:=true
MsgBox % (r := !r) ? &quot;{End}&quot; : &quot;{Home}&quot;
MsgBox % &quot;r = &quot; r
r:=true
MsgBox % r := !r ? &quot;{End}&quot; : &quot;{Home}&quot;
MsgBox % &quot;r = &quot; r</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-10-30T14:53:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120623#p120623</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120622#p120622" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p>Приоритет операции присваивания ниже чем у тернарного оператора.</p></blockquote></div><p>Как это влияет на данный код?</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2017-10-30T14:46:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120622#p120622</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120620#p120620" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>svoboden пишет:</cite><blockquote><p>сложно разобрать почему не работает</p></blockquote></div><p>Приоритет операции присваивания ниже чем у тернарного оператора.<br />Порядок приоритетов тут: <em>Справка → Переменные и выражения</em> или <em>Basic Usage → Variables and Expressions</em>.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-10-30T14:37:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120620#p120620</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120619#p120619" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong><br />Понятно, спасибо. А это не надо заменять или как?<br />что за странное выражение?<br />r := !r ? 1 : 0</p>]]></content>
			<author>
				<name><![CDATA[villla777]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29535</uri>
			</author>
			<updated>2017-10-30T14:28:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120619#p120619</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120617#p120617" />
			<content type="html"><![CDATA[<p>Уберите строку: </p><div class="codebox"><pre><code>#If WinActive(&quot;ahk_class CabinetWClass&quot;) or WinActive(&quot;ahk_class Progman&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-10-30T13:55:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120617#p120617</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120616#p120616" />
			<content type="html"><![CDATA[<p>Блин, и вправду так работает.<br /></p><div class="codebox"><pre><code>Send % (r := !r) ? &quot;{End}&quot; : &quot;{Home}&quot;</code></pre></div><p>Просто без скобок в одну сторону только срабатывало. Просто поначалу сложно разобрать, почему не работает, вот и приходиться выдумывать все подряд.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-10-30T13:40:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120616#p120616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120615#p120615" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong><br />В проводнике код работает нормально, но в браузере, трее, в других окнах, контекстное меню пропало, а без него никак.</p>]]></content>
			<author>
				<name><![CDATA[villla777]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29535</uri>
			</author>
			<updated>2017-10-30T13:36:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120615#p120615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120614#p120614" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong>, что за странное выражение?<br /></p><div class="codebox"><pre><code>r := !r ? 1 : 0</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-10-30T13:22:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120614#p120614</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120613#p120613" />
			<content type="html"><![CDATA[<p>Не понимаю, каким боком тут жесты мыши нужны, ну ладно. Вот, написал свой вариант двойного нажатия, может, подойдет.<br /></p><div class="codebox"><pre><code>#If WinActive(&quot;ahk_class CabinetWClass&quot;) or WinActive(&quot;ahk_class Progman&quot;)

RButton::
press++
  SetTimer, start, -1
return

start:
Sleep 250
if press = 1
Send {RButton}
SetTimer, start, Off
if press = 2
r := !r ? 1 : 0
if r = 1
Send {End}
else if r = 0
Send {Home}
press := &quot;&quot;
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-10-30T12:55:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120613#p120613</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120579#p120579" />
			<content type="html"><![CDATA[<p><strong>stealzy</strong><br />Я вроде никого не мучаю. Не прижилась средняя кнопка, захотелось посадить на ПКМ, что здесь криминального? Поставил скрипт жестов, но никак не могу добиться чтобы он в браузер не лез, а только в проводнике работал. Удалил всё из дефолта, по удалял все пункты browser, и всё равно лезет. Как его выставит только на проводник?<br /><a href="https://autohotkey.com/boards/viewtopic.php?t=31859">https://autohotkey.com/boards/viewtopic.php?t=31859</a></p>]]></content>
			<author>
				<name><![CDATA[villla777]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29535</uri>
			</author>
			<updated>2017-10-29T18:25:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120579#p120579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120558#p120558" />
			<content type="html"><![CDATA[<p>О как, не прошло и пяти лет: <a href="http://forum.script-coding.com/viewtopic.php?id=8041">AHK: Как задать нажатие клавиш Home и End на средий клик мыши</a>.<br />Поставьте уже программу для управления жестами мыши и не мучайте autohotkey, пожалуйста.<br />Дарю: <a href="https://autohotkey.com/board/topic/72057-mousegestureahk-mouse-gesture-script-english-version/">1</a>, <a href="https://autohotkey.com/board/topic/23596-lex-mouse-gestures/">2</a>, <a href="https://autohotkey.com/boards/viewtopic.php?t=31859">3</a>.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-10-29T11:22:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120558#p120558</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Не показывать контекстное меню при двойном ПКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120552#p120552" />
			<content type="html"><![CDATA[<p>Собственно мне сделали скрипт при двойном ПКМ производит прокрутку вверх-вниз в проводнике. Нужно чтобы при двойном ПКМ не появлялось контекстное меню.<br /></p><div class="codebox"><pre><code>;#NoTrayIcon
x_scroll = 0
~RButton::
IfWinNotActive, ahk_class CabinetWClass
  return
if (A_PriorHotkey &lt;&gt; &quot;~RButton&quot; or A_TimeSincePriorHotkey &gt; 400)
  {
    KeyWait, RButton
    return
  }
x_scroll := ! x_scroll
if x_scroll
  Send, ^{End}
else
  Send, ^{Home}
return </code></pre></div>]]></content>
			<author>
				<name><![CDATA[villla777]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29535</uri>
			</author>
			<updated>2017-10-29T09:14:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120552#p120552</id>
		</entry>
</feed>
