<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Загрузить Picture в код программы]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12187&amp;type=atom" />
	<updated>2016-11-30T06:41:28Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12187</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109502#p109502" />
			<content type="html"><![CDATA[<p>Спасибо, посмотрел код, попробовал вставить у себя, но что то не отработало.</p><p>Я верно понимаю что я могу вставить код ваш, вставить код своей картинки, и потом вызвать ей вот так.<br /></p><div class="codebox"><pre><code>
Bitmap_SetImage(hCtrl, hBitmap) {
	WinSet, Style, +0x0E, ahk_id %hCtrl%
	SendMessage, 0x172, 0x00, %hBitmap%, , ahk_id %hCtrl%
	Return ErrorLevel
}
CreateBitMap(B64) {
	If !DllCall(&quot;Crypt32.dll\CryptStringToBinary&quot;, &quot;Ptr&quot;, &amp;B64, &quot;UInt&quot;, 0, &quot;UInt&quot;, 0x01, &quot;Ptr&quot;, 0, &quot;UIntP&quot;, DecLen, &quot;Ptr&quot;, 0, &quot;Ptr&quot;, 0)
			Return False
	VarSetCapacity(Dec, DecLen, 0)
	If !DllCall(&quot;Crypt32.dll\CryptStringToBinary&quot;, &quot;Ptr&quot;, &amp;B64, &quot;UInt&quot;, 0, &quot;UInt&quot;, 0x01, &quot;Ptr&quot;, &amp;Dec, &quot;UIntP&quot;, DecLen, &quot;Ptr&quot;, 0, &quot;Ptr&quot;, 0)
			Return False
	hData := DllCall(&quot;Kernel32.dll\GlobalAlloc&quot;, &quot;UInt&quot;, 2, &quot;UPtr&quot;, DecLen, &quot;UPtr&quot;)
	pData := DllCall(&quot;Kernel32.dll\GlobalLock&quot;, &quot;Ptr&quot;, hData, &quot;UPtr&quot;)
	DllCall(&quot;Kernel32.dll\RtlMoveMemory&quot;, &quot;Ptr&quot;, pData, &quot;Ptr&quot;, &amp;Dec, &quot;UPtr&quot;, DecLen)
	DllCall(&quot;Kernel32.dll\GlobalUnlock&quot;, &quot;Ptr&quot;, hData)
	DllCall(&quot;Ole32.dll\CreateStreamOnHGlobal&quot;, &quot;Ptr&quot;, hData, &quot;Int&quot;, True, &quot;PtrP&quot;, pStream)
	hGdip := DllCall(&quot;Kernel32.dll\LoadLibrary&quot;, &quot;Str&quot;, &quot;Gdiplus.dll&quot;, &quot;UPtr&quot;)
	VarSetCapacity(SI, 16, 0), NumPut(1, SI, 0, &quot;UChar&quot;)
	DllCall(&quot;Gdiplus.dll\GdiplusStartup&quot;, &quot;PtrP&quot;, pToken, &quot;Ptr&quot;, &amp;SI, &quot;Ptr&quot;, 0)
	DllCall(&quot;Gdiplus.dll\GdipCreateBitmapFromStream&quot;,  &quot;Ptr&quot;, pStream, &quot;PtrP&quot;, pBitmap)
	DllCall(&quot;Gdiplus.dll\GdipCreateHBITMAPFromBitmap&quot;, &quot;Ptr&quot;, pBitmap, &quot;PtrP&quot;, hBitmap, &quot;UInt&quot;, 0)
	DllCall(&quot;Gdiplus.dll\GdipDisposeImage&quot;, &quot;Ptr&quot;, pBitmap)
	DllCall(&quot;Gdiplus.dll\GdiplusShutdown&quot;, &quot;Ptr&quot;, pToken)
	DllCall(&quot;Kernel32.dll\FreeLibrary&quot;, &quot;Ptr&quot;, hGdip)
	DllCall(NumGet(NumGet(pStream + 0, 0, &quot;UPtr&quot;) + (A_PtrSize * 2), 0, &quot;UPtr&quot;), &quot;Ptr&quot;, pStream)
	Return hBitmap
}

Create_VTlogo_png() {
	Static hBitmap := 0
	If hBitmap
		Return hBitmap
	VarSetCapacity(B64, 2020 &lt;&lt; !!A_IsUnicode)
	B64 := &quot;iVBORw0KGgoAAAANSUhEUgAAARgAAAAsCAMAAACJzFexAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGN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/z8/P39/f7+/v///wPJ7BoAAAABdFJOUwBA5thmAAACVklEQVR42uxaUZaDIAy0PC6QE+T+x8oJ5gr7sW0XJUBIwedW8tNWBc0wMwTstq1YsWJAPDZKfuH9jZIjtDtTC35+yoxHpeMzTmn1uj4qqKRQEW7KmFhD5YkM6K7AFFG5MWfiCxVqqe6WUrpn7tUIvw6DhUTJfIeQRr4PmA1LUIqUtiWovPK1TUFI6tqjYv6Op5Uvv79yfrJUKbOuT9IfSHtm1HNB4ahS+dKuXK4pSri6Dig5DFsHiT0jS/lveDqBIiXad95WFPc477m4bHk+vo6C1tVIs5mKSwmCAdNI0G+hQyPDBnroensMMlSYrg9eUy9sWKbVMFKy/uoGQrauIRha1RaFcYdZq7liv+xJdAzxKJtVYKAKbOwKB82SjYx8gaKXtFwd7ggDME1ALlnz40OXgQmYpw2TkfnDrFfchIFh/D9bEljwltlU4ovQMFo1d1pwJ+AwTTLdMgvqjag3C5mlJe5mUHNcbYVx8CI6nvJyzo2Mgx56AZdJhDkLGasYgrvtBJcUOTHzTvNtb+Ql1e/4F4+iYc9ir+RdVkRtxsDraBcp65rnyZpQMFER2qjy1DfV9o7nbFXHtpD+104wDRJcaEGg7MyIr+iVbtdm21KAHEqjPsYcG8whC4/gBNT9EvvWFXUAg2spqLXJnu6lkbVgN79YjOpaABm8KMzYPdYr7OKRFHNKj5So7n3FGjNc0CfHnilJPhORgkzh4fA5ZULDa0ldcnknaEe7tBqGDYJ9DvBNsnF3PWZXCNLrvNIa7ow0aF0BU16P7SvC98fFFStWTI+fAQB8TawXpcjcNwAAAABJRU5ErkJggg==&quot;
	hBitmap := CreateBitMap(B64)
	Return hBitmap
}





Gui, Add, Picture, x115 y60 gGos1, hBitmap
</code></pre></div><p>Но так не прокатило. <br />Цель используя ваш скрипт, получить переменную, ну а дальше её вставить куда нужно.</p>]]></content>
			<author>
				<name><![CDATA[Autosql]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34259</uri>
			</author>
			<updated>2016-11-30T06:41:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109502#p109502</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109497#p109497" />
			<content type="html"><![CDATA[<p><a href="https://gist.github.com/AHK-just-me/5559658#file-image2include-ahk">https://gist.github.com/AHK-just-me/555 … nclude-ahk</a><br />Запускаете, указываете картинку → получаете файл с кодом → копируете в свой скрипт.<br />Как вставить такую картинку показано в Sample.ahk.</p><p>Пример из моего скрипта <a href="http://forum.script-coding.com/viewtopic.php?id=11986">VirusTotal Hash Checker</a>:<br /><span style="color: grey">(картинка 1,5 Кб записана в переменной (1 строка ;-) в третьей ф-ии,<br />ф-ии CreateBitMap(B64) и Bitmap_SetImage(hCtrl, hBitmap) (25 строк - плата за использование метода) я вынес для сокращения кода, т.к. у меня несколько картинок)</span><br /></p><div class="codebox"><pre><code>Gui, installGui: Add, Text, w280 h44 HwndVTlogo_png ; высоту и ширину картинки придется указать вручную
HBITMAP := Create_VTlogo_png()
Bitmap_SetImage(VTlogo_png, HBITMAP)
Gui, installGui: Show
Return

Bitmap_SetImage(hCtrl, hBitmap) {
	WinSet, Style, +0x0E, ahk_id %hCtrl%
	SendMessage, 0x172, 0x00, %hBitmap%, , ahk_id %hCtrl%
	Return ErrorLevel
}
CreateBitMap(B64) {
	If !DllCall(&quot;Crypt32.dll\CryptStringToBinary&quot;, &quot;Ptr&quot;, &amp;B64, &quot;UInt&quot;, 0, &quot;UInt&quot;, 0x01, &quot;Ptr&quot;, 0, &quot;UIntP&quot;, DecLen, &quot;Ptr&quot;, 0, &quot;Ptr&quot;, 0)
			Return False
	VarSetCapacity(Dec, DecLen, 0)
	If !DllCall(&quot;Crypt32.dll\CryptStringToBinary&quot;, &quot;Ptr&quot;, &amp;B64, &quot;UInt&quot;, 0, &quot;UInt&quot;, 0x01, &quot;Ptr&quot;, &amp;Dec, &quot;UIntP&quot;, DecLen, &quot;Ptr&quot;, 0, &quot;Ptr&quot;, 0)
			Return False
	hData := DllCall(&quot;Kernel32.dll\GlobalAlloc&quot;, &quot;UInt&quot;, 2, &quot;UPtr&quot;, DecLen, &quot;UPtr&quot;)
	pData := DllCall(&quot;Kernel32.dll\GlobalLock&quot;, &quot;Ptr&quot;, hData, &quot;UPtr&quot;)
	DllCall(&quot;Kernel32.dll\RtlMoveMemory&quot;, &quot;Ptr&quot;, pData, &quot;Ptr&quot;, &amp;Dec, &quot;UPtr&quot;, DecLen)
	DllCall(&quot;Kernel32.dll\GlobalUnlock&quot;, &quot;Ptr&quot;, hData)
	DllCall(&quot;Ole32.dll\CreateStreamOnHGlobal&quot;, &quot;Ptr&quot;, hData, &quot;Int&quot;, True, &quot;PtrP&quot;, pStream)
	hGdip := DllCall(&quot;Kernel32.dll\LoadLibrary&quot;, &quot;Str&quot;, &quot;Gdiplus.dll&quot;, &quot;UPtr&quot;)
	VarSetCapacity(SI, 16, 0), NumPut(1, SI, 0, &quot;UChar&quot;)
	DllCall(&quot;Gdiplus.dll\GdiplusStartup&quot;, &quot;PtrP&quot;, pToken, &quot;Ptr&quot;, &amp;SI, &quot;Ptr&quot;, 0)
	DllCall(&quot;Gdiplus.dll\GdipCreateBitmapFromStream&quot;,  &quot;Ptr&quot;, pStream, &quot;PtrP&quot;, pBitmap)
	DllCall(&quot;Gdiplus.dll\GdipCreateHBITMAPFromBitmap&quot;, &quot;Ptr&quot;, pBitmap, &quot;PtrP&quot;, hBitmap, &quot;UInt&quot;, 0)
	DllCall(&quot;Gdiplus.dll\GdipDisposeImage&quot;, &quot;Ptr&quot;, pBitmap)
	DllCall(&quot;Gdiplus.dll\GdiplusShutdown&quot;, &quot;Ptr&quot;, pToken)
	DllCall(&quot;Kernel32.dll\FreeLibrary&quot;, &quot;Ptr&quot;, hGdip)
	DllCall(NumGet(NumGet(pStream + 0, 0, &quot;UPtr&quot;) + (A_PtrSize * 2), 0, &quot;UPtr&quot;), &quot;Ptr&quot;, pStream)
	Return hBitmap
}

Create_VTlogo_png() {
	Static hBitmap := 0
	If hBitmap
		Return hBitmap
	VarSetCapacity(B64, 2020 &lt;&lt; !!A_IsUnicode)
	B64 := &quot;iVBORw0KGgoAAAANSUhEUgAAARgAAAAsCAMAAACJzFexAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAMAUExURf///8HCxMXGyPPz88nKzNrb3Orr69LS1OLi44e63R5+wKXL5i2GxHiy2UuYzcPc7vD2+w91vDyPyeHu91qg0dLl8mmp1d7e37TU6u7v75bC4vf39+bn5/v7+87O0L2+wNbW2CEhISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdHR0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpaWltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1tbW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CAgIGBgYKCgoODg4SEhIWFhYaGhoeHh4iIiImJiYqKiouLi4yMjI2NjY6Ojo+Pj5CQkJGRkZKSkpOTk5SUlJWVlZaWlpeXl5iYmJmZmZqampubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq6ysrK2tra6urq+vr7CwsLGxsbKysrOzs7S0tLW1tba2tre3t7i4uLm5ubq6uru7u7y8vL29vb6+vr+/v8DAwMHBwcLCwsPDw8TExMXFxcbGxsfHx8jIyMnJycrKysvLy8zM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CreateBitMap(B64)
	Return hBitmap
}</code></pre></div><p>Каждой картинка записывается в отдельной функции.<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Казалось бы, зачем записывать Base64 внутри функций?</div><div class="fancy_spoiler"><p>Дело в том, что файлы могут весить сотни килобайт, и если разместить переменные такого размера в глобальной видимости скрипта, AutoHotkey просто &quot;не переварит&quot; их.<br />Функции же обладают тем достоинством, что при выходе из них память локальных переменных освобождается.</p></div></div><p><a href="https://autohotkey.com/board/topic/93292-image2include-include-images-in-your-scripts/">Обсуждение Image2Include на autohotkey.com</a></p><p>Offtop:<br /><strong>Autosql</strong>, <a href="http://forum.script-coding.com/viewtopic.php?id=11986">там же</a> можете глянуть, как сделать, чтобы при наведении на картинку курсор менялся на руку и появлялась всплывающая подсказка (tooltip).</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2016-11-29T17:11:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109497#p109497</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109496#p109496" />
			<content type="html"><![CDATA[<p><strong>Autosql</strong><br />Так не будет качать постоянно, если фаил уже есть.<br /></p><div class="codebox"><pre><code>IfNotExist calc.gif
URLDownloadToFile, https://host.com/ySGexZCfCKV9ATka5Wl.gif , calc.gif</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Sgy-x2]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32753</uri>
			</author>
			<updated>2016-11-29T16:19:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109496#p109496</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109492#p109492" />
			<content type="html"><![CDATA[<p><strong>red2881</strong>, там код с промежуточным сохранение в файл, у меня картинка прямо из строки.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-11-29T13:24:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109492#p109492</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109491#p109491" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?pid=76445#p76445">http://forum.script-coding.com/viewtopi … 445#p76445</a></p>]]></content>
			<author>
				<name><![CDATA[red2881]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30934</uri>
			</author>
			<updated>2016-11-29T13:20:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109491#p109491</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109490#p109490" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Autosql пишет:</cite><blockquote><p>Запустил пример там коду на 200 строк. Это весь этот код нужно переделывать под себя ? или там только минимальную часть переносить в свой код ?</p></blockquote></div><p>Вам нужен пример CreateImageFromBASE64.ahk. Собственно кода там 70 строк включая создание окна для демонстрации. Всё остальное — это строка с картинкой. Если у вас картинка 40х40, то места займёт существенно меньше.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-11-29T13:11:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109490#p109490</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109488#p109488" />
			<content type="html"><![CDATA[<p>Код как бы мой. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> В скрипт его не нужно писать, это кодировщик с интерфейсом. В скрипте нужно только раскодировать строку.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-11-29T12:55:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109488#p109488</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109487#p109487" />
			<content type="html"><![CDATA[<p>Используй #Include код отдельно, картинки отдельно.</p>]]></content>
			<author>
				<name><![CDATA[red2881]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30934</uri>
			</author>
			<updated>2016-11-29T12:55:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109487#p109487</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109486#p109486" />
			<content type="html"><![CDATA[<p><strong>red2881</strong> Это да, я нашел, но слишкооооом дофига кода, для 1 картинки просто )) а если их будет 10, то код будет огромным.</p>]]></content>
			<author>
				<name><![CDATA[Autosql]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34259</uri>
			</author>
			<updated>2016-11-29T12:50:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109486#p109486</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109485#p109485" />
			<content type="html"><![CDATA[<p><strong>Sgy-x2</strong> Воспользовался вашим методом. Но тут возникает вопрос. При запуске скрипта, он скачивает файлы и помещает их рядом с запускаемым файлом. <br />При запуске 2 раз, он так же будет скачивать картинки ? Если да, то наверняка есть проверка, что если картинка с таким названием есть то не качать её ?</p>]]></content>
			<author>
				<name><![CDATA[Autosql]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34259</uri>
			</author>
			<updated>2016-11-29T12:49:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109485#p109485</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109484#p109484" />
			<content type="html"><![CDATA[<p><a href="http://content.screencast.com/users/teadrinker/folders/Files/media/dab2611a-f491-4a81-8dec-8b2e9b8cfbaf/GetBase64StringFromFile.ahk?downloadOnly=true/">GetBase64StringFromFile.ahk</a></p>]]></content>
			<author>
				<name><![CDATA[red2881]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30934</uri>
			</author>
			<updated>2016-11-29T12:48:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109484#p109484</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109483#p109483" />
			<content type="html"><![CDATA[<p><strong>Sgy-x2</strong> Ваш метод хорош, но есть минус, если нет инета на компе.</p><p><strong>teadrinker</strong> Ваш метод верный, но что то очень сложный.<br />Запустил пример там коду на 200 строк. Это весь этот код нужно переделывать под себя ? или там только минимальную часть переносить в свой код ?</p>]]></content>
			<author>
				<name><![CDATA[Autosql]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34259</uri>
			</author>
			<updated>2016-11-29T12:35:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109483#p109483</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109482#p109482" />
			<content type="html"><![CDATA[<p>Можно, для этого нужно двоичные данные файла перекодировать в текст и поместить в скрипт.<br /><a href="https://github.com/jollycoder/AutoHotkey/blob/%D0%9A%D0%BE%D0%B4%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5-%D1%84%D0%B0%D0%B9%D0%BB%D0%BE%D0%B2-%D0%B2-Base64/GetBase64StringFromFile.ahk">Вот</a> скрипт-кодировщик, примеры работы с кодом встроены в скрипт.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-11-29T10:11:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109482#p109482</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109480#p109480" />
			<content type="html"><![CDATA[<p>Можно залить картинку на хост с низменной ссылкой и подгружать её.<br /></p><div class="codebox"><pre><code>URLDownloadToFile, https://host.com/ySGexZCfCKV9ATka5Wl.gif , calc.gif</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Sgy-x2]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32753</uri>
			</author>
			<updated>2016-11-29T09:50:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109480#p109480</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Загрузить Picture в код программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109479#p109479" />
			<content type="html"><![CDATA[<p>Можно и уже есть полно рабочих решений, которые гуглятся по слову &#039;base64&#039;.</p>]]></content>
			<author>
				<name><![CDATA[ШКОЛЯРРРРРРЪ]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34285</uri>
			</author>
			<updated>2016-11-29T09:50:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109479#p109479</id>
		</entry>
</feed>
