<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12954</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12954&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Ошибка при загрузке картинки в Gui через fileinstall».]]></description>
		<lastBuildDate>Mon, 28 Aug 2017 14:22:09 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=118859#p118859</link>
			<description><![CDATA[<p>А разве без указания пути к файлу путь не считается относительно A_WorkingDir либо если оно не указано то относительно местоположению скрипта? Разве что картинка не была рядом со скриптом, ну либо юникодовский ахк <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.</p>]]></description>
			<author><![CDATA[null@example.com (belyankin12)]]></author>
			<pubDate>Mon, 28 Aug 2017 14:22:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=118859#p118859</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=118853#p118853</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Ох. Спасибо большое). Я даже и не заметил.</p>]]></description>
			<author><![CDATA[null@example.com (aktor311)]]></author>
			<pubDate>Mon, 28 Aug 2017 13:11:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=118853#p118853</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=118852#p118852</link>
			<description><![CDATA[<p>Первый параметр FileInstall — это где картинка находится изначально, а у вас что?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 28 Aug 2017 13:07:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=118852#p118852</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=118851#p118851</link>
			<description><![CDATA[<p><strong>stealzy</strong><br />Путь менял и так же менял место все равно выдает ошибку<br />error adding FileInstall file:<br />&quot;Имя файлa&quot;<br />Вот полный код<br /></p><div class="codebox"><pre><code>PathIni = IniFile.ini
IniRead, MyGuiHotkey, % PathIni, Section, MyGuiHotkey, % A_Space
Hotkey, % PrSetSuspend := MyGuiHotkey, Suspend, UseErrorLevel
FileInstall, a79465b31e5b.jpg, %A_Temp%\a79465b31e5b.jpg
Gui, Add, Picture, x-278 y-50 w1020 h720 , %A_Temp%\a79465b31e5b.jpg
Gui, Font, S16 Cblue, Verdana
Gui, Add, Text, x142 y10 w190 h30 BackgroundTrans, Введите клавишу
Gui, Add, Hotkey, x62 y40 w300 h30 gSetSuspend vMyGuiHotkey, %MyGuiHotkey%
Gui, Add, Button, x162 y80 w120 h30, ОК
; Generated using SmartGUI Creator for SciTE
Gui, Show, w479 h379, Зажим
Return

SetSuspend:
	Hotkey, % PrSetSuspend, Off, UseErrorLevel
	GuiControlGet, Hotkey, %A_Gui%:, %A_GuiControl% 
	Hotkey := FormatHotkey(Hotkey)  
	Hotkey, % PrSetSuspend := Hotkey, Suspend 
	IniWrite, % Hotkey, % PathIni, Section, % A_GuiControl
	Return

Suspend:
	Suspend
	Return
	
FormatHotkey(Hotkey) {
	RegExMatch(Hotkey, &quot;S)^([\^\+!]*)(.*?)$&quot;, K)
	If (StrLen(K2) = 1)
		Return K1 . Format(&quot;sc{:X}&quot;, GetKeySC(K2))
	Return Hotkey
} 
 </code></pre></div><p>Сама картинка находится в C:\Users\User\AppData\Local\Temp\&quot;Картинка&quot;</p>]]></description>
			<author><![CDATA[null@example.com (aktor311)]]></author>
			<pubDate>Mon, 28 Aug 2017 12:54:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=118851#p118851</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=118850#p118850</link>
			<description><![CDATA[<p>error adding FileInstall file:<br /> &quot;Имя файлa&quot;</p>]]></description>
			<author><![CDATA[null@example.com (aktor311)]]></author>
			<pubDate>Mon, 28 Aug 2017 12:38:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=118850#p118850</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=118849#p118849</link>
			<description><![CDATA[<p>Читать описание FileInstall в справке.<br />Либо меняете пути, либо перед добавлением в gui перемещаете на желаемое место.</p>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Mon, 28 Aug 2017 12:32:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=118849#p118849</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=118848#p118848</link>
			<description><![CDATA[<p>Ну, а ошибка какая?</p>]]></description>
			<author><![CDATA[null@example.com (belyankin12)]]></author>
			<pubDate>Mon, 28 Aug 2017 12:31:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=118848#p118848</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=118843#p118843</link>
			<description><![CDATA[<p>Код:<br /></p><div class="codebox"><pre><code>FileInstall, 2177e6f2a644532742d7dbd2f339b39caadd6d27_hq.jpg,  %A_Temp%\2177e6f2a644532742d7dbd2f339b39caadd6d27_hq.jpg
Gui, Add, Picture, x-78 y-40 w620 h430 , %A_Temp%\2177e6f2a644532742d7dbd2f339b39caadd6d27_hq.jpg</code></pre></div><p>Сама катринка находиться в папке Temp. Что делать?<br />Ошибка появляется при <span class="bbu">конвертации</span>.</p>]]></description>
			<author><![CDATA[null@example.com (aktor311)]]></author>
			<pubDate>Mon, 28 Aug 2017 11:46:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=118843#p118843</guid>
		</item>
	</channel>
</rss>
