<?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=16046&amp;type=atom" />
	<updated>2021-02-03T17:36:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16046</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выбор адреса файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145808#p145808" />
			<content type="html"><![CDATA[<p>Добавьте такую метку:<br /></p><div class="codebox"><pre><code>Findfile:
   FileSelectFile, filePath
   GuiControl,, Edit1, % filePath
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-03T17:36:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145808#p145808</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выбор адреса файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145807#p145807" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, не поможешь с кодом? Не могу разобраться. Есть код, в котором при перекидывании файла на Edit путь данного файла отображался в Edit и выводился в переменную. Как сделать так же, но через FileSelectFile? Чтобы работало и то, и то.</p><div class="codebox"><pre><code>WS_EX_ACCEPTFILES := E0x10
Gui +%WS_EX_ACCEPTFILES% +AlwaysOnTop
Gui, Add, Text, y5, Путь файла с протоколом (перенести файл на строку):
Gui, Add, Edit, x9 y25 w333 +Center
Gui, Add, Button, x100 y50 w140 h25 gOK, &amp;Составить
Gui, Add, Button, x345 y24 w23 h23 gFindfile, &amp;...
Gui, Show, w375 h150, Составитель протоколов
Return 

GuiDropFiles(GuiHwnd, FileArray, CtrlHwnd, X, Y) {
	File := FileArray[1]
	If !FileExist(File)
		Return
	Global LastDropFile := File
    Guicontrol, , %CtrlHwnd%, %File%
	SetTimer LastDropFile, -1000
}

LastDropFile:
IniRead, DateSost, %LastDropFile%, Протокол, DateSost
IniRead, HourSost, %LastDropFile%, Протокол, HourSost
IniRead, MinSost, %LastDropFile%, Протокол, MinSost
IniRead, MestoSost, %LastDropFile%, Протокол, MestoSost
IniRead, TimeSost, %LastDropFile%, Протокол, TimeSost
IniRead, FI, %LastDropFile%, Протокол, FI
IniRead, CAR, %LastDropFile%, Протокол, CAR
IniRead, Nomer, %LastDropFile%, Протокол, Nomer
IniRead, CarHoz, %LastDropFile%, Протокол, CarHoz
IniRead, MestoFik, %LastDropFile%, Протокол, MestoFik
IniRead, Statia, %LastDropFile%, Протокол, Statia
Sleep, 1500
Return 

GuiClose:
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Morux2112]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41251</uri>
			</author>
			<updated>2021-02-03T17:26:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145807#p145807</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выбор адреса файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145795#p145795" />
			<content type="html"><![CDATA[<p>Отредактировал ответ.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-03T15:51:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145795#p145795</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выбор адреса файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145794#p145794" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, при нажатии на клавишу в GUI открывается такое окошко, там выбираешь файл, нажимаешь ОК и путь данного файла отображается в Edit.</p>]]></content>
			<author>
				<name><![CDATA[Morux2112]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41251</uri>
			</author>
			<updated>2021-02-03T15:50:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145794#p145794</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выбор адреса файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145793#p145793" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Morux2112 пишет:</cite><blockquote><p>Я как раз хочу узнать, как его сделать и взаимодействовать.</p></blockquote></div><p>Смотрите команду FileSelectFile.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-03T15:47:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145793#p145793</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выбор адреса файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145792#p145792" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, не знаю. Это окошко из Unpacker. Я как раз хочу узнать, как его сделать и взаимодействовать.</p>]]></content>
			<author>
				<name><![CDATA[Morux2112]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41251</uri>
			</author>
			<updated>2021-02-03T15:40:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145792#p145792</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выбор адреса файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145791#p145791" />
			<content type="html"><![CDATA[<p>А окошко это откуда берётся?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-03T15:29:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145791#p145791</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Выбор адреса файла.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145790#p145790" />
			<content type="html"><![CDATA[<p>В <a href="http://forum.script-coding.com/viewtopic.php?id=16040">прошлой теме</a> я спрашивал, как поместить адрес файла, перемещенный на Edit в GUI. А как определить адрес файла, выбранный через окошко? (скрин ниже).<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Скрин</div><div class="fancy_spoiler"><p><span class="postimg"><img src="https://i.imgur.com/glyWwjp.png" alt="https://i.imgur.com/glyWwjp.png" /></span></p></div></div>]]></content>
			<author>
				<name><![CDATA[Morux2112]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41251</uri>
			</author>
			<updated>2021-02-03T13:58:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145790#p145790</id>
		</entry>
</feed>
