<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: ControlGet - CurrentCol не различает UTF]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10425&amp;type=atom" />
	<updated>2015-02-20T18:16:41Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10425</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ControlGet - CurrentCol не различает UTF]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=91744#p91744" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>должен возращать позицию курсора в контроле Edit.</p></blockquote></div><p>Всё правильно, только где тут Edit? Сообщения Scintilla в инете есть. Возможно что это -<a href="http://www.scintilla.org/ScintillaDoc.html#SCI_GETCOLUMN">http://www.scintilla.org/ScintillaDoc.h … _GETCOLUMN</a>.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-02-20T18:16:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=91744#p91744</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ControlGet - CurrentCol не различает UTF]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=91728#p91728" />
			<content type="html"><![CDATA[<p><a href="http://ahkscript.org/boards/viewtopic.php?f=5&amp;t=4826">http://ahkscript.org/boards/viewtopic.p … amp;t=4826</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2015-02-20T13:04:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=91728#p91728</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ControlGet - CurrentCol не различает UTF]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=91727#p91727" />
			<content type="html"><![CDATA[<p>У Notepad++ информация о текущей позиции имеется в статус-баре, насчет scite не подскажу.<br /></p><div class="codebox"><pre><code>StatusBarGetText, Text, 3, A
MsgBox % Text
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2015-02-20T11:39:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=91727#p91727</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ControlGet - CurrentCol не различает UTF]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=91726#p91726" />
			<content type="html"><![CDATA[<p>Как вариант - плясать от переменной A_CaretX, если все символы шрифта одинаковой ширины. Но разбирать каждую строку надёжнее.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2015-02-20T10:16:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=91726#p91726</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ControlGet - CurrentCol не различает UTF]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=91714#p91714" />
			<content type="html"><![CDATA[<p>Если бы.<br /><strong>Только</strong> неанглийские идут за 2 символа, остальные за один.<br />Это особенность UTF - разные символы занимают разное место.<br />Стандартные - 1 байт, нестандартные(кириллица и т.д.) - 2 и более, может быть.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2015-02-20T06:26:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=91714#p91714</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ControlGet - CurrentCol не различает UTF]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=91694#p91694" />
			<content type="html"><![CDATA[<p>А просто поделить результат на два?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2015-02-19T15:48:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=91694#p91694</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: ControlGet - CurrentCol не различает UTF]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=91692#p91692" />
			<content type="html"><![CDATA[<p>Оператор ControlGet с параметром CurrentCol должен возращать позицию курсора в контроле Edit.<br /></p><div class="codebox"><pre><code>ControlGet, CCol, CurrentCol,,Scintilla1, A ; Notepad++ или Scite
MsgBox % CCol</code></pre></div><p>Однако в случае, если открыт файл в <strong>UTF</strong>,<br />неанглийские буквы считаются за 2 символа.</p><p>Как это побороть? Взять весь текст строки и парсить?</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2015-02-19T12:40:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=91692#p91692</id>
		</entry>
</feed>
