<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Перемещение по разделам в переменной]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=5691</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5691&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Перемещение по разделам в переменной».]]></description>
		<lastBuildDate>Sun, 03 Apr 2011 20:12:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Перемещение по разделам в переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=47351#p47351</link>
			<description><![CDATA[<p>Все ОК! Спасибо большое!</p><p>А я че токо не мудрил с этими перемещениями.</p>]]></description>
			<author><![CDATA[null@example.com (avens)]]></author>
			<pubDate>Sun, 03 Apr 2011 20:12:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=47351#p47351</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Перемещение по разделам в переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=47345#p47345</link>
			<description><![CDATA[<div class="codebox"><pre><code>   Var = a|b|c|d|e|f|g|h|i|

   Var := SubStr(Var, 1, -1)  ; отрезаем последний символ
   StringSplit, Var, Var, |   ; Var1 = a, Var2 = b ..., Var0 = 9 — количество ячеек
   Cell := Var0+1
   Return

Left::
Right::
   Cell += A_ThisHotkey = &quot;Left&quot; ? -1 : 1
   MsgBox, % (Cell &gt;= Var0+1 || Cell &lt; 1) ? &quot;Конец&quot; : Var%Cell%
   Cell := Cell &lt; 1 ? 0 : Cell &gt; Var0+1 ? Var0+1 : Cell
   Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 03 Apr 2011 17:16:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=47345#p47345</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Перемещение по разделам в переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=47338#p47338</link>
			<description><![CDATA[<p>Это, только нужно что бы по началу при нажатии назад, тоесть Left начиналось с последней ячейки где в данном случае находится &quot;i&quot;,<br />и доходя до последней ячейке на другую сторону уже не переходило.<br />Типа вот так:</p><p>Var = a|b|c|d|e|f|g|h|i|</p><p>По нажатию Left&nbsp; &quot;i&quot; потом &quot;h&quot; потом ... потом &quot;a&quot; потом MsgBox Конец<br />а если нажимать в другую сторону Right, то по порядку в другую сторону и после &quot;i&quot; MsgBox Конец</p>]]></description>
			<author><![CDATA[null@example.com (avens)]]></author>
			<pubDate>Sun, 03 Apr 2011 12:20:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=47338#p47338</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Перемещение по разделам в переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=47336#p47336</link>
			<description><![CDATA[<p>Может так?</p><div class="codebox"><pre><code>Var = a|b|c|d|e|f|g|h|i|
Count = 9
 
Left::
count -= 1
If count &lt; 1
  count := 9
loop, parse, var, |
  if (a_index = count)
    MsgBox %a_loopfield%
return
 
 
Right::
count += 1
If count &gt; 9
  count := 1
loop, parse, var, |
  if (a_index = count)
    MsgBox %a_loopfield%
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (InFlames)]]></author>
			<pubDate>Sun, 03 Apr 2011 11:57:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=47336#p47336</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Перемещение по разделам в переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=47335#p47335</link>
			<description><![CDATA[<p>Var = a|b|c|d|e|f|g|h|i| &lt;-- Вот <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (avens)]]></author>
			<pubDate>Sun, 03 Apr 2011 11:57:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=47335#p47335</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Перемещение по разделам в переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=47334#p47334</link>
			<description><![CDATA[<p>А где находится зад?</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Sun, 03 Apr 2011 11:47:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=47334#p47334</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Перемещение по разделам в переменной]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=47333#p47333</link>
			<description><![CDATA[<p>Здравствуйте!<br />Как можно сделать, что бы нажимая кнопки Left и Right, перемещаться по очереди влево или вправо начиная с зади по ячейкам (&quot;|ячейка|&quot;) в переменной &quot;Var&quot;, и выводить результат в MsgBox?</p><br /><div class="codebox"><pre><code>Var = a|b|c|d|e|f|g|h|i|

Left::

MsgBox %%
return


Right::

MsgBox %%
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (avens)]]></author>
			<pubDate>Sun, 03 Apr 2011 11:33:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=47333#p47333</guid>
		</item>
	</channel>
</rss>
