<?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=11368</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11368&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Свое контекстное меню».]]></description>
		<lastBuildDate>Wed, 16 Mar 2016 17:46:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101871#p101871</link>
			<description><![CDATA[<p><strong>yalanne</strong></p><p>Тогда получается, что в пути имя пользователя, а как прописать без имени с переменной, чтобы не было привязки к пользователю!</p>]]></description>
			<author><![CDATA[null@example.com (tregalka)]]></author>
			<pubDate>Wed, 16 Mar 2016 17:46:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101871#p101871</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101766#p101766</link>
			<description><![CDATA[<p>Список нужных папок задается в самом верху скрипта. Вот пример с &#039;C:\новая папка&#039;.<br /></p><div class="codebox"><pre><code>List_paths := [ [&quot;Мой компьютер&quot; , &quot;::{20d04fe0-3aea-1069-a2d8-08002b30309d}&quot;]
              , [&quot;Программы&quot;     , A_ProgramFiles ]
              , [&quot;Рабочий стол&quot;  , A_Desktop ]
              , [&quot;Мои документы&quot; , A_MyDocuments ] 
              , [&quot;любое имя&quot; , &quot;C:\новая папка&quot;] ]</code></pre></div><div class="quotebox"><blockquote><p>Когда пишешь просто полный путь вверху, все работает!</p></blockquote></div><p>Так и планировалось.</p>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Thu, 10 Mar 2016 16:07:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101766#p101766</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101747#p101747</link>
			<description><![CDATA[<p><strong>yalanne</strong><br />Не могу разобраться, как назначить свои папки в связке с переменной все время ошибки выдает <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /><br />Понял что нужно это прописывать где стоит комментарий:<br />; Тут назначается путь папки в переменную для запуска через run.<br />только как прописывать не понял).<br />Когда пишешь просто полный путь вверху, все работает!</p>]]></description>
			<author><![CDATA[null@example.com (tregalka)]]></author>
			<pubDate>Thu, 10 Mar 2016 04:49:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101747#p101747</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101746#p101746</link>
			<description><![CDATA[<p><strong>yalanne</strong><br />Получилось даже лучше, чем я хотел! <br />От Души! Братишка!</p>]]></description>
			<author><![CDATA[null@example.com (tregalka)]]></author>
			<pubDate>Thu, 10 Mar 2016 03:42:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101746#p101746</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101737#p101737</link>
			<description><![CDATA[<p>Окно активно пока зажата F1. Колесиком мыши можно листать верх,вниз. Если нажать его то откроется вкладка. Правая кнопка - это закрыть вкладку. Внутри окна левая кнопка мыши работает стандартно, а если нажать за пределами то это закроет окно и вызов папки будет отменен - это отмена. <br /></p><div class="codebox"><pre><code>; Список нужных папок.
List_paths := [ [&quot;Мой компьютер&quot; , &quot;::{20d04fe0-3aea-1069-a2d8-08002b30309d}&quot;]
              , [&quot;Программы&quot;     , A_ProgramFiles ]
              , [&quot;Рабочий стол&quot;  , A_Desktop ]
              , [&quot;Мои документы&quot; , A_MyDocuments ] ]


; Загружаем 2 иконки из shell32.
ImageListID := IL_Create(2)  ,  IL_Add(ImageListID, &quot;shell32.dll&quot;, 4),  IL_Add(ImageListID, &quot;shell32.dll&quot;, 127)


; Клавиша запуска окна(держать)
F1::
; Настройки окна
ExitGui := 0
Gui, Add, TreeView, ImageList%ImageListID% gTVLabel -HScroll 
Gui, +HWNDFastFoldersGui  +ToolWindow
TreeViewO := {parrent:[]}
;Создаем список из папок и их подпапок.
for i,k in List_paths
{
  TreeViewO.Insert(&quot;sub&quot; i ,[])
  TreeViewO.parrent.Insert( TV_Add(k.1) )
  Loop, Files,% k.2 &quot;/*.*&quot;,D
    TreeViewO[&quot;sub&quot; i ].Insert(TV_Add(A_LoopFileName,TreeViewO.parrent[i]))
  if TreeViewO[&quot;sub&quot; i ].MaxIndex()
    TV_Modify(TreeViewO.parrent[i],&quot;Icon2&quot;)
}

Gui show,AutoSize,FastFolder
; ждем отжатия кнопки.
KeyWait, % A_ThisHotkey
Gui,Destroy
ToolTip
if !ExitGui
Run % PathOpen
return

; на эту метку скрипт ссылается если в списке сменился элемент в фокусе.
; Тут назначается путь папки в переменную для запуска через run.
TVLabel:
TV_GetText(textItemSelectP, TV_GetParent( TV_GetSelection())), TV_GetText(textItemSelectS, TV_GetSelection())
IfEqual,textItemSelectP,,Try textItemSelectP := textItemSelectS,textItemSelectS := &quot;&quot;
for i,k in List_paths
  if k.1 = textItemSelectP
    PathOpen := k.2 (textItemSelectS ? &quot;\&quot; textItemSelectS : &quot;&quot;)
ToolTip % &quot;Открыть: &quot; PathOpen
return

; Если это условие истина значит окно наше активно, по этому меняем некоторые клавиши для управления этим окном.
#if WinActive(&quot;ahk_id&quot; FastFoldersGui)
Rbutton::send {left 2}
mbutton::right
WheelDown::down
WheelUp::up
~lbutton:: ; если кликнуть не на это окно то отмена, папка не будет вызвана.
MouseGetPos,,,id
if (id = FastFoldersGui)
  return
ExitGui := 1
Gui,Destroy
ToolTip
return
#if</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Wed, 09 Mar 2016 12:36:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101737#p101737</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101695#p101695</link>
			<description><![CDATA[<p><strong>yalanne</strong><br />Можно сделать так: <br />Я указал в скрипте папку, а при вызове окна - в нем отображались подпапки которые в ней лежат!</p>]]></description>
			<author><![CDATA[null@example.com (tregalka)]]></author>
			<pubDate>Mon, 07 Mar 2016 12:06:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101695#p101695</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101571#p101571</link>
			<description><![CDATA[<p><strong>yalanne</strong> От Души! Братишка!</p>]]></description>
			<author><![CDATA[null@example.com (tregalka)]]></author>
			<pubDate>Tue, 01 Mar 2016 15:07:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101571#p101571</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101569#p101569</link>
			<description><![CDATA[<div class="codebox"><pre><code>#HotkeyInterval 0
GUI, +HwndMyGui
GUI, Add, Button, g1, Мой компьютер
GUI, Add, Button, g2, Программы
GUI, Add, Button, g3, Рабочий стол
GUI, Add, Button, g4, Мои документы
Return

#if WinActive(&quot;ahk_id&quot; MyGui)
WheelDown::Send {Right}
WheelUp::Send {Left}
#if

F1:: GUI, Show
F1 up::
Send, {Space}
GUI, Hide
Return

1:
Run ::{20d04fe0-3aea-1069-a2d8-08002b30309d}
Return
2:
Run, %A_ProgramFiles%
Return
3:
Run, %A_Desktop%
Return
4:
Run, %A_MyDocuments%
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Tue, 01 Mar 2016 14:58:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101569#p101569</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101568#p101568</link>
			<description><![CDATA[<p><strong>ypppu</strong></p><p>Знаю что совершенству нет предела, но все же! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.<br />Можно сделать так, чтобы выбор папки был с помощью колеса мыши (← →) !?</p>]]></description>
			<author><![CDATA[null@example.com (tregalka)]]></author>
			<pubDate>Tue, 01 Mar 2016 14:41:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101568#p101568</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101564#p101564</link>
			<description><![CDATA[<p><strong>ypppu</strong></p><p>Спасибо Брат!!!</p>]]></description>
			<author><![CDATA[null@example.com (tregalka)]]></author>
			<pubDate>Tue, 01 Mar 2016 10:54:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101564#p101564</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101563#p101563</link>
			<description><![CDATA[<p>Можно заставить скрипт нажимать Space:<br /></p><div class="codebox"><pre><code>GUI, Add, Button, g1, Мой компьютер
GUI, Add, Button, g2, Программы
GUI, Add, Button, g3, Рабочий стол
GUI, Add, Button, g4, Мои документы
Return

F1:: GUI, Show
F1 up::
Send, {Space}
GUI, Hide
Return

1:
Run ::{20d04fe0-3aea-1069-a2d8-08002b30309d}
Return
2:
Run, %A_ProgramFiles%
Return
3:
Run, %A_Desktop%
Return
4:
Run, %A_MyDocuments%
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Tue, 01 Mar 2016 10:45:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101563#p101563</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101562#p101562</link>
			<description><![CDATA[<p><strong>ypppu</strong></p><p><img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> <br />При нажатии ←↑↓→ папка (выбранная) подсвечиваются, когда перестал нажимать, отпустил F1, и та папка которая была подсвечена открывается!</p>]]></description>
			<author><![CDATA[null@example.com (tregalka)]]></author>
			<pubDate>Tue, 01 Mar 2016 10:29:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101562#p101562</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101561#p101561</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Можно ли в AutoHotkey сделать так, чтобы при нажатии горячих клавиш появлялось свое контекстное меню</p></blockquote></div><p><a href="https://autohotkey.com/docs/commands/Menu.htm">https://autohotkey.com/docs/commands/Menu.htm</a></p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 01 Mar 2016 10:29:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101561#p101561</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101560#p101560</link>
			<description><![CDATA[<p>Как понимать &quot;выбор упал&quot;? Скрипт мысли не читает.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Tue, 01 Mar 2016 10:14:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101560#p101560</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=101507#p101507</link>
			<description><![CDATA[<p><strong>ypppu</strong></p><p>Ага! Все отлично работает! <br />Много замарочек, сделать так чтобы без enter или space, на какую папку выбор упал, та сразу и открылась!?<br />Чтобы после выбора F1 отпустить и она открылась!</p>]]></description>
			<author><![CDATA[null@example.com (tregalka)]]></author>
			<pubDate>Tue, 01 Mar 2016 09:50:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=101507#p101507</guid>
		</item>
	</channel>
</rss>
