<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: iniRead не считывает в Gui hotkey]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8177&amp;type=atom" />
	<updated>2013-03-25T20:59:22Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8177</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: iniRead не считывает в Gui hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70772#p70772" />
			<content type="html"><![CDATA[<p>Фух кое как додумался и нашел решение. Если кому поможет то вот: </p><p>Эту часть скрипта: </p><div class="codebox"><pre><code>Gui, Add, Hotkey, vKeyQ x2 y240 w100 h30 , 
Gui, Add, Hotkey, vKeyW x272 y230 w50 h30 , 
Gui, Add, Hotkey, vKeyE x512 y230 w60 h20 </code></pre></div><p>Меняем на: </p><div class="codebox"><pre><code>Gui, Add, Hotkey, vKeyQ x2 y240 w100 h30 , %keyQ% 
Gui, Add, Hotkey, vKeyW x272 y230 w50 h30 , %keyw%
Gui, Add, Hotkey, vKeyE x512 y230 w60 h20 , %keyE%</code></pre></div><p>З.Ы. Просто нужно было хорошенько прочитать описание к Gui, Add, Hotkey.</p>]]></content>
			<author>
				<name><![CDATA[NonameDayz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29868</uri>
			</author>
			<updated>2013-03-25T20:59:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70772#p70772</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: iniRead не считывает в Gui hotkey]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70771#p70771" />
			<content type="html"><![CDATA[<p>Добрый вечер всем. <br />Не могу понять почему не считывает значения из ини. <br />А записывается все прекрасно. <br />Вот скрипт:<br /></p><div class="codebox"><pre><code>
IniRead, KeyQ, %A_ScriptDir%\config.ini, Skill, KeyQ
IniRead, KeyW, %A_ScriptDir%\config.ini, Skill, KeyW 
IniRead, KeyE, %A_ScriptDir%\config.ini, Skill, KeyE

Gui, Add, Picture, x242 y30 w230 h100 , E:\1\icon.jpg
Gui, Add, Picture, x112 y190 w120 h120 +, E:\1\ability1.jpg
Gui, Add, Picture, x362 y190 w120 h120 , E:\1\ability2.jpg
Gui, Add, Picture, x592 y200 w120 h120 , E:\1\ability3.jpg
Gui, Add, Hotkey, vKeyQ x2 y240 w100 h30 , 
Gui, Add, Hotkey, vKeyW x272 y230 w50 h30 , 
Gui, Add, Hotkey, vKeyE x512 y230 w60 h20 
Gui, Add, Button, vOK x302 y570 w100 h30 , Ok 
Gui, Add, Button, vSave x102 y480 w100 h30 , Save
; Generated using SmartGUI Creator 4.0
Gui, Show, x623 y93 h782 w753, New GUI Window
 
Return

F10::reload
F11::suspend


Cold:
Send, %keyw%
Return

Buttonok:
Gui, Submit, NoHide
Hotkey, %KeyQ%, Cold
return

ButtonSave:
    Gui, Submit, NoHide
    IniWrite, %KeyQ%, %A_ScriptDir%\config.ini, Skill, KeyQ
    IniWrite, %KeyW%, %A_ScriptDir%\config.ini, Skill, KeyW
    IniWrite, %KeyE%, %A_ScriptDir%\config.ini, Skill, KeyE
Return

GuiClose:
ExitApp
</code></pre></div><p>Ini файл содержит:</p><br /><div class="codebox"><pre><code>[Skill]
KeyQ=A
KeyW=S
KeyE=D
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[NonameDayz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29868</uri>
			</author>
			<updated>2013-03-25T20:16:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70771#p70771</id>
		</entry>
</feed>
