<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Привязка фото к хосту]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16262&amp;type=atom" />
	<updated>2021-04-16T10:11:21Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=16262</id>
		<entry>
			<title type="html"><![CDATA[Re: Привязка фото к хосту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147366#p147366" />
			<content type="html"><![CDATA[<p>Вот так примерно:<br /></p><div class="codebox"><pre><code>Image := &quot;rabbit1.png&quot;
url := &quot;https://i.imgur.com/3CLg8NY.png&quot;
if !FileExist(&quot;rabbit1.png&quot;) {
   UrlDownloadToFile, % url, % Image
   if ErrorLevel {
      MsgBox, Не удалось загрузить файл
      ExitApp
   }
}
Color := &quot;FF0000&quot;
Gui,WinPicture: +AlwaysOnTop -Caption -ToolWindow +Disabled
Gui,WinPicture: Margin, 0, 0
Gui,WinPicture: Add, Picture,, % Image
Gui,WinPicture: Show,x0 y0 NoActivate, % Name
WinSet, TransColor, % Color, % Name
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-04-16T10:11:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147366#p147366</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Привязка фото к хосту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147365#p147365" />
			<content type="html"><![CDATA[<p>ну так я же и прошу поподробрее рассказать <br />Вот так выглядит код, как эту ЮРЛ реализовать?<br /></p><div class="codebox"><pre><code>
Image := &quot;rabbit1.png&quot;
Color := &quot;FF0000&quot;

Gui,WinPicture: +AlwaysOnTop -Caption -ToolWindow +Disabled
Gui,WinPicture: Margin, 0, 0
Gui,WinPicture: Add, Picture,, % Image
Gui,WinPicture: Show,x0 y0 NoActivate, % Name
WinSet, TransColor, % Color, % Name
Return</code></pre></div><p><strong>teadrinker</strong></p>]]></content>
			<author>
				<name><![CDATA[vlad040205]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41643</uri>
			</author>
			<updated>2021-04-16T08:06:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147365#p147365</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Привязка фото к хосту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147363#p147363" />
			<content type="html"><![CDATA[<p>Так а почему вариант с UrlDownloadToFile не устраивает? Он самый простой. Скрипт сначала проверяет, есть ли файл в папке, если нет, тогда скачивает.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-04-16T06:56:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147363#p147363</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Привязка фото к хосту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147362#p147362" />
			<content type="html"><![CDATA[<p>фото</p>]]></content>
			<author>
				<name><![CDATA[vlad040205]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41643</uri>
			</author>
			<updated>2021-04-16T06:36:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147362#p147362</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Привязка фото к хосту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147360#p147360" />
			<content type="html"><![CDATA[<p>Кого — его?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-04-16T05:15:51Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147360#p147360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Привязка фото к хосту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147359#p147359" />
			<content type="html"><![CDATA[<p>вот я хочу также только с скриптом<br />Или можно ли его как-то вшить в екзешник что бы его удалить нельзя было</p>]]></content>
			<author>
				<name><![CDATA[vlad040205]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41643</uri>
			</author>
			<updated>2021-04-16T05:11:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147359#p147359</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Привязка фото к хосту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147351#p147351" />
			<content type="html"><![CDATA[<p>В смысле, на сайте — имеете в виду, как на странице в браузере? Там все изображения предварительно скачиваются, и некоторые сохраняются на диск — кешируются.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-04-15T15:57:06Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147351#p147351</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Привязка фото к хосту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147350#p147350" />
			<content type="html"><![CDATA[<p>тут пожалуйста поподробнее, просто я предполагал, что все будет, как на сайте <strong>teadrinker</strong></p>]]></content>
			<author>
				<name><![CDATA[vlad040205]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41643</uri>
			</author>
			<updated>2021-04-15T14:57:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147350#p147350</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Привязка фото к хосту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147347#p147347" />
			<content type="html"><![CDATA[<p>Фото, чтобы отображаться, всё равно должно «скачаться». Просто не обязательно его в файл сохранять. Но в таком случае оно каждый раз должно будет скачиваться заново. Так что лучшее решение — это UrlDownloadToFile.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-04-15T12:30:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147347#p147347</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Привязка фото к хосту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147346#p147346" />
			<content type="html"><![CDATA[<p>Имеется скрипт, который выводит фото на экран, но при этом фото должно быть на компе.<br />Можно ли сделать так что бы люди не качали фото, а оно выводилось?<br />Я так понимаю что его нужно на хост закинуть и вставить ссылку на него, но как это реализовать?</p>]]></content>
			<author>
				<name><![CDATA[vlad040205]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41643</uri>
			</author>
			<updated>2021-04-15T11:03:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147346#p147346</id>
		</entry>
</feed>
