<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: RegExReplace переменные в одной строчке]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=14519</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14519&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: RegExReplace переменные в одной строчке».]]></description>
		<lastBuildDate>Thu, 31 Jan 2019 20:14:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=131846#p131846</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong><br />почему игнорять не отвечають ?????????????????????????</p>]]></description>
			<author><![CDATA[null@example.com (LAGARIUM)]]></author>
			<pubDate>Thu, 31 Jan 2019 20:14:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=131846#p131846</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=131845#p131845</link>
			<description><![CDATA[<p><span class="postimg"><img src="https://gl.weburg.net/00/fck/Picard-headesk.jpg" alt="https://gl.weburg.net/00/fck/Picard-headesk.jpg" /></span></p>]]></description>
			<author><![CDATA[null@example.com (MandarinKa02)]]></author>
			<pubDate>Thu, 31 Jan 2019 19:46:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=131845#p131845</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=131843#p131843</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Красиво наверное никак. А у вас никак не получается сделать, или не получается в одну строку?<br /></p><div class="codebox"><pre><code>
Hotkey := &quot;!+^vk31&quot;

Key := GetKeyName(RegExReplace(Hotkey, &quot;\+|\^|!&quot;, , r))
for k, v in [&quot;+&quot;, &quot;!&quot;,&quot;^&quot;, 0], n := [&quot;Shift&quot;, &quot;Alt&quot;, &quot;Ctrl&quot;]
	Hotkey := StrReplace(Hotkey, v, &quot;&quot;, c)
	, ret .= c ? n[k] . &quot; + &quot; Key &quot;, &quot; : !v &amp;&amp; !r ? Key : &quot;&quot; 
ret := RTrim(ret, &quot;, &quot;)

