<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Исправление функции]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16108&amp;type=atom" />
	<updated>2021-02-20T15:30:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16108</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление функции]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146374#p146374" />
			<content type="html"><![CDATA[<p>Ещё непонятно, могут ли быть значения другого вида, нужно ли проверять структуру. Если нет, можно так:<br /></p><div class="codebox"><pre><code>arrayreplace(arr, num) {
   for k, v in arr {
      RegExMatch(v, &quot;(.+?)\K\d+&quot;, m)
      s := m + num
      s := s &lt; 60 ? s : s - 60
      arr[k] := m1 . s
   }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-20T15:30:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146374#p146374</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление функции]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146373#p146373" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />[LC-345, GD-350]<br />Функция так и работает.</p>]]></content>
			<author>
				<name><![CDATA[aredlook]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41450</uri>
			</author>
			<updated>2021-02-20T15:18:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146373#p146373</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление функции]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146370#p146370" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>arr := [&quot;LC-45&quot;, &quot;GD-50&quot;]
arrayreplace(arr, 300)</code></pre></div><p>Какой результат ожидаете?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-20T14:30:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146370#p146370</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление функции]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146369#p146369" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Бывают в жизни огорчения.<br />Исправил.</p>]]></content>
			<author>
				<name><![CDATA[aredlook]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41450</uri>
			</author>
			<updated>2021-02-20T12:43:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146369#p146369</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление функции]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146368#p146368" />
			<content type="html"><![CDATA[<p>Возможно, мама что-то знает, чего не знаете вы. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Так исправьте свои функи, и перейдём к сути.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-20T12:42:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146368#p146368</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление функции]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146367#p146367" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Мама сказала что уже поздно и говорит что с меня ничего не вырастет.<br />Достаточно оффтопить, давайте к сути.</p>]]></content>
			<author>
				<name><![CDATA[aredlook]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41450</uri>
			</author>
			<updated>2021-02-20T12:37:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146367#p146367</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление функции]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146366#p146366" />
			<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>2021-02-20T12:36:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146366#p146366</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление функции]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146365#p146365" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Я Егор, мне 0 лет, пошлый, изучаю АХК. <span class="postimg"><img src="http://arcanumclub.ru/smiles/smile3.gif" alt="http://arcanumclub.ru/smiles/smile3.gif" /></span></p>]]></content>
			<author>
				<name><![CDATA[aredlook]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41450</uri>
			</author>
			<updated>2021-02-20T12:33:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146365#p146365</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление функции]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146364#p146364" />
			<content type="html"><![CDATA[<p>Допускаю такой вариант, если в детском саду уже начали изучать программирование. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-20T12:30:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146364#p146364</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление функции]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146363#p146363" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Звучит так себе.</p></blockquote></div><p>А если так? <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="quotebox"><blockquote><p>Ребзя, есть функа:</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2021-02-20T12:27:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146363#p146363</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Исправление функции]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146362#p146362" />
			<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>2021-02-20T10:26:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146362#p146362</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Исправление функции]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146360#p146360" />
			<content type="html"><![CDATA[<p>Есть функция:<br /></p><div class="codebox"><pre><code>arrayreplace(array, number) { ;replace time in array
	For key, value in array {
	   RegExMatch(value, &quot;(.*-)(\d{1,2})&quot;, var)
	   if (var2 + number &gt; 60 or var2 + number = 60) {
			Array[key] := var1 &quot;&quot; var2 + number - 60
		} else {
			Array[key] := var1 &quot;&quot; var2 + number
		}
   }
}	</code></pre></div><p>Вытягивает время с массива (массив: [LC-45, GD-50]) и прибавляет к нему number.<br />Как можно реализовать по другому?</p>]]></content>
			<author>
				<name><![CDATA[aredlook]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41450</uri>
			</author>
			<updated>2021-02-20T09:05:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146360#p146360</id>
		</entry>
</feed>
