<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Сохранение в ini файле?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16867&amp;type=atom" />
	<updated>2022-01-05T16:06:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16867</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение в ini файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151523#p151523" />
			<content type="html"><![CDATA[<p>А зачем?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-01-05T16:06:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151523#p151523</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение в ini файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151522#p151522" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Можете пожалуйста закрыть данную тему?</p>]]></content>
			<author>
				<name><![CDATA[IDont]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41034</uri>
			</author>
			<updated>2022-01-05T15:45:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151522#p151522</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение в ini файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151521#p151521" />
			<content type="html"><![CDATA[<p><strong>IDont</strong>, добро пожаловать на форум! Ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">точки</a> в конце предложений.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-01-05T15:36:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151521#p151521</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение в ini файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151520#p151520" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong> Сам файл создаётся возле запущенного приложения. И если изменить значение двух ключей, то значение первого ключа сохранится после запуска, а вот второго изменится&nbsp; на стандартное.</p>]]></content>
			<author>
				<name><![CDATA[IDont]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41034</uri>
			</author>
			<updated>2022-01-05T15:30:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151520#p151520</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение в ini файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151519#p151519" />
			<content type="html"><![CDATA[<p>Нужно ошибки не допускать - путь к файлу настроек хранить в виде переменной.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-01-05T15:15:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151519#p151519</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Сохранение в ini файле?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151518#p151518" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
IniRead, AucRefresher, Settings.ini,keys,AucRefresher, -1
IniRead, AucBuyer, Setting.ini, keys, AucBuyer, -1

if(AucRefresher=&quot;-1&quot;){
	AucRefresher:=&quot;0&quot;
	IniWrite,%AucRefresher%,Settings.ini,keys,AucRefresher
}

if(AucBuyer=&quot;-1&quot;){
	AucBuyer:=&quot;9&quot;
	IniWrite,%AucBuyer%,Settings.ini,keys,AucBuyer
}

Hotkey,%AucRefresher%,AucRefresher,On,UseErrorLevel
HotKey,%AucBuyer%,AucBuyer,On,UseErrorLevel

return

AucRefresher:
	MouseMove, 660, 350 
	MouseClick, left
	Sleep, 200

	MouseMove, 660, 390 
	MouseClick, left

	MouseMove, 737, 320 
	Sleep, 50
return

AucBuyer:
	MouseClick, left
	Sleep, 300

	MouseMove, 800, 385
	MouseClick, left
	sleep 300

	MouseMove, 733, 369
	MouseClick, left
return
</code></pre></div><p>Привет всем, в общем проблема в следующем. При первом запуске у меня создаётся ini файл c двумя ключами. Когда я меняю значения этих ключей через ini файл, то первый ключ сохраняется нормально, а вот второй меняется на тот, который я указал в программе. Подскажите пожалуйста в чём может быть проблема.</p>]]></content>
			<author>
				<name><![CDATA[IDont]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41034</uri>
			</author>
			<updated>2022-01-05T14:43:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151518#p151518</id>
		</entry>
</feed>
