<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHk: отображение китайских шрифтов в gui]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12768&amp;type=atom" />
	<updated>2017-06-23T16:05:22Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12768</id>
		<entry>
			<title type="html"><![CDATA[Re: AHk: отображение китайских шрифтов в gui]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116826#p116826" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>smisha</strong>, поставьте заглавные буквы и точки в своих сообщениях.</span><br /><a href="http://forum.script-coding.com/viewtopic.php?pid=116819#p116819">http://forum.script-coding.com/viewtopi … 19#p116819</a><br /><a href="http://forum.script-coding.com/viewtopic.php?pid=116822#p116822">http://forum.script-coding.com/viewtopi … 22#p116822</a><br /><a href="http://forum.script-coding.com/viewtopic.php?pid=116825#p116825">http://forum.script-coding.com/viewtopi … 25#p116825</a></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-06-23T16:05:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116826#p116826</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHk: отображение китайских шрифтов в gui]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116825#p116825" />
			<content type="html"><![CDATA[<p>Выводит в консоль когда запускаешь скрипт сообщения дебаггера, очень удобно для отладки. Там где надо что-то отследить вставляешь.</p><p>DebugMessage(tag, str)</p><p>Под юникодом китайский заработал!</p><p>Всем спасибо. Осталось дебаггер исправить).</p>]]></content>
			<author>
				<name><![CDATA[smisha]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38084</uri>
			</author>
			<updated>2017-06-23T15:14:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116825#p116825</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHk: отображение китайских шрифтов в gui]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116824#p116824" />
			<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>2017-06-23T15:09:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116824#p116824</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHk: отображение китайских шрифтов в gui]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116823#p116823" />
			<content type="html"><![CDATA[<p>Переставил скрипт на unicode. Использую такой дебаггер:</p><div class="codebox"><pre><code>DebugMessage(tag, str)
{
 global h_stdout, DebugFile, DebugShow, debug

 DebugConsoleInitialize()  ; start console window if not yet started
 if instr(DebugShow, tag) &amp;&amp; debug
{
 str .= &quot;`n&quot; ; add line feed
 FileAppend, %str%, debug.txt
 ;FileAppend, %line%`n, debug.txt
 DllCall(&quot;WriteFile&quot;, &quot;uint&quot;, h_Stdout, &quot;uint&quot;, &amp;str, &quot;uint&quot;, StrLen(str), &quot;uint*&quot;, BytesWritten, &quot;uint&quot;, NULL) ; write into the console
}
 WinSet, Bottom,, ahk_id %h_stout%  ; keep console on bottom
}

DebugConsoleInitialize()
{
   global h_Stdout     ; Handle for console
   static is_open = 0  ; toogle whether opened before
   if (is_open = 1)     ; yes, so don&#039;t open again
     return
	 
   is_open := 1	
   ; two calls to open, no error check (it&#039;s debug, so you know what you are doing)
   DllCall(&quot;AttachConsole&quot;, int, -1, int)
   DllCall(&quot;AllocConsole&quot;, int)

   dllcall(&quot;SetConsoleTitle&quot;, &quot;str&quot;,&quot;Paddy Debug Console&quot;)    ; Set the name. Example. Probably could use a_scriptname here 
   h_Stdout := DllCall(&quot;GetStdHandle&quot;, &quot;int&quot;, -11) ; get the handle
   WinSet, Bottom,, ahk_id %h_stout%      ; make sure it&#039;s on the bottom

      WinMove, ahk_id %h_stout% , , , , -800, 800
   WinActivate,Lightroom   ; Application specific; I need to make sure this application is running in the foreground. YMMV
  
   return
}</code></pre></div><p>Стал выводить каждый символ через пробел... Как можно исправить?</p>]]></content>
			<author>
				<name><![CDATA[smisha]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38084</uri>
			</author>
			<updated>2017-06-23T15:01:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116823#p116823</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHk: отображение китайских шрифтов в gui]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116822#p116822" />
			<content type="html"><![CDATA[<p>Сейчас попробую поставить unicode версию, так как скрипт teadrinker уже только вопросики показывает).</p><p>Главное, чтобы скрипт сохранил работоспособность.</p>]]></content>
			<author>
				<name><![CDATA[smisha]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38084</uri>
			</author>
			<updated>2017-06-23T14:46:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116822#p116822</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHk: отображение китайских шрифтов в gui]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116821#p116821" />
			<content type="html"><![CDATA[<p>Используйте Unicode-версию интерпретатора, и всё будет нормально отображаться.<br /></p><div class="codebox"><pre><code>Gui, Add, Text,, 世界，你好！
Gui, Show, w100</code></pre></div><p><span class="postimg"><img src="http://i.imgur.com/MEGk1e3.png" alt="http://i.imgur.com/MEGk1e3.png" /></span></p><p>Файл скрипта должен быть сохранён в кодировке UTF-8 с BOM.<br />Если текст считывается из файла, сохранённого без BOM, в команде FileRead должна быть указана его кодировка.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-06-23T14:11:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116821#p116821</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHk: отображение китайских шрифтов в gui]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116820#p116820" />
			<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>2017-06-23T13:39:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116820#p116820</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHk: отображение китайских шрифтов в gui]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116819#p116819" />
			<content type="html"><![CDATA[<p>Всем привет!</p><p>Есть программа, графические данные которые я считываю и распознаю с помощью Capture2Text. Она записывает данные в текстовый файл. Данные представляют собой никнеймы как на английском, так и на китайском языке. До текствого файла они доходят в нормальном формате, но как только пытаюсь их вывести на экран, вижу вопросики. Пытался разными способами читать файл используя utf кодировки, но результат тот же. Язык chinese-simplified.</p><p>Может быть у кого есть опыт, как сделать чтобы данные нормально выводить с помощью ahk из файла в гуи.</p>]]></content>
			<author>
				<name><![CDATA[smisha]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38084</uri>
			</author>
			<updated>2017-06-23T13:37:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116819#p116819</id>
		</entry>
</feed>
