<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Разделение 1 переменной на несколько]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12669</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12669&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Разделение 1 переменной на несколько».]]></description>
		<lastBuildDate>Thu, 11 May 2017 14:12:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115793#p115793</link>
			<description><![CDATA[<p><strong>Alectric</strong>, <strong>stealzy</strong>, пора прекращать оффтопить.</p>]]></description>
			<author><![CDATA[null@example.com (JSmаn)]]></author>
			<pubDate>Thu, 11 May 2017 14:12:13 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115793#p115793</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115791#p115791</link>
			<description><![CDATA[<p><strong>Off:</strong><br />Каждому своё. Многие любят &quot;гвозди стаместкой забивать&quot;. Да и вообще все эти компьютерные технологии...</p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Thu, 11 May 2017 13:22:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115791#p115791</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115780#p115780</link>
			<description><![CDATA[<p>Ну просто не любитель гвозди стаместкой забивать. Тем более когда молоток под рукой.<br />КМК, код без RegEx проще для понимания и маштабирования.</p>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Thu, 11 May 2017 07:26:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115780#p115780</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115779#p115779</link>
			<description><![CDATA[<p><strong>Off:</strong><br /><strong>stealzy</strong>, чего эт ты так протестуешь то? Не хочешь об этом поговорить?</p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Thu, 11 May 2017 02:03:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115779#p115779</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115778#p115778</link>
			<description><![CDATA[<p>Функцией:<br /></p><div class="codebox"><pre><code>varsString := &quot;1♦45♦Hello world!♦4♦95&quot;
varArr := ParseString♦(varsString)
MsgBox % varArr[3]

ParseString♦(super_string) {
	arr := []
	Loop parse, super_string, ♦
		arr[A_Index] := A_LoopField
	Return arr
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Wed, 10 May 2017 19:30:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115778#p115778</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115777#p115777</link>
			<description><![CDATA[<p>И тут вы со своими регекспами. Тут они абсолютно не нужны.<br /></p><div class="codebox"><pre><code>var := [], varsString := &quot;1♦45♦33♦4♦95&quot;
Loop parse, varsString, ♦
	var[A_Index] := A_LoopField

MsgBox % var[3]</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Wed, 10 May 2017 19:23:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115777#p115777</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115775#p115775</link>
			<description><![CDATA[<p>Да вроде больше ничего.</p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Wed, 10 May 2017 16:14:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115775#p115775</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115773#p115773</link>
			<description><![CDATA[<p><strong>Alectric</strong><br />Хах , а кроме?</p>]]></description>
			<author><![CDATA[null@example.com (cahtbap1)]]></author>
			<pubDate>Wed, 10 May 2017 15:59:56 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115773#p115773</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115772#p115772</link>
			<description><![CDATA[<p>Пренебрёг форматированием, и твой код тяжело прочитать.</p><p>Решается в пару пробелов:<br /></p><div class="codebox"><pre><code>print(x3)
{
  if x3 not contains ¦
  {
    send,%x3%
    return
  }
  StringReplace, _, x3, ¦,, UseErrorLevel
  e:=Mod(errorlevel,2)
  if e = 1
  {
    MsgBox Error¦
    return
  }
  loop
  {
    RegExMatch(x3,&quot;([^¦]*)¦([^¦]*)¦(.*)&quot;, x)
    Send,%x1%
    sleep,%x2%
    if x3 not contains ¦
    {
      Send, %x3%
      return
    }
  }
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Wed, 10 May 2017 15:57:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115772#p115772</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115771#p115771</link>
			<description><![CDATA[<div class="quotebox"><cite>Alectric пишет:</cite><blockquote><p>Чтобы случайно не изменить исходные данные. Если они потребуются в дальнейшем.</p></blockquote></div><p>Понятно <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /> , а что еще я сделал не так?<br /></p><div class="codebox"><pre><code>y=`nyea{!}♦1000♦its working{! 5}♦700♦ITS WORKING{! 8}♦400♦`nTHANKS ALECTRIC{! 20}♦400♦`nTHANKS ALECTRIC{! 20}♦400♦`nTHANKS ALECTRIC{! 20}
print(y)
print(y)
return
print(x3)
{
if x3 not contains ♦
{
send,%x3%
return
}
StringReplace, _, x3, ♦,, UseErrorLevel
e:=Mod(errorlevel,2)
if e = 1
{
MsgBox Error♦
return
}
loop
{
RegExMatch(x3,&quot;([^♦]*)♦([^♦]*)♦(.*)&quot;, x)
Send,%x1%
sleep,%x2%
if x3 not contains ♦
{
Send, %x3%
return
}
}
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (cahtbap1)]]></author>
			<pubDate>Wed, 10 May 2017 15:41:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115771#p115771</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115770#p115770</link>
			<description><![CDATA[<p>Чтобы случайно не изменить исходные данные. Если они потребуются в дальнейшем.<br /></p><div class="codebox"><pre><code>a=10

f1(a)
msgbox,% a
f2(a)
msgbox,% a



f1(a)
{
  a=20
}

f2(byref a)
{
  a=20
}

</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Wed, 10 May 2017 15:05:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115770#p115770</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115769#p115769</link>
			<description><![CDATA[<p>Спасибо.<br /></p><div class="quotebox"><cite>Alectric пишет:</cite><blockquote><p>Для X ByRef не нужен.</p></blockquote></div><p>Почему нет?</p>]]></description>
			<author><![CDATA[null@example.com (cahtbap1)]]></author>
			<pubDate>Wed, 10 May 2017 15:03:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115769#p115769</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115768#p115768</link>
			<description><![CDATA[<div class="codebox"><pre><code>x=123¦100¦223¦2222¦324
RegExMatch(x,&quot;([^¦]*)¦([^¦]*)¦(.*)&quot;, find)
msgbox,% find1 &quot;`n&quot; find2 &quot;`n&quot; find3 &quot;`n&quot;
</code></pre></div><div class="quotebox"><cite>cahtbap1 пишет:</cite><blockquote><p>Get(ByRef a,ByRef b,ByRef c,ByRef x)</p></blockquote></div><p>Для X ByRef не нужен.</p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Wed, 10 May 2017 14:43:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115768#p115768</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115767#p115767</link>
			<description><![CDATA[<p>Немного разобрался с функциями.<br /></p><div class="codebox"><pre><code>
x=123♦100♦223♦2222♦324
StringReplace, _, x, ♦,, UseErrorLevel
e:=Mod(errorlevel,2)
if e = 1
	return
Get(a,b,c,x)
MsgBox,%a%`n%b%`n%c%
return
Get(ByRef a,ByRef b,ByRef c,ByRef x)
{
a:=RegExReplace(x,&quot;♦.*&quot;,&quot;&quot;)
c:=RegExReplace(x,a &quot;♦&quot;,&quot;&quot;)
b:=RegExReplace(c,&quot;♦.*&quot;,&quot;&quot;)
c:=RegExReplace(c,b &quot;♦&quot;,&quot;&quot;)
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (cahtbap1)]]></author>
			<pubDate>Wed, 10 May 2017 14:25:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115767#p115767</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Разделение 1 переменной на несколько]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115766#p115766</link>
			<description><![CDATA[<p><strong>ypppu</strong><br />Да , верно.</p>]]></description>
			<author><![CDATA[null@example.com (cahtbap1)]]></author>
			<pubDate>Wed, 10 May 2017 14:23:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115766#p115766</guid>
		</item>
	</channel>
</rss>
