<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: RegExReplace переменные в одной строчке]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14519&amp;type=atom" />
	<updated>2019-01-31T20:14:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14519</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131846#p131846" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong><br />почему игнорять не отвечають ?????????????????????????</p>]]></content>
			<author>
				<name><![CDATA[LAGARIUM]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39921</uri>
			</author>
			<updated>2019-01-31T20:14:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131846#p131846</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131845#p131845" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[MandarinKa02]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34409</uri>
			</author>
			<updated>2019-01-31T19:46:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131845#p131845</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131843#p131843" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[LAGARIUM]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39921</uri>
			</author>
			<updated>2019-01-31T18:51:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131843#p131843</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131842#p131842" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>, все, спасибо Вам большое! Все работает как нужно. </p>]]></content>
			<author>
				<name><![CDATA[mtc_err]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39106</uri>
			</author>
			<updated>2019-01-31T18:38:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131842#p131842</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131743#p131743" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-01-29T19:12:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131743#p131743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131740#p131740" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mtc_err]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39106</uri>
			</author>
			<updated>2019-01-29T15:36:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131740#p131740</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131738#p131738" />
			<content type="html"><![CDATA[<p>Все не совсем так..</p>]]></content>
			<author>
				<name><![CDATA[mtc_err]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39106</uri>
			</author>
			<updated>2019-01-29T14:40:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131738#p131738</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131700#p131700" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-01-28T19:07:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131700#p131700</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExReplace переменные в одной строчке]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131697#p131697" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-01-28T16:01:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131697#p131697</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: RegExReplace переменные в одной строчке]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131693#p131693" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mtc_err]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39106</uri>
			</author>
			<updated>2019-01-28T10:33:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131693#p131693</id>
		</entry>
</feed>
