<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12954&amp;type=atom" />
	<updated>2017-08-28T14:22:09Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12954</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118859#p118859" />
			<content type="html"><![CDATA[<p>А разве без указания пути к файлу путь не считается относительно A_WorkingDir либо если оно не указано то относительно местоположению скрипта? Разве что картинка не была рядом со скриптом, ну либо юникодовский ахк <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-08-28T14:22:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118859#p118859</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118853#p118853" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Ох. Спасибо большое). Я даже и не заметил.</p>]]></content>
			<author>
				<name><![CDATA[aktor311]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38738</uri>
			</author>
			<updated>2017-08-28T13:11:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118853#p118853</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118852#p118852" />
			<content type="html"><![CDATA[<p>Первый параметр FileInstall — это где картинка находится изначально, а у вас что?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-08-28T13:07:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118852#p118852</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118851#p118851" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[aktor311]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38738</uri>
			</author>
			<updated>2017-08-28T12:54:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118851#p118851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118850#p118850" />
			<content type="html"><![CDATA[<p>error adding FileInstall file:<br /> &quot;Имя файлa&quot;</p>]]></content>
			<author>
				<name><![CDATA[aktor311]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38738</uri>
			</author>
			<updated>2017-08-28T12:38:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118850#p118850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118849#p118849" />
			<content type="html"><![CDATA[<p>Читать описание FileInstall в справке.<br />Либо меняете пути, либо перед добавлением в gui перемещаете на желаемое место.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-08-28T12:32:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118849#p118849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118848#p118848" />
			<content type="html"><![CDATA[<p>Ну, а ошибка какая?</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-08-28T12:31:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118848#p118848</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Ошибка при загрузке картинки в Gui через fileinstall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=118843#p118843" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[aktor311]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38738</uri>
			</author>
			<updated>2017-08-28T11:46:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=118843#p118843</id>
		</entry>
</feed>
