<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Picture элемент управления!]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12164</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12164&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Picture элемент управления!».]]></description>
		<lastBuildDate>Tue, 22 Nov 2016 21:08:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Picture элемент управления!]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=109293#p109293</link>
			<description><![CDATA[<p>А, да. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> А Gui, Submit почему-то не работает, это меня с толку и сбило.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 22 Nov 2016 21:08:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=109293#p109293</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Picture элемент управления!]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=109292#p109292</link>
			<description><![CDATA[<p>Можно проще:<br /></p><div class="codebox"><pre><code>Gui, Add, Picture,vVar x0 y0 w10 h10 , %A_WorkingDir%\Picture.png
Gui, Show, w10 h10, Pro100GUI
return

f11::
GuicontrolGet, Var
MsgBox, % Var
Return</code></pre></div><p><a href="https://autohotkey.com/docs/commands/GuiControlGet.htm">https://autohotkey.com/docs/commands/GuiControlGet.htm</a><br /></p><div class="quotebox"><blockquote><p>Sub-commands</p><p>(Blank): Leave Sub-command blank to retrieve the control&#039;s contents. All control types are self-explanatory except the following:</p><p>Picture: Retrieves the picture&#039;s file name as it was originally specified when the control was created. This name does not change even if a new picture file name is specified.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 22 Nov 2016 20:59:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=109292#p109292</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Picture элемент управления!]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=109289#p109289</link>
			<description><![CDATA[<p>А хотя нет, вру, можно:<br /></p><div class="codebox"><pre><code>Gui, Add, Picture,vVar x0 y0 w10 h10 hwndhPic, %A_WorkingDir%\Picture.png
Gui, Show, w10 h10, Pro100GUI
return


sc1: ;При нажатии Esc на экран должен выводиться путь к изображению
VarSetCapacity(buff, 256 * (A_IsUnicode ? 2 : 1), 0)
SendMessage, WM_GETTEXT := 0xD, 256, &amp;buff,, ahk_id %hPic%
MsgBox, % StrGet(&amp;buff)
return


GuiClose:
ExitApp</code></pre></div><p>Ну, или так:<br /></p><div class="codebox"><pre><code>Gui, Add, Picture,vVar x0 y0 w10 h10 hwndhPic, %A_WorkingDir%\Picture.png
Gui, Show, w10 h10, Pro100GUI
return


sc1: ;При нажатии Esc на экран должен выводиться путь к изображению
ControlGetText, text,, ahk_id %hPic%
MsgBox, % text
return


GuiClose:
ExitApp</code></pre></div><p><strong>minesemka</strong>, в конце предложения лучше ставить точку, а не восклицательный знак, а заголовке вообще ничего не нужно.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 22 Nov 2016 20:06:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=109289#p109289</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Picture элемент управления!]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=109288#p109288</link>
			<description><![CDATA[<p>Получить путь из картинки нельзя, но сохранить её в новый файл можно, путь выбрать любой.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 22 Nov 2016 19:43:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=109288#p109288</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Picture элемент управления!]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=109282#p109282</link>
			<description><![CDATA[<p>Вероятно, никак. После отображения файл может быть удалён. Файл может отсутствовать изначально:<br /></p><div class="quotebox"><blockquote><p>[v1.1.23+]: A bitmap or icon handle can be used instead of a filename. For example, HBITMAP:%handle%.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (Мальчик-гей)]]></author>
			<pubDate>Tue, 22 Nov 2016 17:53:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=109282#p109282</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Picture элемент управления!]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=109274#p109274</link>
			<description><![CDATA[<p>Здравствуйте, меня заинтересовал 1 вопрос!<br />Как узнать путь к картинки?</p><p>Вот код, чтобы вы понимали чего я хочу добиться!<br /></p><div class="codebox"><pre><code>Gui, Add, Picture,vVar x0 y0 w10 h10 , %A_WorkingDir%\Picture.png
Gui, Show, w10 h10, Pro100GUI
return


sc1: ;При нажатии Esc на экран должен выводиться путь к изображению
gui, submit, nohide
MsgBox, %Var% ;Переменная должна содержать путь к файлу (%A_WorkingDir%\Picture.png)
return


GuiClose:
ExitApp</code></pre></div><p>Если можно, дайте ответ кодом на основе моего!<br />Заранее спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (minesemka)]]></author>
			<pubDate>Tue, 22 Nov 2016 08:05:49 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=109274#p109274</guid>
		</item>
	</channel>
</rss>
