<?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=9921&amp;type=atom" />
	<updated>2014-10-26T18:14:18Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9921</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87766#p87766" />
			<content type="html"><![CDATA[<p>Вот и я о том же: надо что-то одно выбирать (то бишь, морепродукты)))</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2014-10-26T18:14:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87766#p87766</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87765#p87765" />
			<content type="html"><![CDATA[<p>Но если очень надо совместить, то значит и в этом скрипте надо проверять координаты мыши. Если в углу, значит не про нашу честь.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-10-26T18:10:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87765#p87765</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87764#p87764" />
			<content type="html"><![CDATA[<p>Ну тут простая логика, нельзя на две кнопки повесить овер9000 действий, ну или анекдот про рыбку съесть...</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-10-26T18:07:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87764#p87764</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87763#p87763" />
			<content type="html"><![CDATA[<p>На счёт конфликтов, есть такое. Например, лаунчер Сержа из соседней темы с приведенным на пару не работает. Хотя и свои плюсы есть.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2014-10-26T18:00:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87763#p87763</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87761#p87761" />
			<content type="html"><![CDATA[<p>У меня переход на &quot;уровень назад&quot;, а не просто назад. Привык к этой функции в XYplorer.<br />Кроме того, стараюсь использовать меньше горячих клавиш, чтобы избежать многочисленных конфликтов.<span style="color: #f1f1f1">, которые меня просто раздражают.</span></p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-10-26T17:41:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87761#p87761</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87758#p87758" />
			<content type="html"><![CDATA[<p>А я себе давно уже такой сделал:</p><div class="codebox"><pre><code>GroupAdd, 1_Group, ahk_class CabinetWClass
GroupAdd, 1_Group, ahk_class ExploreWClass

#IfWinActive, ahk_group 1_Group
~LButton &amp; RButton::
  Send, {Browser_Forward}
RETURN

RButton &amp; LButton::
  Send, {Browser_Back}
RETURN

$RButton:: Send, {RButton}
Return
#IfWinActive</code></pre></div><p>По-моему так удобнее: в Проводнике для перехода назад удерживается правая мышь и нажимается левая, а для перехода вперед — наоборот.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2014-10-26T16:56:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87758#p87758</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87755#p87755" />
			<content type="html"><![CDATA[<p>А какой смысл в проверке <em>If oldtitledc=title</em>? И зачем NeedAcc() на каждый клик, ведь нужно только на второй?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-10-26T15:22:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87755#p87755</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87746#p87746" />
			<content type="html"><![CDATA[<p>Спасибо. По тестирую.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-10-26T07:37:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87746#p87746</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87745#p87745" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Появляется данный &quot;глюк&quot; редко.</p></blockquote></div><p>Чтоб не появлялось, прописать в начале скрипта:<br /></p><div class="codebox"><pre><code>ComObjError(false)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-10-26T07:20:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87745#p87745</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87741#p87741" />
			<content type="html"><![CDATA[<p>Наконец-то сделал. Теперь работает без &quot;глюков&quot;.</p><div class="codebox"><pre><code>DoubleClicksetTime:=DllCall(&quot;GetDoubleClickTime&quot;)
#If (WinActive(&quot;ahk_class CabinetWClass ahk_exe explorer.exe&quot;))

~LButton::
MouseGetPos,,,mwin
WinGetTitle,title,ahk_id %mwin%
Needcount++
NeedAcc%Needcount%:=NeedAcc()
if Needcount=2
  Needcount=
If (oldtitledc=title and DubleClickDone=&quot;&quot; and A_ThisHotkey=A_PriorHotkey and A_TimeSincePriorHotkey&lt;DoubleClicksetTime and NeedAcc1 and NeedAcc2)
{
  DubleClickDone=1
  sendinput,{alt down}
  sendinput,{up}
  sendinput,{alt up}
}
else
  DubleClickDone:=
oldtitledc:=title
keywait,LButton,L
return

#If

NeedAcc() {
    Static h
    h := !h ? DllCall(&quot;LoadLibrary&quot;,&quot;Str&quot;,&quot;oleacc&quot;,&quot;Ptr&quot;) : h
    If DllCall(&quot;oleacc\AccessibleObjectFromPoint&quot;, &quot;Int64&quot;, 0*DllCall(&quot;GetCursorPos&quot;,&quot;Int64*&quot;,pt)+pt
                        , &quot;Ptr*&quot;, pacc, &quot;Ptr&quot;, VarSetCapacity(varChild,8+2*A_PtrSize,0)*0+&amp;varChild)=0
                        &amp;&amp; (Role := ComObjEnwrap(9,pacc,1).accRole(0))
    Return (Role = 33 || Role = 22 || Role = 41 || Role = 20)  ;  33  это - Список, 22  это - панель инструментов
}
</code></pre></div><br /><p>Глюки конечно все равно есть, но незначительные, появляются только при просмотре файловой системы андроида.<br />И если нажать &quot;Да&quot;, то скрипт все равно работает.<br />Появляется данный &quot;глюк&quot; редко.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-10-26T06:06:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87741#p87741</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86125#p86125" />
			<content type="html"><![CDATA[<p>Спасибо большое.</p><p>...</p><p>В функцию еще нужно 20 добавить - используется в &quot;Библиотеке&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-08-25T14:17:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86125#p86125</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86124#p86124" />
			<content type="html"><![CDATA[<p>alt+Up</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-08-25T13:54:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86124#p86124</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86123#p86123" />
			<content type="html"><![CDATA[<p>Нашел решение - переход на уровень назад осуществляется с зажатой клавишей &quot;Win&quot;.</p><p>...</p><p>Поторопился... показалось...</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-08-25T13:45:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86123#p86123</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86116#p86116" />
			<content type="html"><![CDATA[<p>Спасибо большое, это работает.</p><br /><p>Как я понял, эта функция отличает объекты находящиеся под курсором.</p><p>...</p><p>41 тоже нужно добавить - если папка пустая.</p><br /><p>Оптимальный вариант на текущий момент:<br /></p><div class="codebox"><pre><code>
DoubleClicksetTime:=DllCall(&quot;GetDoubleClickTime&quot;)
#If (WinActive(&quot;ahk_class CabinetWClass ahk_exe explorer.exe&quot;))
~LButton::
If (DubleClickDone=&quot;&quot; and A_ThisHotkey=A_PriorHotkey and A_TimeSincePriorHotkey&lt;DoubleClicksetTime and NeedAcc())
{
  DubleClickDone=1
  sendinput,{alt down}
  sendinput,{up}
  sendinput,{alt up}
}
else
  DubleClickDone=
return

#If

NeedAcc() {
    Static h
    h := !h ? DllCall(&quot;LoadLibrary&quot;,&quot;Str&quot;,&quot;oleacc&quot;,&quot;Ptr&quot;) : h
    If DllCall(&quot;oleacc\AccessibleObjectFromPoint&quot;, &quot;Int64&quot;, 0*DllCall(&quot;GetCursorPos&quot;,&quot;Int64*&quot;,pt)+pt
                        , &quot;Ptr*&quot;, pacc, &quot;Ptr&quot;, VarSetCapacity(varChild,8+2*A_PtrSize,0)*0+&amp;varChild)=0
                        &amp;&amp; (Role := ComObjEnwrap(9,pacc,1).accRole(0))
;    Return Role 
    Return (Role = 33 || Role = 22 || Role = 41 || Role = 20)  ;  33  это - Список, 22  это - панель инструментов
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-08-25T11:22:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86116#p86116</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переход назад в проводнике двойным кликом мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86112#p86112" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>При двойном клике по пустому месту в проводнике</p></blockquote></div><p>Двойной клик по список или панель инструментов.<br /></p><div class="codebox"><pre><code>
#If (WinActive(&quot;ahk_class CabinetWClass ahk_exe explorer.exe&quot;))

~LButton:: 
    If (A_PriorHotkey = A_ThisHotkey &amp;&amp; A_TimeSincePriorHotkey &lt; 200 &amp;&amp; NeedAcc())
        SendInput {Backspace}
    Return
    
#If

NeedAcc()   { 
    Static h 
    h := !h ? DllCall(&quot;LoadLibrary&quot;,&quot;Str&quot;,&quot;oleacc&quot;,&quot;Ptr&quot;) : h
    If DllCall(&quot;oleacc\AccessibleObjectFromPoint&quot;, &quot;Int64&quot;, 0*DllCall(&quot;GetCursorPos&quot;,&quot;Int64*&quot;,pt)+pt
                        , &quot;Ptr*&quot;, pacc, &quot;Ptr&quot;, VarSetCapacity(varChild,8+2*A_PtrSize,0)*0+&amp;varChild)=0
                        &amp;&amp; (Role := ComObjEnwrap(9,pacc,1).accRole(0))
    Return (Role = 33 || Role = 22)  ;  33  это - Список, 22  это - панель инструментов
}

</code></pre></div><div class="quotebox"><blockquote><p>в идеале переход на уровень назад</p></blockquote></div><p>Тут надо копать. Есть конечно костыль, вставлять путь в адресную строку.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-08-25T08:43:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86112#p86112</id>
		</entry>
</feed>