MsgBox, % ret
</code></pre></div></blockquote></div><br /><p>Мне нужен скрипт&nbsp; когда я нажимаю на shift и отпускаю и сразу чтоб нажался один раз пробел с таймером как ето зделать ?</p>]]></description>
			<author><![CDATA[null@example.com (LAGARIUM)]]></author>
			<pubDate>Thu, 31 Jan 2019 18:51:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=131843#p131843</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=131842#p131842</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong>, все, спасибо Вам большое! Все работает как нужно. </p>]]></description>
			<author><![CDATA[null@example.com (mtc_err)]]></author>
			<pubDate>Thu, 31 Jan 2019 18:38:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=131842#p131842</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=131743#p131743</link>
			<description><![CDATA[<p>Красиво наверное никак. А у вас никак не получается сделать, или не получается в одну строку?<br /></p><div class="codebox"><pre><code>
Hotkey := &quot;!+^vk31&quot;

Key := GetKeyName(RegExReplace(Hotkey, &quot;\+|\^|!&quot;, , r))
for k, v in [&quot;+&quot;, &quot;!&quot;,&quot;^&quot;, 0], n := [&quot;Shift&quot;, &quot;Alt&quot;, &quot;Ctrl&quot;]
	Hotkey := StrReplace(Hotkey, v, &quot;&quot;, c)
	, ret .= c ? n[k] . &quot; + &quot; Key &quot;, &quot; : !v &amp;&amp; !r ? Key : &quot;&quot; 
ret := RTrim(ret, &quot;, &quot;)

MsgBox, % ret
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 29 Jan 2019 19:12:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=131743#p131743</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=131740#p131740</link>
			<description><![CDATA[<p><strong>teadrinker</strong> и <strong>serzh82saratov</strong>, я, возможно, не совсем понятливо изложил, сейчас поправлюсь/выдвину конкретику.</p><br /><p>Надо так: если в переменной &quot;HotKey_a&quot; имеются символы &quot;!&quot;, &quot;^&quot;, &quot;+&quot;, то она их заменяет на &quot;Alt + (клавиша)&quot;, &quot;Ctrl + (клавиша)&quot;, &quot;Shift + (клавиша)&quot;.</p><div class="quotebox"><blockquote><p>Gui, help6:Add, Text, xp y25 w470 0x10 <br />HotKey_a := &quot;^!+vk31&quot; <br />for k, v in {&quot;!&quot;: &quot;Alt&quot;, &quot;+&quot;: &quot;Shift&quot;, &quot;^&quot;: &quot;Ctrl&quot;} <br />HotKey_a := RegexReplace(HotKey_a, &quot;\&quot; . k . &quot;(?!\s)&quot;, v . &quot; + &quot;) <br />Gui, help6:Add, Text, x130 y30 w465 h432, <br />( <br />Запуск / Пауза отыгровок у вас назначено на %HotKey_a% <br />)</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (mtc_err)]]></author>
			<pubDate>Tue, 29 Jan 2019 15:36:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=131740#p131740</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=131738#p131738</link>
			<description><![CDATA[<p>Все не совсем так..</p>]]></description>
			<author><![CDATA[null@example.com (mtc_err)]]></author>
			<pubDate>Tue, 29 Jan 2019 14:40:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=131738#p131738</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=131700#p131700</link>
			<description><![CDATA[<p>Без Regex, и с именем. Правда так портится очерёдность префиксов, если использовать + как разделитель.<br /></p><div class="codebox"><pre><code>Hotkey := &quot;^!+vk31&quot;
for k, v in [&quot;+&quot;, &quot;!&quot;,&quot;^&quot;, 0], n := [&quot;Shift&quot;, &quot;Alt&quot;, &quot;Ctrl&quot;] 
	Hotkey := StrReplace(Hotkey, v, &quot;&quot;, c)
	, ret .= c ? n[k] . &quot; + &quot; : !v ? GetKeyName(Hotkey) : &quot;&quot; 
MsgBox, % ret
</code></pre></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>Или так:</p><div class="codebox"><pre><code>Hotkey := &quot;^!+vk31&quot;
for k, v in {&quot;!&quot;: &quot;Alt&quot;, &quot;|&quot;: &quot;Shift&quot;, &quot;^&quot;: &quot;Ctrl&quot;}
, Hotkey := StrReplace(Hotkey, &quot;+&quot;, &quot;|&quot;)
	Hotkey := StrReplace(Hotkey, k, v . &quot; + &quot;) 
MsgBox, % Hotkey</code></pre></div></div></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Mon, 28 Jan 2019 19:07:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=131700#p131700</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=131697#p131697</link>
			<description><![CDATA[<p>В одну никак. Можно так:<br /></p><div class="codebox"><pre><code>strHotkey := &quot;^!+vk31&quot;
for k, v in {&quot;!&quot;: &quot;Alt&quot;, &quot;+&quot;: &quot;Shift&quot;, &quot;^&quot;: &quot;Ctrl&quot;}
   strHotkey := RegexReplace(strHotkey, &quot;\&quot; . k . &quot;(?!\s)&quot;, v . &quot; + &quot;)
MsgBox, % strHotkey</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 28 Jan 2019 16:01:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=131697#p131697</guid>
		</item>
		<item>
			<title><![CDATA[AHK: RegExReplace переменные в одной строчке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=131693#p131693</link>
			<description><![CDATA[<p>Здравствуйте! </p><p>Как можно сделать все в одну строчку:</p><div class="quotebox"><blockquote><p>HotKey_a := RegExReplace(HotKey_a,&quot;!&quot;, &quot;Alt + &quot;)<br />HotKey_a := RegExReplace(HotKey_a,&quot;+&quot;, &quot;Shift + &quot;)<br />HotKey_a := RegExReplace(HotKey_a,&quot;^&quot;, &quot;Ctrl +&quot;)</p></blockquote></div><p>Дабы заменяло: &quot;+&quot; на &quot;Shift +&quot;, &quot;!&quot; на &quot;Alt +&quot; и &quot;^&quot; на &quot;Ctrl +&quot;?</p><p>Напишите, пожалуйста. Спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (mtc_err)]]></author>
			<pubDate>Mon, 28 Jan 2019 10:33:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=131693#p131693</guid>
		</item>
	</channel>
</rss>
