<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: IfInString не видит русский язык]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=7794</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7794&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: IfInString не видит русский язык».]]></description>
		<lastBuildDate>Mon, 19 Nov 2012 17:27:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65834#p65834</link>
			<description><![CDATA[<div class="quotebox"><cite>Someone пишет:</cite><blockquote><p>В скрипт добавьте<br /></p><div class="codebox"><pre><code>FileEncoding, UTF-8</code></pre></div></blockquote></div><p>Добавил и всё заработало, большое спасибо всем учавствовавшим, вопрос закрыт <img src="//forum.script-coding.com/img/smilies/roll.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (TD-Addict)]]></author>
			<pubDate>Mon, 19 Nov 2012 17:27:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65834#p65834</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65830#p65830</link>
			<description><![CDATA[<div class="quotebox"><cite>Someone пишет:</cite><blockquote><p>если сохранить скрипт просто в UTF-8 (без BOM)</p></blockquote></div><p>Без BOM уж точно не надо! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 19 Nov 2012 16:57:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65830#p65830</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65829#p65829</link>
			<description><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><div class="quotebox"><cite>Someone пишет:</cite><blockquote><p>и сохраните сам скрипт с кодировкой <a href="http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8">UTF-8 with signature (BOM)</a>.</p></blockquote></div><p>Это <a href="http://l.autohotkey.net/docs/AHKL_ChangeLog.htm">лишнее</a>.<br /></p><div class="quotebox"><blockquote><p>1.1.08.00 - July 14, 2012<br />Breaking changes:</p><p>Changed the default script codepage to ANSI, as the previous behaviour was a common source of confusion.</p></blockquote></div></blockquote></div><p>Я проверял, если сохранить скрипт просто в UTF-8 (без BOM) то условие<br /></p><div class="codebox"><pre><code>IfInString, last_line, Тащите рыбу!</code></pre></div><p>не выполняется.</p><p>P.S. Если скрипт в сохранен в кодировке ANSI, то выполняется</p>]]></description>
			<author><![CDATA[null@example.com (Someone)]]></author>
			<pubDate>Mon, 19 Nov 2012 16:53:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65829#p65829</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65822#p65822</link>
			<description><![CDATA[<div class="quotebox"><cite>Someone пишет:</cite><blockquote><p>и сохраните сам скрипт с кодировкой <a href="http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8">UTF-8 with signature (BOM)</a>.</p></blockquote></div><p>Это <a href="http://l.autohotkey.net/docs/AHKL_ChangeLog.htm">лишнее</a>.<br /></p><div class="quotebox"><blockquote><p>1.1.08.00 - July 14, 2012<br />Breaking changes:</p><p>Changed the default script codepage to ANSI, as the previous behaviour was a common source of confusion.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 19 Nov 2012 15:54:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65822#p65822</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65819#p65819</link>
			<description><![CDATA[<p>В скрипт добавьте<br /></p><div class="codebox"><pre><code>FileEncoding, UTF-8</code></pre></div><p>и сохраните сам скрипт с кодировкой <a href="http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8">UTF-8 with signature (BOM)</a>.</p><p>Вот такой тестовый скрипт работает с Вашим логом:<br /></p><div class="codebox"><pre><code>FileEncoding, UTF-8

Logfile = log.txt

Loop, read, %logfile%
{
    last_line := A_LoopReadLine
    MsgBox % last_line

    IfInString, last_line, Тащите рыбу!
        MsgBox Bingo!
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Someone)]]></author>
			<pubDate>Mon, 19 Nov 2012 15:38:49 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65819#p65819</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65814#p65814</link>
			<description><![CDATA[<p><a href="http://files.mail.ru/LAN8BR">http://files.mail.ru/LAN8BR</a><br />Сам скрипт:</p><div class="codebox"><pre><code>IfWinNotActive, RIFT, , WinActivate, RIFT,
WinWaitActive, RIFT,

Logfile = C:\Users\Schmule\Documents\RIFT\log.txt ;Customize to personal Rift noncombat log file location.

fish :=0

top:
FileDelete, %logfile%
last_line :=0
sleep, 500
Send, -
sleep, 400
MouseClick, left,  876,  373 ;Customize mouse coordinate for pole click location.
Sleep, 200

If fish = 1
     goto bait

go:
Timer := A_TickCount
Go-Loop:
{
Loop, read, %logfile%
    last_line := A_LoopReadLine
{
sleep, 200
    IfInString, last_line, свойства усилителя больше
fish :=1
    IfInString, last_line, Тащите рыбу!
goto reel
    IfInString, last_line, Рыба сорвалась.
goto top
    IfInString, last_line, Рыбалка прекращена
goto top
    IfInString, last_line, в ваших руках
goto top
    If A_TickCount - Timer &lt; 30000
                 Goto, Go-Loop
Goto, top
}
}

reel:
Loop
{
FileDelete, %logfile%
last_line :=0
sleep, 200
Send, -
goto go
}

bait:
Loop
{
fish :=0
sleep, 200
Send, 0
sleep, 200
MouseClick, left,  1601,  883 ;Customize mouse coordinate for pole click location.
sleep, 4000
Reload
}

^+1::Goto, bait
^+2::Pause
^+3::Reload
Escape::ExitApp</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (TD-Addict)]]></author>
			<pubDate>Mon, 19 Nov 2012 15:13:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65814#p65814</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65813#p65813</link>
			<description><![CDATA[<div class="quotebox"><cite>TD-Addict пишет:</cite><blockquote><p>Поставил новый АХК, пробовал компилировать скрипты, запускать от администратора (бесполезно, но на всякий случай), всё равно русский язык для него просто пустое место.</p></blockquote></div><p>А кодировку-то в команде чтения файла указали? Я имел в виду, что в новом есть эта возможность. Также там можно кодировку по умолчанию задать, чтобы в каждой команде не указывать.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Mon, 19 Nov 2012 15:12:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65813#p65813</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65803#p65803</link>
			<description><![CDATA[<p>Выложите Ваш скрипт и пример лога в виде файлов на какую нибудь файлопомойку.</p>]]></description>
			<author><![CDATA[null@example.com (Someone)]]></author>
			<pubDate>Mon, 19 Nov 2012 14:00:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65803#p65803</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65802#p65802</link>
			<description><![CDATA[<p>Поставил новый АХК, пробовал компилировать скрипты, запускать от администратора (бесполезно, но на всякий случай), всё равно русский язык для него просто пустое место.</p>]]></description>
			<author><![CDATA[null@example.com (TD-Addict)]]></author>
			<pubDate>Mon, 19 Nov 2012 13:52:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65802#p65802</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65799#p65799</link>
			<description><![CDATA[<p>Ну, это и есть кусок текста из лога (: <br />Сейчас попробую, спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (TD-Addict)]]></author>
			<pubDate>Mon, 19 Nov 2012 11:57:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65799#p65799</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65798#p65798</link>
			<description><![CDATA[<p>Э-э-э... что-то я не понял. Вы просто вывели слово &quot;отобразилось&quot;? Я имел в виду прочитать средствами АНК текст из лога (с русскими буквами) в переменную и вывести её в MsgBox. Если кодировка UTF-8, то нужен AutoHotkey_L. Ну, собственно, он вроде бы и скачивается, если на официальном сайте нажать кнопку Download. Там есть возможность читать файлы в разных кодировках.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Mon, 19 Nov 2012 11:33:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65798#p65798</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65795#p65795</link>
			<description><![CDATA[<p>Есть ли версия АХК, которая сможет работать с UTF-8?<br />Потому как повлиять на кодировку лога я не могу..</p>]]></description>
			<author><![CDATA[null@example.com (TD-Addict)]]></author>
			<pubDate>Mon, 19 Nov 2012 11:13:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65795#p65795</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65794#p65794</link>
			<description><![CDATA[<div class="codebox"><pre><code>MsgBox, 4,, Отобразилось! (press Yes or No)
IfMsgBox Yes
    MsgBox You pressed Yes.
else
    MsgBox You pressed No.</code></pre></div><p>текст отображает как надо.<br />Кодировка, видимо, UTF-8</p>]]></description>
			<author><![CDATA[null@example.com (TD-Addict)]]></author>
			<pubDate>Mon, 19 Nov 2012 11:11:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65794#p65794</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65791#p65791</link>
			<description><![CDATA[<p><strong>TD-Addict</strong><br />Текст в логе в какой кодировке? Для этой версии AHK нужно Windows-1251. Попробуйте этот текст через MsgBox вывести — нормально отобразит или нет.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Mon, 19 Nov 2012 10:30:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65791#p65791</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: IfInString не видит русский язык]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=65789#p65789</link>
			<description><![CDATA[<p>ОС: Windows 7<br />Версия хоткея: 1.0.48.5<br />Формат файла: .ahk</p>]]></description>
			<author><![CDATA[null@example.com (TD-Addict)]]></author>
			<pubDate>Mon, 19 Nov 2012 09:43:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=65789#p65789</guid>
		</item>
	</channel>
</rss>
