<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK:Открыть выделенную папку средней кнопкой мыши]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12647</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12647&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK:Открыть выделенную папку средней кнопкой мыши».]]></description>
		<lastBuildDate>Wed, 08 Feb 2023 07:27:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK:Открыть выделенную папку средней кнопкой мыши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=156677#p156677</link>
			<description><![CDATA[<p>Так у меня нет этого приложения, не могу никуда пнуть.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 08 Feb 2023 07:27:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=156677#p156677</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Открыть выделенную папку средней кнопкой мыши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=156674#p156674</link>
			<description><![CDATA[<p>Уважаемый <strong>teadrinker</strong> пните хоть куда смотреть то.</p>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Wed, 08 Feb 2023 05:44:10 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=156674#p156674</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Открыть выделенную папку средней кнопкой мыши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=156671#p156671</link>
			<description><![CDATA[<p>Приведённый код никак не поможет, он только для проводника. Вы пользуетесь приложением, вот вы и исследуйте, потом результат сюда выложите.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 07 Feb 2023 23:59:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=156671#p156671</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Открыть выделенную папку средней кнопкой мыши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=156670#p156670</link>
			<description><![CDATA[<p>Доброго времени суток. Подскажите пожалуйста как сделать что бы в стороннем приложении (сторонний проводник) тоже работало.<br /></p><div class="codebox"><pre><code>ahk_class dopus.lister
ahk_exe dopus.exe
ahk_pid 9064</code></pre></div><p>При добавлении этого не работает.<br /></p><div class="codebox"><pre><code>else If WinActive(&quot;ahk_class Progman&quot;) or WinActive(&quot;ahk_class CabinetWClass&quot;) or WinActive(&quot;ahk_class dopus.lister&quot;)</code></pre></div><div class="codebox"><pre><code>vk4::
Sleep, 60
Click
WinClose ahk_class #32768 ahk_exe explorer.exe
If (path := Explorer_GetSel()) &amp;&amp; (RegExMatch(path, &quot;i)\.ahk$&quot;)) or (RegExMatch(path, &quot;i)\.au3$&quot;))
Run C:\Program Files\AkelPad\AkelPad.exe %path%
 else If WinActive(&quot;ahk_class Progman&quot;) or WinActive(&quot;ahk_class CabinetWClass&quot;) or WinActive(&quot;ahk_class dopus.lister&quot;)
   SendInput {vkD}
else
SendInput % &quot;{&quot; A_ThisHotkey &quot;}&quot;
  return

#If
Explorer_GetSel()

{
if !(window := Explorer_GetWindow())
return &quot;&quot;
if (window=&quot;desktop&quot;)

{
ControlGet, hwWindow, HWND,, SysListView321, ahk_class Progman 
if !hwWindow
ControlGet, hwWindow, HWND,, SysListView321, A
ControlGet, files, List, % &quot;Selected Col1&quot;,, ahk_id %hwWindow%
base := SubStr(A_Desktop,0,1)==&quot;\&quot; ? SubStr(A_Desktop,1,-1) : A_Desktop
Loop, Parse, files, `n, `r
{
path := base &quot;\&quot; A_LoopField
IfExist %path%
ret .= path &quot;`n&quot;
}
}
else
{
collection := window.document.SelectedItems
for item in collection
ret .= item.path &quot;`n&quot;
}
return Trim(ret,&quot;`n&quot;)
}
Explorer_GetWindow()
{
WinGetClass class, % &quot;ahk_id&quot; hwnd := WinExist(&quot;A&quot;)
if (class ~= &quot;(Cabinet|Explore|)WClass&quot;)
{
for window in ComObjCreate(&quot;Shell.Application&quot;).Windows
if (window.hwnd==hwnd)
return window
}
else if (class ~= &quot;Progman|WorkerW|&quot;)
return &quot;desktop&quot;
}
return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Tue, 07 Feb 2023 23:28:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=156670#p156670</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Открыть выделенную папку средней кнопкой мыши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=120602#p120602</link>
			<description><![CDATA[<div class="codebox"><pre><code>If (path := Explorer_GetSel()) &amp;&amp; (RegExMatch(path, &quot;i)\.ahk$&quot;)) or (RegExMatch(path, &quot;i)\.txt$&quot;))
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Mon, 30 Oct 2017 01:13:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=120602#p120602</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Открыть выделенную папку средней кнопкой мыши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=120594#p120594</link>
			<description><![CDATA[<p>Доброго времени суток. Подскажите пожалуйста как добавить помимо &quot;ahk&quot; ещё и &quot;txt&quot; расширение.<br />Я так думаю что это нужно сделать здесь, но только ни как не пойму.<br /></p><div class="codebox"><pre><code>If (path := Explorer_GetSel()) &amp;&amp; (RegExMatch(path, &quot;i)\.ahk$&quot;))</code></pre></div><div class="codebox"><pre><code>MButton::
Sleep, 60
Click
WinClose ahk_class #32768 ahk_exe explorer.exe
If (path := Explorer_GetSel()) &amp;&amp; (RegExMatch(path, &quot;i)\.ahk$&quot;))
Run C:\Windows\notepad.exe %path%
else If Explorer_GetSel()
    SendInput {Enter}
else
    SendInput {MButton}
return
#If
Explorer_GetSel()
{
if !(window := Explorer_GetWindow())
return &quot;&quot;
if (window=&quot;desktop&quot;)
{
ControlGet, hwWindow, HWND,, SysListView321, ahk_class Progman
if !hwWindow
ControlGet, hwWindow, HWND,, SysListView321, A
ControlGet, files, List, % &quot;Selected Col1&quot;,, ahk_id %hwWindow%
base := SubStr(A_Desktop,0,1)==&quot;\&quot; ? SubStr(A_Desktop,1,-1) : A_Desktop
Loop, Parse, files, `n, `r
{
path := base &quot;\&quot; A_LoopField
IfExist %path%
ret .= path &quot;`n&quot;
}
}
else
{
collection := window.document.SelectedItems
for item in collection
ret .= item.path &quot;`n&quot;
}
return Trim(ret,&quot;`n&quot;)
}
Explorer_GetWindow()
{
WinGetClass class, % &quot;ahk_id&quot; hwnd := WinExist(&quot;A&quot;)
if (class ~= &quot;(Cabinet|Explore)WClass&quot;)
{
for window in ComObjCreate(&quot;Shell.Application&quot;).Windows
if (window.hwnd==hwnd)
return window
}
else if (class ~= &quot;Progman|WorkerW&quot;)
return &quot;desktop&quot;
}
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Sun, 29 Oct 2017 21:54:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=120594#p120594</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Открыть выделенную папку средней кнопкой мыши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115598#p115598</link>
			<description><![CDATA[<p>Вроде вопрос только про папки был. Ну ладно, тогда вместо этого: &quot;else If Explorer_GetSel()&quot;, пиши: &quot;else If WinActive(&quot;ahk_class Progman&quot;) or WinActive(&quot;ahk_class CabinetWClass&quot;)&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Tue, 02 May 2017 00:31:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115598#p115598</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Открыть выделенную папку средней кнопкой мыши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115597#p115597</link>
			<description><![CDATA[<p>Всё работает ,а как бы сделать что бы ещё и ярлыки папок открывало.</p>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Mon, 01 May 2017 22:33:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115597#p115597</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Открыть выделенную папку средней кнопкой мыши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115568#p115568</link>
			<description><![CDATA[<div class="codebox"><pre><code>MButton::
Sleep, 60
Click
WinClose ahk_class #32768 ahk_exe explorer.exe
If (path := Explorer_GetSel()) &amp;&amp; (RegExMatch(path, &quot;i)\.ahk$&quot;))
Run C:\Windows\notepad.exe %path%
else If Explorer_GetSel()
    SendInput {Enter}
else
    SendInput {MButton}
return
#If
Explorer_GetSel()
{
if !(window := Explorer_GetWindow())
return &quot;&quot;
if (window=&quot;desktop&quot;)
{
ControlGet, hwWindow, HWND,, SysListView321, ahk_class Progman
if !hwWindow
ControlGet, hwWindow, HWND,, SysListView321, A
ControlGet, files, List, % &quot;Selected Col1&quot;,, ahk_id %hwWindow%
base := SubStr(A_Desktop,0,1)==&quot;\&quot; ? SubStr(A_Desktop,1,-1) : A_Desktop
Loop, Parse, files, `n, `r
{
path := base &quot;\&quot; A_LoopField
IfExist %path%
ret .= path &quot;`n&quot;
}
}
else
{
collection := window.document.SelectedItems
for item in collection
ret .= item.path &quot;`n&quot;
}
return Trim(ret,&quot;`n&quot;)
}
Explorer_GetWindow()
{
WinGetClass class, % &quot;ahk_id&quot; hwnd := WinExist(&quot;A&quot;)
if (class ~= &quot;(Cabinet|Explore)WClass&quot;)
{
for window in ComObjCreate(&quot;Shell.Application&quot;).Windows
if (window.hwnd==hwnd)
return window
}
else if (class ~= &quot;Progman|WorkerW&quot;)
return &quot;desktop&quot;
}
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Mon, 01 May 2017 00:18:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115568#p115568</guid>
		</item>
		<item>
			<title><![CDATA[AHK:Открыть выделенную папку средней кнопкой мыши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115567#p115567</link>
			<description><![CDATA[<p>Доброго времени суток. Есть скрипт на открытие средней кнопкой мыши файла с расширением&nbsp; &quot;ahk&quot;, как бы туда добавить ещё открытие папки.<br /></p><div class="codebox"><pre><code>~*$vk4::
Sleep, 60
Click
WinClose ahk_class #32768 ahk_exe explorer.exe
If (path := Explorer_GetSel()) &amp;&amp; (RegExMatch(path, &quot;i)\.ahk$&quot;))
Run C:\Program Files (x86)\AkelPad\AkelPad.exe %path%
Else
SendInput % &quot;{&quot; A_ThisHotkey &quot;}&quot;
Double:
Double := 0
return
#If
Explorer_GetSel()
{
if !(window := Explorer_GetWindow())
return &quot;&quot;
if (window=&quot;desktop&quot;)
{
ControlGet, hwWindow, HWND,, SysListView321, ahk_class Progman
if !hwWindow
ControlGet, hwWindow, HWND,, SysListView321, A
ControlGet, files, List, % &quot;Selected Col1&quot;,, ahk_id %hwWindow%
base := SubStr(A_Desktop,0,1)==&quot;\&quot; ? SubStr(A_Desktop,1,-1) : A_Desktop
Loop, Parse, files, `n, `r
{
path := base &quot;\&quot; A_LoopField
IfExist %path%
ret .= path &quot;`n&quot;
}
}
else
{
collection := window.document.SelectedItems
for item in collection
ret .= item.path &quot;`n&quot;
}
return Trim(ret,&quot;`n&quot;)
}
Explorer_GetWindow()
{
WinGetClass class, % &quot;ahk_id&quot; hwnd := WinExist(&quot;A&quot;)
if (class ~= &quot;(Cabinet|Explore)WClass&quot;)
{
for window in ComObjCreate(&quot;Shell.Application&quot;).Windows
if (window.hwnd==hwnd)
return window
}
else if (class ~= &quot;Progman|WorkerW&quot;)
return &quot;desktop&quot;
}
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Mon, 01 May 2017 00:01:49 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115567#p115567</guid>
		</item>
	</channel>
</rss>
