<?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=11368&amp;type=atom" />
	<updated>2016-03-16T17:46:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11368</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101871#p101871" />
			<content type="html"><![CDATA[<p><strong>yalanne</strong></p><p>Тогда получается, что в пути имя пользователя, а как прописать без имени с переменной, чтобы не было привязки к пользователю!</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2016-03-16T17:46:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101871#p101871</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101766#p101766" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-03-10T16:07:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101766#p101766</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101747#p101747" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2016-03-10T04:49:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101747#p101747</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101746#p101746" />
			<content type="html"><![CDATA[<p><strong>yalanne</strong><br />Получилось даже лучше, чем я хотел! <br />От Души! Братишка!</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2016-03-10T03:42:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101746#p101746</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101737#p101737" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-03-09T12:36:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101737#p101737</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101695#p101695" />
			<content type="html"><![CDATA[<p><strong>yalanne</strong><br />Можно сделать так: <br />Я указал в скрипте папку, а при вызове окна - в нем отображались подпапки которые в ней лежат!</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2016-03-07T12:06:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101695#p101695</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101571#p101571" />
			<content type="html"><![CDATA[<p><strong>yalanne</strong> От Души! Братишка!</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2016-03-01T15:07:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101571#p101571</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101569#p101569" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-03-01T14:58:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101569#p101569</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101568#p101568" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong></p><p>Знаю что совершенству нет предела, но все же! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.<br />Можно сделать так, чтобы выбор папки был с помощью колеса мыши (← →) !?</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2016-03-01T14:41:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101568#p101568</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101564#p101564" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong></p><p>Спасибо Брат!!!</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2016-03-01T10:54:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101564#p101564</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101563#p101563" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2016-03-01T10:45:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101563#p101563</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101562#p101562" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong></p><p><img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> <br />При нажатии ←↑↓→ папка (выбранная) подсвечиваются, когда перестал нажимать, отпустил F1, и та папка которая была подсвечена открывается!</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2016-03-01T10:29:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101562#p101562</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101561#p101561" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-03-01T10:29:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101561#p101561</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101560#p101560" />
			<content type="html"><![CDATA[<p>Как понимать &quot;выбор упал&quot;? Скрипт мысли не читает.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2016-03-01T10:14:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101560#p101560</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Свое контекстное меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101507#p101507" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong></p><p>Ага! Все отлично работает! <br />Много замарочек, сделать так чтобы без enter или space, на какую папку выбор упал, та сразу и открылась!?<br />Чтобы после выбора F1 отпустить и она открылась!</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2016-03-01T09:50:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101507#p101507</id>
		</entry>
</feed>
