<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK:Открываем Edit Script, двойным нажатием ПКМ]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=8499</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8499&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK:Открываем Edit Script, двойным нажатием ПКМ».]]></description>
		<lastBuildDate>Thu, 01 Aug 2013 20:48:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK:Открываем Edit Script, двойным нажатием ПКМ]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=74174#p74174</link>
			<description><![CDATA[<p>большое спасибо всё работает</p>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Thu, 01 Aug 2013 20:48:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=74174#p74174</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Открываем Edit Script, двойным нажатием ПКМ]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=73998#p73998</link>
			<description><![CDATA[<p>Спасибо,помогли.</p>]]></description>
			<author><![CDATA[null@example.com (pr9n)]]></author>
			<pubDate>Tue, 23 Jul 2013 00:41:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=73998#p73998</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Открываем Edit Script, двойным нажатием ПКМ]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=73991#p73991</link>
			<description><![CDATA[<p>Ну я же неговорю что это готовое решение. Я пнул в нужную сторону как попросили, дальше хозяин - барин. Идея с двойным нажатием ПКМ мне самому ненравится, но тут уж дело вкусов.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Mon, 22 Jul 2013 14:17:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=73991#p73991</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Открываем Edit Script, двойным нажатием ПКМ]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=73989#p73989</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong>, не надо так <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" />. Во-первых, контекстное меню мелькает, во-вторых, теряется функциональность правой кнопки — становится невозможным перемещать ею объекты. Должна же быть всё-таки какая-то культура программирования!</p><p>Задачу считаю не имеющей смысла. Неужели трудно кликнуть правой кнопкой и выбрать соответствующий пункт из контекстного меню?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 22 Jul 2013 13:52:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=73989#p73989</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Открываем Edit Script, двойным нажатием ПКМ]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=73988#p73988</link>
			<description><![CDATA[<div class="codebox"><pre><code>
#If WinActive(&quot;ahk_exe explorer.exe&quot;) 
RButton:: 
    If !Double
    {
        Double := 1
        SetTimer, Double, -200 
        SendInput % &quot;{&quot; A_ThisHotkey &quot;}&quot;
        return
    }
    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)\Notepad++\notepad++.exe %path% 
        ; Run, edit &quot;%path%&quot;
    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;  
}
</code></pre></div><p>Немного изменённые функции, взяты здесь - <a href="http://www.autohotkey.com/board/topic/60985-get-paths-of-selected-items-in-an-explorer-window/">Get paths of selected items in an explorer window</a></p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Mon, 22 Jul 2013 12:10:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=73988#p73988</guid>
		</item>
		<item>
			<title><![CDATA[AHK:Открываем Edit Script, двойным нажатием ПКМ]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=73969#p73969</link>
			<description><![CDATA[<p>Доброго времени суток. Помогите составить скрипт.Задумка такая, при двойном нажатии&nbsp; правой кнопкой мыши на файл ahk, он открывается в редакторе скрипта (Edit Script)</p>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Mon, 22 Jul 2013 01:20:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=73969#p73969</guid>
		</item>
	</channel>
</rss>
