<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: For_loop_Gui]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=16886</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16886&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: For_loop_Gui».]]></description>
		<lastBuildDate>Sun, 16 Jan 2022 11:17:23 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151673#p151673</link>
			<description><![CDATA[<p>Теоретически, называть ключи именами папок неправильно. У вас там при переборе применяется рекурсия в подпапки, так что ничего не мешает названиям папок повторяться.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 16 Jan 2022 11:17:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151673#p151673</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151671#p151671</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Да, спасибо!!</p><div class="codebox"><pre><code>
Person_Array := {}
for index, element in Array_folder 
{
    file_name := RegExReplace(element, &quot;.+\\(.+)\.*.{0}&quot;, &quot;$1&quot;)
    Person_Array[File_name] := element 

    Gui, Add, Button, gGetName x+100 y10, % file_name
}
Gui, Show, , ***
return  
       
GetName:
GuiControlGet, var,, % A_GuiControl
gui,destroy

msgbox, % Person_Array[var] &quot;_&quot; var

</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Sun, 16 Jan 2022 10:14:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151671#p151671</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151670#p151670</link>
			<description><![CDATA[<p>Наверно, это имели в виду:<br /></p><div class="codebox"><pre><code>Folder := A_Desktop &quot;\Test\&quot; TimeString 

Array_folder := [] 
Loop, Files, % Folder &quot;\*&quot;, D
{
   if A_LoopFileAttrib not contains H
      Array_folder.Push(A_LoopFileFullPath)
}

Gui, +ToolWindow  +AlwaysOnTop 
Gui, Font, s15 italic

arr := []
for index, element in Array_folder {
   Gui, Add, Button, gGetName hwndhButton%A_Index%, % RegExReplace(element, &quot;.+\\(.+)\.*.{0}&quot;, &quot;$1&quot;)
   arr[hButton%A_Index%] := element
}

Gui, Show, , ***
return  
    
GetName(hwnd) {
   global arr
   Gui, %A_Gui%:+OwnDialogs
   MsgBox, % arr[hwnd]
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 16 Jan 2022 09:48:49 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151670#p151670</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151667#p151667</link>
			<description><![CDATA[<p>Я не соображу, какого именно поведения вы хотите добиться.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 15 Jan 2022 20:40:29 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151667#p151667</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151666#p151666</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Никак не соображу, как получить A_LoopFileFullPath нажатой кнопки.</p>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Sat, 15 Jan 2022 19:55:21 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151666#p151666</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151662#p151662</link>
			<description><![CDATA[<p>Так из массива и узнайте.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 15 Jan 2022 15:02:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151662#p151662</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151661#p151661</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />На данный момкент в скрипте - как слева на скрине, но так как первоначальная папка содержит подкаталоги и все эти папки отображаются в гуи, то хотел бы узнать их полный путь для дальнейших условий.</p>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Sat, 15 Jan 2022 14:57:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151661#p151661</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151660#p151660</link>
			<description><![CDATA[<p>А как вы хотели?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 15 Jan 2022 14:54:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151660#p151660</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151659#p151659</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Полный путь в Gui - некрасиво)</p>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Sat, 15 Jan 2022 14:50:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151659#p151659</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151658#p151658</link>
			<description><![CDATA[<p>В смысле, получилось?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 15 Jan 2022 14:41:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151658#p151658</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151657#p151657</link>
			<description><![CDATA[<p><strong>teadrinker</strong></p>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Sat, 15 Jan 2022 14:31:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151657#p151657</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151656#p151656</link>
			<description><![CDATA[<p>Убрать RegEx?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 15 Jan 2022 14:28:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151656#p151656</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151655#p151655</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Да, в массиве, а в Гуи - название конечной папки. Как получить полный путь, помимо нажатой кнопки (имя конечной папки)</p>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Sat, 15 Jan 2022 13:27:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151655#p151655</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151654#p151654</link>
			<description><![CDATA[<p>Непонятно, в чём сложность. Они же у вас в массиве, или я не понял вопроса?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 15 Jan 2022 13:13:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151654#p151654</guid>
		</item>
		<item>
			<title><![CDATA[AHK: For_loop_Gui]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151653#p151653</link>
			<description><![CDATA[<p>Добрый день! Подскажите, пож-та, как получить изначальный путь (A_LoopFileFullPath)</p><div class="codebox"><pre><code>
Folder := % A_Desktop &quot;\Test\&quot; TimeString 

Array_folder := [] 
Loop, Files, % Folder &quot;\*&quot;, DR
{
   if A_LoopFileAttrib not contains H
           Array_folder.Push(A_LoopFileFullPath)
}

Gui, +ToolWindow  +AlwaysOnTop 
Gui, Font, s15 italic

for index, element in Array_folder 
  Gui, Add, Button, gGetName, % RegExReplace(element, &quot;.+\\(.+)\.*.{0}&quot;, &quot;$1&quot;)

Gui, Show, , ***
return  
    
GetName:
GuiControlGet, var,, % A_GuiControl
Gui,destroy
MsgBox % var 
return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Sat, 15 Jan 2022 11:07:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151653#p151653</guid>
		</item>
	</channel>
</rss>
