<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Действие по нажатию СКМ над ссылкой в Firefox]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5912&amp;type=atom" />
	<updated>2011-06-17T11:41:43Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5912</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие по нажатию СКМ над ссылкой в Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49174#p49174" />
			<content type="html"><![CDATA[<p>А, я вообще-то не обновил FF до последней версии (не все приложения старые с ним работают), может, класс поменяли. В твоём варианте <em>SetTitleMatchMode, 2</em> не нужно.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-06-17T11:41:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49174#p49174</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие по нажатию СКМ над ссылкой в Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49173#p49173" />
			<content type="html"><![CDATA[<p>Все прекрасно работает! Большое спасибо <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /></p><p>Конечный работоспособный код у меня выглядит так:</p><div class="codebox"><pre><code>SetTitleMatchMode, 2

Mbutton::
   If WinActive(&quot;ahk_class MozillaWindowClass&quot;)
    Send, % A_Cursor = &quot;Unknown&quot; ? &quot;{MButton}&quot; : &quot;^{vk57}&quot;    
   Else
    Send, !{F4}
Exit</code></pre></div><p>Мой скриншот:</p><p><span class="postimg"><img src="http://s57.radikal.ru/i155/1106/98/1f00d7c2669a.jpg" alt="http://s57.radikal.ru/i155/1106/98/1f00d7c2669a.jpg" /></span></p>]]></content>
			<author>
				<name><![CDATA[Kamagi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27024</uri>
			</author>
			<updated>2011-06-17T11:36:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49173#p49173</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие по нажатию СКМ над ссылкой в Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49172#p49172" />
			<content type="html"><![CDATA[<p>Ну ладно, можно так, ориентируясь на форму курсора, когда он над ссылкой:<br /></p><div class="codebox"><pre><code>SetTitleMatchMode, 2
Mbutton::
   If WinActive(&quot;Mozilla Firefox&quot;)
    Send, % A_Cursor = &quot;Unknown&quot; ? &quot;{MButton}&quot; : &quot;^{vk57}&quot;
   Else
    Send, !{F4}
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-06-17T10:02:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49172#p49172</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие по нажатию СКМ над ссылкой в Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49171#p49171" />
			<content type="html"><![CDATA[<p>Странно, то ли у тебя FireFox какой-то другой, то ли Window Spy. У меня скрипт в твоём варианте в FF тоже посылает !{F4}.</p><p><span class="postimg"><img src="http://s52.radikal.ru/i136/1106/24/171f73a47c99.png" alt="http://s52.radikal.ru/i136/1106/24/171f73a47c99.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-06-17T09:55:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49171#p49171</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие по нажатию СКМ над ссылкой в Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49170#p49170" />
			<content type="html"><![CDATA[<p>Window Spy выдает следующее: <strong>ahk_class MozillaWindowClass</strong><br />И скрипт корректно работает, хотя на форумах я встречал именно Mozilla<strong>UI</strong>WindowClass</p>]]></content>
			<author>
				<name><![CDATA[Kamagi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27024</uri>
			</author>
			<updated>2011-06-17T09:42:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49170#p49170</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие по нажатию СКМ над ссылкой в Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49169#p49169" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Kamagi пишет:</cite><blockquote><p>If WinActive(&quot;ahk_class MozillaWindowClass&quot;)</p></blockquote></div><p>Насколько я знаю, класс окна в FF называется Mozilla<strong>UI</strong>WindowClass. Или у тебя не так?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-06-17T09:36:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49169#p49169</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие по нажатию СКМ над ссылкой в Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49168#p49168" />
			<content type="html"><![CDATA[<p><strong>v1.1.00.00 под Win7</strong></p><p>Поменял на вот такое:</p><div class="codebox"><pre><code>Mbutton::
   If WinActive(&quot;ahk_class MozillaWindowClass&quot;)
    Send, ^{vk57}
   Else
    Send, !{F4}
Exit</code></pre></div><p>Проверил в Блокноте - не шлет вроде. <br />Оказалось очень удобно закрывать окна средней клавишей, <br />а если я нахожусь в Firefox, то закрывается только одна вкладка. </p><p>Но вопрос с нажатием СКМ на ссылке в Firefox я пока не решил.</p>]]></content>
			<author>
				<name><![CDATA[Kamagi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27024</uri>
			</author>
			<updated>2011-06-17T09:08:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49168#p49168</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Действие по нажатию СКМ над ссылкой в Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49165#p49165" />
			<content type="html"><![CDATA[<p>IfWinActive[&quot;Firefox&quot;] — неверный синтаксис, условие не работает, Ctrl + W посылается в любом случае. Какой версией AHK пользуешься?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-06-17T08:36:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49165#p49165</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Действие по нажатию СКМ над ссылкой в Firefox]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49160#p49160" />
			<content type="html"><![CDATA[<p>Приветствую!</p><p>Я использую модифицированный под себя скрипт одного товарища с форума.<br />При нажатии средней кнопки мыши <strong>где угодно</strong> в Firefox у меня закрывается вкладка.<br />Хотелось бы, чтобы если курсор мыши находится <strong>над ссылкой</strong>, <br />то эта ссылка открывалась бы в новой вкладке при нажатии СКМ (как <br />в Firefox по умолчанию). Излазил много чего, и, честно говоря, безрезультатно. </p><div class="codebox"><pre><code>Mbutton::
   IfWinActive[&quot;Firefox&quot;]
    Send, ^{vk57}
Exit</code></pre></div><p>Можно здесь что-нибудь сделать?</p><p><strong>UPD:</strong></p><p>Вопрос был решен. Я сделал два файлика со скриптом - один ahk (нужна программа), <br />другой .exe - который можно ставить на компьютер без установки самой программы. </p><p><a href="http://file.oboz.ua/download.php?fid=64455">Сылка на архив со скриптом AHK</a><br /><a href="http://file.oboz.ua/download.php?fid=64456">Ссылка на экзешник</a></p><p>Скрипт создавался под Windows7 с Firefox4</p><p>ЛКМ+ПКМ = Forvard (Вперед) в Firefox4<br />ПКМ+ЛКМ = Back (Назад) в Firefox4<br />ПКМ+WheelUp = Alt+Tab (переключение между вкладками в Firefox4)<br />ПКМ+WheelDown = Ctrl+Tab (переключение между задачами в Win7)<br />СКМ в Firefox4 = закрывает вкладку<br />СКМ в среде Windows7 = закрывает окно/программу</p><p>Окончательный вариант скрипта выглядит так:<br /></p><div class="codebox"><pre><code>Menu, TRAY, Icon, Mouse.ico

RButton::
  if GetKeyState(&quot;LButton&quot;, &quot;P&quot;)
  {
    Click up
    Send, !{right}        
    Quit=1
  }
  else Send, {RButton}
Exit

Mbutton::
   If WinActive(&quot;ahk_class MozillaWindowClass&quot;)
    Send, % A_Cursor = &quot;Unknown&quot; ? &quot;{MButton}&quot; : &quot;^{vk57}&quot;    
   Else
    Send, !{F4}
Exit

RButton &amp; Lbutton:: 
   If WinActive(&quot;ahk_class MozillaWindowClass&quot;)
    Send, !{left} 
Exit
 
RButton &amp; WheelUp::  AltTab

RButton &amp; WheelDown:: Send, ^{Tab}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Kamagi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27024</uri>
			</author>
			<updated>2011-06-17T02:40:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49160#p49160</id>
		</entry>
</feed>
