<?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=12476&amp;type=atom" />
	<updated>2017-02-20T18:50:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12476</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112961#p112961" />
			<content type="html"><![CDATA[<p><strong>becauseim</strong><br />Убрал clipboard = ..., всё сработало. Что-то не так делаете. Возможно где-то пробел затесался (браузерный копипаст подвёл или ещё что).<br />Такое представление устроит?:<br /></p><div class="codebox"><pre><code>Strings =
(
строка 1
строка 2
строка 3a
)

If RegExMatch(clipboard, &quot;Om`a)^(&quot; StrReplace(RegexReplace(Strings, &quot;([\\$#(\)*+.[\]?^{\}|])&quot;, &quot;\$1&quot;), &quot;`n&quot;, &quot;|&quot;) &quot;)$&quot;)
  MsgBox, Соответствия обнаружены!
Else
  MsgBox, Соответствия не обнаружены!</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-02-20T18:50:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112961#p112961</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112960#p112960" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong>, без комментариев, к сожалению, не понятен принцип работы. Например, я копирую (помещаю в буфер) строку &quot;строка 2&quot;, после чего вызываю предложенный скрипт. Выходит сообщение о ненайденном соответствии.</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-02-20T18:47:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112960#p112960</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112958#p112958" />
			<content type="html"><![CDATA[<p><strong>becauseim</strong><br />Конкретно только мой пример из 5-го поста. Искомые строки перечисляются в переменной Strings. Запись в буфер (clipboard = ...) можно, естественно, удалить. Скрипт сообщает о наличие хотя бы одной строки или об отсутствии всех.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-02-20T18:41:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112958#p112958</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112957#p112957" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong>, исправил. Предложенные примеры подходят именно для строк? Если да, то как на этих примерах сопоставить переменные значения?</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-02-20T18:29:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112957#p112957</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112955#p112955" />
			<content type="html"><![CDATA[<p><strong>becauseim</strong><br /><a href="https://google.gik-team.com/?q=%D0%BF%D0%BE%D0%B4%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B0">Подстрока</a>. Ваш случай. Вот на это и нужно исправить.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-02-20T18:06:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112955#p112955</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112954#p112954" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong>, каких именно уточнений? Не понял, как использовать предложенные варианты с простым перечислением строк, без привязанных переменных значений к ним, поэтому, попробовал найти решение на англоязычных ресурсах, и вроде бы, нашел то, что мне подходит. А значения и принципиального отличия подстрок я не понял. В данном случае, я определяю открытый сайт по домену. Иногда это одно слово, иногда несколько, например: forum.script-coding.</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-02-20T18:00:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112954#p112954</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112952#p112952" />
			<content type="html"><![CDATA[<p><strong>becauseim</strong><br />Уточнений так и не последовало.<br />Если писали о подстроках, а не строках, то <span style="color: green">уточните заголовок и ТЗ</span>.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-02-20T17:35:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112952#p112952</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112916#p112916" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
f1::
Send ^{vk43} ; c
ClipWait
If InStr(clipboard, &quot;stringone&quot;)
{
	path = d:\1
	key = -b
}
else If InStr(clipboard, &quot;stringtwo&quot;)
{
	path = d:\2
	key = -c
}
else
{
	InputBox, key
	InputBox, path 
}
MsgBox % key &quot;, &quot; path
return</code></pre></div><p>Так, кажется, работает. В идеале было бы изобразить более локаничным образом, наверное, при помощи массива.</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2017-02-20T08:57:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112916#p112916</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112913#p112913" />
			<content type="html"><![CDATA[<p>И contains не ищет точные соответствия.<br />Ладно, я что-то утомился, мне уже давно всё ясно. Подождём лучше уточнений ТС.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-02-20T04:17:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112913#p112913</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112912#p112912" />
			<content type="html"><![CDATA[<p>А команда &quot;var not contains&quot;?</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-02-20T04:08:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112912#p112912</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112911#p112911" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong><br />Ну, так в этом нет никакого смысла. Это равносильно сравнению двух строк по знаку равенства.<br />Строит добавить любой символ, поменять строки местами и т.д., и получим обратный результат.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-02-20T03:54:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112911#p112911</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112910#p112910" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong>, а так, какой результат?<br /></p><div class="codebox"><pre><code>clipboard =
(
stringone
stringtwo
)

if clipboard not in stringone`nstringtwo
   msgbox, нет
Else
   msgbox, есть</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-02-20T03:48:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112910#p112910</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112909#p112909" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong><br />Так и? Результат неверный.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-02-20T03:44:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112909#p112909</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112908#p112908" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong>,</p><div class="codebox"><pre><code>clipboard =
(
stringone
stringtwo
)

if clipboard not in stringone,`nstringtwo
   msgbox, нет
Else
   msgbox, есть</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-02-20T03:33:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112908#p112908</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Если буфер не содержит известных/перечисленных подстрок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112907#p112907" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong><br />Ну, здрасте...</p><div class="codebox"><pre><code>clipboard =
(stringone
stringtwo
)
Msgbox, % clipboard</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-02-20T03:26:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112907#p112907</id>
		</entry>
</feed>
