<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: GuiControl и обнуление предыдущих переменных]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=16673</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16673&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: GuiControl и обнуление предыдущих переменных».]]></description>
		<lastBuildDate>Wed, 20 Oct 2021 17:57:52 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150176#p150176</link>
			<description><![CDATA[<p><strong>__Михаил__</strong> именно об этом я и подумал ... <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />AHK почти как Perl - многое может!</p>]]></description>
			<author><![CDATA[null@example.com (BlackCat)]]></author>
			<pubDate>Wed, 20 Oct 2021 17:57:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150176#p150176</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150175#p150175</link>
			<description><![CDATA[<p>Тогда думаю АХК в этом поможет как раз.</p>]]></description>
			<author><![CDATA[null@example.com (__Михаил__)]]></author>
			<pubDate>Wed, 20 Oct 2021 17:56:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150175#p150175</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150174#p150174</link>
			<description><![CDATA[<p><strong>__Михаил__</strong> в сети есть конвертеры подобного рода, но они старые и многие не работают, к тому же на кириллице многие глючат - крякозябы выдают.<br />Нашел один &quot;OTConvertIt&quot;, который что-то делает, но тоже старый и функционал не устраивает.<br />Хочу еще и мультистрочную конвертацию в этот код запихнуть ...</p>]]></description>
			<author><![CDATA[null@example.com (BlackCat)]]></author>
			<pubDate>Wed, 20 Oct 2021 17:43:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150174#p150174</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150173#p150173</link>
			<description><![CDATA[<p><strong>__Михаил__</strong> иногда мне нужно быстро конвертировать данные реестра из hex и обратно.<br />Это для модернизации образа WinPE нужно, где используются *.reg файлы.<br />Долго объяснять, а этого я не умею делать ...<br />Теперь буду доделывать этот код для обратной конвертации - из текста в hex для реестра.</p>]]></description>
			<author><![CDATA[null@example.com (BlackCat)]]></author>
			<pubDate>Wed, 20 Oct 2021 17:35:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150173#p150173</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150172#p150172</link>
			<description><![CDATA[<p>Только вот какой смысл хранить в реестре в хексе? Можно и в виде строк хранить.</p>]]></description>
			<author><![CDATA[null@example.com (__Михаил__)]]></author>
			<pubDate>Wed, 20 Oct 2021 17:15:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150172#p150172</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150171#p150171</link>
			<description><![CDATA[<p><strong>teadrinker</strong> ну я же писал, что не умею объяснять. Как собака - все понимаю, но сказать не могу! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />БОЛЬШУЩЕЕ БЛАГОДАРЮ за помощь!<br />Теперь все хорошо работает.</p>]]></description>
			<author><![CDATA[null@example.com (BlackCat)]]></author>
			<pubDate>Wed, 20 Oct 2021 17:01:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150171#p150171</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150170#p150170</link>
			<description><![CDATA[<p>Ну вот вам и нужно было объяснить, что при вставке hex-кода в верхнее поле должен появляться декодированный текст в нижнем. Если так, то можно было проще:<br /></p><div class="codebox"><pre><code>RegHex =
(
  54,00,65,00,73,00,74,00,3a,00,20,00,22,00,45,00,6e,00,67,00,6c,00,69,\
  00,73,00,68,00,20,00,61,00,6e,00,79,00,20,00,74,00,65,00,78,00,74,00,22,00,\
  20,00,2b,00,20,00,20,04,43,04,41,04,41,04,3a,04,38,04,39,04,20,00,42,04,35,\
  04,3a,04,41,04,42,04,3a,00,20,00,22,00,11,04,43,04,31,04,3b,04,4c,04,20,00,\
  13,04,43,04,3c,04,22,00,00,00,00,00
)

Gui Add, Edit, vSrcHex gGetTxt w600 h200, % RegHex ; Вставить hex из *reg файла
Gui Add, Edit, vOutTxt  w600 h200
Gui Add, Button, gReset, Очистить все
Gui Show,, % ProgName
Return

Reset:
 GuiControl,, SrcHex
 GuiControl,, OutTxt
Return

GuiClose:
ExitApp

GetTxt(){
 GuiControlGet, SrcHex
 SrcHex := RegExReplace(SrcHex, &quot;[^a-f\d]&quot;)
 Loop % StrLen(SrcHex) /2 {
  Txt .= Chr(&quot;0x&quot; SubStr(SrcHex, A_index *4 -1, 2) SubStr(SrcHex, A_index *4 -3, 2))
  }
 GuiControl,, OutTxt, % Txt
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 20 Oct 2021 16:55:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150170#p150170</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150169#p150169</link>
			<description><![CDATA[<p><strong>teadrinker</strong> ... блин!!! Перепутал ... [Ctrl + V] конечно же!!!!<br />Просто перепутал, когда писал. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Я не думаю, когда нажимаю клавиши и все само-собой происходит.</p>]]></description>
			<author><![CDATA[null@example.com (BlackCat)]]></author>
			<pubDate>Wed, 20 Oct 2021 16:48:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150169#p150169</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150168#p150168</link>
			<description><![CDATA[<p>Странно, обычно по умолчанию в Windows по Ctrl + C осуществляется копирование, а вставка по Ctrl + V.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 20 Oct 2021 16:47:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150168#p150168</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150167#p150167</link>
			<description><![CDATA[<p><strong>teadrinker</strong> ага ... у меня так работает.<br />А разве иначе???</p>]]></description>
			<author><![CDATA[null@example.com (BlackCat)]]></author>
			<pubDate>Wed, 20 Oct 2021 16:45:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150167#p150167</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150166#p150166</link>
			<description><![CDATA[<p>А, я понял, вы думаете, что вставка текста осуществляется по Ctrl + C.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 20 Oct 2021 16:41:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150166#p150166</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150165#p150165</link>
			<description><![CDATA[<p><strong>teadrinker</strong> благодарю за помощь!<br />Уже решили вопрос, спасибо огромное!</p>]]></description>
			<author><![CDATA[null@example.com (BlackCat)]]></author>
			<pubDate>Wed, 20 Oct 2021 16:39:49 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150165#p150165</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150164#p150164</link>
			<description><![CDATA[<div class="quotebox"><cite>BlackCat пишет:</cite><blockquote><p>перед вставкой [Ctrl + C] нужно ткнуть мышой в верхний Edit, чтобы он активировался</p></blockquote></div><p>Так он и был изначально активным.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 20 Oct 2021 16:38:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150164#p150164</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150163#p150163</link>
			<description><![CDATA[<p><strong>__Михаил__</strong> ну да, функцию не довел до ума, а копал не в том месте! ... Совсем тормознул! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Большущее спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (BlackCat)]]></author>
			<pubDate>Wed, 20 Oct 2021 16:38:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150163#p150163</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: GuiControl и обнуление предыдущих переменных]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=150162#p150162</link>
			<description><![CDATA[<p>Всё настолько просто, что даже смешно:</p><div class="codebox"><pre><code>RegHex =
(
  54,00,65,00,73,00,74,00,3a,00,20,00,22,00,45,00,6e,00,67,00,6c,00,69,\
  00,73,00,68,00,20,00,61,00,6e,00,79,00,20,00,74,00,65,00,78,00,74,00,22,00,\
  20,00,2b,00,20,00,20,04,43,04,41,04,41,04,3a,04,38,04,39,04,20,00,42,04,35,\
  04,3a,04,41,04,42,04,3a,00,20,00,22,00,11,04,43,04,31,04,3b,04,4c,04,20,00,\
  13,04,43,04,3c,04,22,00,00,00,00,00
)

Gui Add, Edit, vSrcHex gGetTxt w600 h200, % RegHex ; Вставить hex из *reg файла
Gui Add, Edit, vOutTxt  w600 h200
Gui Add, Button, gReset, Очистить все
Gui Show,, % ProgName
Return

GetTxt:
 Gui Submit, NoHide
 GuiControl,, OutTxt, % GetTxt(SrcHex)
Return

Reset:
 Gui Submit, NoHide
 GuiControl,, SrcHex
 GuiControl,, OutTxt
Return

GuiClose:
ExitApp

GetTxt(SrcHex){
 global
 Txt=
 SrcHex := RegExReplace(SrcHex, &quot;m),|\s|\\\n&quot;, &quot;&quot;)
 Loop % StrLen(SrcHex) /2 {
  Txt .= Chr(&quot;0x&quot; SubStr(SrcHex, A_index *4 -1, 2) SubStr(SrcHex, A_index *4 -3, 2))
  }
Return Txt
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (__Михаил__)]]></author>
			<pubDate>Wed, 20 Oct 2021 16:35:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=150162#p150162</guid>
		</item>
	</channel>
</rss>
