<?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=18008&amp;type=atom" />
	<updated>2023-11-23T06:56:14Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18008</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как присвоить переменной пробел?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159529#p159529" />
			<content type="html"><![CDATA[<p>SubStr().</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-11-23T06:56:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159529#p159529</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как присвоить переменной пробел?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=159528#p159528" />
			<content type="html"><![CDATA[<p>Вопрос в заголовке.<br />Передо мной стоит задача сохранить в строку первые 20 символов строки же, прочитанной из файла.<br /></p><div class="codebox"><pre><code>Loop
	{
	header := &quot;&quot;
	Loop
		{
		FileReadLine, line, D:\test.txt, i++	;чтение строки
		if ErrorLevel	;если конец файла
			ExitApp
		if (line = &quot;&quot;)	;если пустая строка
			break
		if (A_Index = 1)	;если первая строка
			{
			Loop, Parse, line
				{
				tempH := A_LoopField
				if (A_LoopField = A_Space)
					tempH = `_
				header = %header%%tempH%
				if (A_Index &gt; 19)
					break
				}
			}
		MsgBox, %header%
		}
	}</code></pre></div><p>Скрипт работает... но отсутствуют пробелы! &quot;Функция состоит из&quot; сохраняется в переменную как &quot;Функциясостоитиз&quot;. Что я только ни пробовал! Вон, нижним подчёркиванием пока заткнул, но так не пойдёт.</p>]]></content>
			<author>
				<name><![CDATA[Qp]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43240</uri>
			</author>
			<updated>2023-11-23T04:40:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=159528#p159528</id>
		</entry>
</feed>
