<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Конвертация строки из HEX в читабельный текст]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11027&amp;type=atom" />
	<updated>2015-10-23T22:06:36Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11027</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Конвертация строки из HEX в читабельный текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=98119#p98119" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
MsgBox % StrFromHex(&quot;5468697320697320612048455820737472696E670A&quot;)

StrFromHex(hex)  {
    While (I := SubStr(hex, A_Index*2-1, 2)) != &quot;&quot;
        Result .= Chr(&quot;0x&quot; I)  
    Return Result
}
</code></pre></div><div class="quotebox"><blockquote><p>Сама строка с командой приходит по Serial от Arduino, нужно ее как-то расшифровать.</p></blockquote></div><p>А <a href="http://arduino.ru/Reference/Serial/Print">это</a> не отправляет готовую строку?<br />И каким скриптом слушаете порт?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-10-23T22:06:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=98119#p98119</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Конвертация строки из HEX в читабельный текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=98116#p98116" />
			<content type="html"><![CDATA[<p>Есть ли функция для конвертации строки вида:<br />5468697320697320612048455820737472696E670A</p><p>В нормальный читабельный текст:<br />This is a HEX string</p><p>Строка раскодирована через http://www.unit-conversion.info/texttools/hexadecimal/<br />ищу функцию-аналог для хоткея.<br />Сама строка с командой приходит по Serial от Arduino, нужно ее как-то расшифровать.</p><p>Ищу нечто вроде функции<br />Text:=HexString(&quot;5468697320697320612048455820737472696E670A&quot;)</p>]]></content>
			<author>
				<name><![CDATA[Humphrey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30367</uri>
			</author>
			<updated>2015-10-23T21:46:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=98116#p98116</id>
		</entry>
</feed>
