<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12329&amp;type=atom" />
	<updated>2017-01-25T08:52:44Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=12329</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проблемы с поиском кириллицы в файле]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=111533#p111533" />
			<content type="html"><![CDATA[<p>Проблема решена сменой кодировки файла скрипта на Windows 1251.</p>]]></content>
			<author>
				<name><![CDATA[bolkogaso]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34507</uri>
			</author>
			<updated>2017-01-25T08:52:44Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=111533#p111533</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проблемы с поиском кириллицы в файле]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=111223#p111223" />
			<content type="html"><![CDATA[<p><strong>bolkogaso</strong><br />Посмотрел дома.<span class="postimg"><img src="http://s019.radikal.ru/i634/1701/3e/c0398b0f3568.gif" alt="http://s019.radikal.ru/i634/1701/3e/c0398b0f3568.gif" /></span></p>]]></content>
			<author>
				<name><![CDATA[red2881]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30934</uri>
			</author>
			<updated>2017-01-18T18:35:26Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=111223#p111223</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проблемы с поиском кириллицы в файле]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=111219#p111219" />
			<content type="html"><![CDATA[<p>Я когда использую совсем другую функцию поиска (только поиска, не замены), для кириллицы использую следующею команду:<br /></p><div class="codebox"><pre><code>FileEncoding, CP0</code></pre></div><p>. Ну вот не хочет в UTF у меня видеть кириллицу, видит &quot;???№№№&quot;, попробуй.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-01-18T14:38:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=111219#p111219</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проблемы с поиском кириллицы в файле]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=111215#p111215" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>red2881 пишет:</cite><blockquote><p><strong>bolkogaso</strong><br />Word 2010 все работает.</p></blockquote></div><p>Прошу прощения за введение в заблуждение. С предыдущим примером - действительно работает. Исправил на неработающий. попробуйте MSWordMultiReplace(&quot;1 - Новый фтор&quot;, &quot;2 - Натрий&quot;) - у вас тоже не сработает.</p>]]></content>
			<author>
				<name><![CDATA[bolkogaso]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34507</uri>
			</author>
			<updated>2017-01-18T11:20:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=111215#p111215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проблемы с поиском кириллицы в файле]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=111213#p111213" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>red2881 пишет:</cite><blockquote><p>Word 2010 все работает.</p></blockquote></div><p>Хм. Тот же ворд 2010, AHK последний 1.1.24.04.</p><p>Значит проблема локальная. Куда копать можно?</p>]]></content>
			<author>
				<name><![CDATA[bolkogaso]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34507</uri>
			</author>
			<updated>2017-01-18T10:01:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=111213#p111213</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проблемы с поиском кириллицы в файле]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=111212#p111212" />
			<content type="html"><![CDATA[<p><strong>bolkogaso</strong><br />Word 2010 все работает.</p>]]></content>
			<author>
				<name><![CDATA[red2881]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30934</uri>
			</author>
			<updated>2017-01-18T09:34:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=111212#p111212</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проблемы с поиском кириллицы в файле]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=111211#p111211" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>red2881 пишет:</cite><blockquote><p>Как вариант: Word заменяет дефис на тире.<br />Файл - параметры - параметры автозамены.</p></blockquote></div><p>Это первое куда я копал. Если я заменяю фразы на английском - MSWordMultiReplace(&quot;1 - One&quot;, &quot;2 - Two&quot;) - работает прекрасно ровно в таком виде.</p>]]></content>
			<author>
				<name><![CDATA[bolkogaso]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34507</uri>
			</author>
			<updated>2017-01-18T09:13:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=111211#p111211</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проблемы с поиском кириллицы в файле]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=111209#p111209" />
			<content type="html"><![CDATA[<p><strong>bolkogaso</strong> <br />Как вариант: Word заменяет дефис на тире.<br />Файл - параметры - параметры автозамены.<span class="postimg"><img src="http://s013.radikal.ru/i325/1701/76/8a346b0406ed.jpg" alt="http://s013.radikal.ru/i325/1701/76/8a346b0406ed.jpg" /></span></p>]]></content>
			<author>
				<name><![CDATA[red2881]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30934</uri>
			</author>
			<updated>2017-01-18T08:47:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=111209#p111209</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: проблемы с поиском кириллицы в файле]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=111208#p111208" />
			<content type="html"><![CDATA[<p>День добрый, господа.</p><p>Использую для поиска и замены в открытом файле ворда слов следующий кусочек кода:</p><div class="codebox"><pre><code>MSWordMultiReplace(&quot;One&quot;, &quot;Two&quot;)
                               
MSWordMultiReplace(params*) {      
         oWord := ComObjActive(&quot;Word.Application&quot;)
         oWord.Selection.Find.ClearFormatting
         oWord.Selection.Find.Replacement.ClearFormatting    
         For k,v in Params
         {
                 c++
                 if (c = 1)
                 {
                          st := v
                          continue
                 }
                 rt := v, c := 0
                 oWord.Selection.Find.Execute(st, 0, 0, 0, 0, 0, 1, 1, 0, rt, 2)
         }        
                }</code></pre></div><p>Прекрасно работает на словах и сочетаниях слов на английском. Но если я попробую некоторые фразы на русском, например: MSWordMultiReplace(&quot;1 - Новый фтор&quot;, &quot;2 - Натрий&quot;) - замены не происходит. Где я не доделал того, что нужно?</p>]]></content>
			<author>
				<name><![CDATA[bolkogaso]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34507</uri>
			</author>
			<updated>2017-01-18T07:32:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=111208#p111208</id>
		</entry>
</feed>
