<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Адрес файла в GUI]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16040&amp;type=atom" />
	<updated>2021-02-02T11:01:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16040</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Адрес файла в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145712#p145712" />
			<content type="html"><![CDATA[<p>Спасибо</p>]]></content>
			<author>
				<name><![CDATA[Morux2112]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41251</uri>
			</author>
			<updated>2021-02-02T11:01:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145712#p145712</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Адрес файла в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145701#p145701" />
			<content type="html"><![CDATA[<p>Запускать на windows 10 надо с теми же правами, откуда перетаскиваются файлы.<br /></p><div class="codebox"><pre><code>
 ; https://www.autohotkey.com/docs/commands/Gui.htm#GuiDropFiles
 
WS_EX_ACCEPTFILES := E0x10
Gui +%WS_EX_ACCEPTFILES% +AlwaysOnTop
Gui, Add, Edit, w333
Gui, Add, Edit, w333
Gui, Show, h111
Return 

LastDropFile:
	MsgBox, % 0x40020, , % LastDropFile, 1
	Return 

GuiDropFiles(GuiHwnd, FileArray, CtrlHwnd, X, Y) {
	File := FileArray[1]
	If !FileExist(File)
		Return
	Global LastDropFile := File
    Guicontrol, , %CtrlHwnd%, %File%
	SetTimer LastDropFile, -1000
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2021-02-02T08:15:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145701#p145701</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Адрес файла в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145699#p145699" />
			<content type="html"><![CDATA[<p>Еще раз здравствуйте. Как сделать так, чтобы при переносе файла на строку Edit в GUI, адрес нахождения этого файла копировался в Edit, как в unpacker (скрин ниже)? И после переноса данный адрес файла копировался в переменную?<br /><span class="postimg"><img src="https://i.imgur.com/w2DYCnn.png" alt="https://i.imgur.com/w2DYCnn.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[Morux2112]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41251</uri>
			</author>
			<updated>2021-02-01T21:27:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145699#p145699</id>
		</entry>
</feed>
