<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Условие запуска команды]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12463&amp;type=atom" />
	<updated>2017-02-18T16:57:08Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12463</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условие запуска команды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112796#p112796" />
			<content type="html"><![CDATA[<p>И все-таки через массивы, хотелось бы без них как-нибудь обойтись, не получилось.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-02-18T16:57:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112796#p112796</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условие запуска команды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112795#p112795" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>array := {a: &quot;test&quot;, b: &quot;test2&quot;, c: &quot;test3&quot;}
list = a,b,test2,d
For key, value in array
{
   if value in %list%
      msgbox % key
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-02-18T16:46:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112795#p112795</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условие запуска команды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112794#p112794" />
			<content type="html"><![CDATA[<p>Хочу записать переменную, где много других переменных, и если хоть одна переменная совпадет, то запускается команда. А почему через &quot;If var in&quot;? - Не хочу, чтобы сложно было.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-02-18T16:19:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112794#p112794</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условие запуска команды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112793#p112793" />
			<content type="html"><![CDATA[<p>Объясните словами, что вы хотите и почему именно через конструкцию If var in?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-02-18T16:11:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112793#p112793</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условие запуска команды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112789#p112789" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, немного не так. Тут:<br /></p><div class="codebox"><pre><code>var = 
(
string1,string2,string3,string4,
string5,string6,string7,string8,
)

If var in string7,string8

MsgBox работает
return</code></pre></div><p>, что надо поправить, чтобы работало?<br /><strong>serzh82saratov</strong>, мне надо, чтобы команда работала по условию &quot;If var in&quot;, а не с другими способами.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-02-18T15:56:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112789#p112789</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условие запуска команды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112783#p112783" />
			<content type="html"><![CDATA[<p>Задача не ясна, может так надо, а может ещё как.<br /></p><div class="codebox"><pre><code>
var = 
(
string1
string2
)

If var contains string1,string2
	MsgBox работает
return
</code></pre></div><div class="codebox"><pre><code>var = 
(
string1
string2
)

If var ~= &quot;m`a)^(string1|string2)$&quot;
	MsgBox работает
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-02-18T13:19:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112783#p112783</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условие запуска команды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112778#p112778" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong>, IfInString / IfNotInString - немного другие комманды.<br /><strong>svoboden</strong> <br /></p><div class="codebox"><pre><code>var = 
(
string1
string2
)

If var in test,string1`nstring2,test1
    
MsgBox работает
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-02-18T12:01:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112778#p112778</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условие запуска команды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112767#p112767" />
			<content type="html"><![CDATA[<p>У нас не Pascal, AHK совсем другой язык.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-02-18T09:37:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112767#p112767</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условие запуска команды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112761#p112761" />
			<content type="html"><![CDATA[<p>Сначала почитайте документацию:<br /></p><ul><li><p>IfInString / IfNotInString;</p></li><li><p>InStr().</p></li></ul>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-02-18T06:15:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112761#p112761</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Условие запуска команды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112756#p112756" />
			<content type="html"><![CDATA[<p>Кто знает, почему не работает условие? Спасибо!<br /></p><div class="codebox"><pre><code>var = 
(
string1
string2
)

If var in string1,string2
    
MsgBox работает
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-02-18T02:43:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112756#p112756</id>
		</entry>
</feed>
