<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: RegExMatch | Caps Lock]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12026&amp;type=atom" />
	<updated>2016-09-20T11:17:18Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=12026</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch | Caps Lock]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107874#p107874" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Понял</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-09-20T11:17:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107874#p107874</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch | Caps Lock]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107872#p107872" />
			<content type="html"><![CDATA[<p><strong>alekksss</strong>, если код используется для автоматизации игр, размещаем его здесь, не важно, чего он касается. Попробуйте запомнить это правило.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-09-20T10:57:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107872#p107872</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch | Caps Lock]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107865#p107865" />
			<content type="html"><![CDATA[<p><strong>stealzy</strong>, нет. Для игры нужно было. Но создал тут, тк вопрос касался регулярки, а не игры</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-09-20T10:02:15Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107865#p107865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch | Caps Lock]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107861#p107861" />
			<content type="html"><![CDATA[<p>Нашел идельное решение.<br /></p><div class="codebox"><pre><code>capsMsg := RegExReplace(ochatMsg, &quot;[^A-ZА-ЯЁ]&quot;)
		nocapsMsg := RegExReplace(ochatMsg, &quot;[^а-яa-zё]&quot;)
;		StringUpper, CapsText, ochatMsg ochatMsg == CapsText &amp;&amp; 
		if(strlen(capsMsg) &lt; strlen(nocapsMsg) || strlen(capsMsg) &lt; 4)
			continue</code></pre></div><p>Сначала получаем все символы капсом ([^A-ZА-ЯЁ])<br />Затем всё что в нижнем регистре ([^а-яa-zё])<br />Получаем ЧИСТЫЙ текст. Без пробелов, символов и прочего мусора.<br />Мне требовалось что если больше чем половина символов капс - действие.<br />Разработчику спасибо. Натолкнул на мысль.</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-09-20T06:16:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107861#p107861</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch | Caps Lock]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107857#p107857" />
			<content type="html"><![CDATA[<p>Тогда ещё надо добавить проверку присутствия букв, так-как:<br /></p><div class="quotebox"><blockquote><p>- Если String - цыфры, реагирует<br />- Если String - символы - реагирует</p></blockquote></div><div class="codebox"><pre><code>String := &quot;41&quot;
StringUpper StringUpper, String
if (String == StringUpper)
	MsgBox upper</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-09-19T21:09:57Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107857#p107857</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch | Caps Lock]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107855#p107855" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong> Вроде то что надо. Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-09-19T20:46:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107855#p107855</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch | Caps Lock]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107854#p107854" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>String := &quot;STRING CAPS LOCK **!@41&quot;
if RegExMatch(String, &quot;^[^a-zёа-я]*[A-ZЁА-Я][^a-zёа-я]*$&quot;) != 0
   msgbox upper</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-09-19T20:42:44Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107854#p107854</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch | Caps Lock]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107853#p107853" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>А что надо?</p></blockquote></div><p> Чтобы реагировал только на капс. Если сообщение капсом - действие. Только текст.</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-09-19T20:41:10Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107853#p107853</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch | Caps Lock]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107852#p107852" />
			<content type="html"><![CDATA[<p>А что надо?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-09-19T20:33:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107852#p107852</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch | Caps Lock]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107851#p107851" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong> Я пытался идти этим путем. Проблемы следующие:<br />- Если String - цыфры, реагирует<br />- Если String - символы - реагирует</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-09-19T20:32:38Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107851#p107851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch | Caps Lock]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107849#p107849" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>String := &quot;STRING CAPS LOCK **!@41&quot;
if RegExMatch(String, &quot;^[^a-zёа-я]+$&quot;) != 0
   msgbox upper</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-09-19T20:21:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107849#p107849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: RegExMatch | Caps Lock]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107848#p107848" />
			<content type="html"><![CDATA[<p>Приветствую.<br />Столкнулся с такой проблемой. Мой скрипт читает опеределенный текст. Допустим:<br /></p><div class="codebox"><pre><code>String := &quot;STRING CAPS LOCK **!@41&quot;</code></pre></div><p>Мне нужно определить, является строка в верхнем регистре. Проблема в том что:<br /></p><div class="codebox"><pre><code>RegExMatch(String, &quot;([A-ZА-Я]+)&quot;)</code></pre></div><p>Находит только первое слово, если добавить проблел, то всё до какого-либо символа. Нужно чтобы скрипт читал всю строку не обращая внимания на символы и пробел.<br />ПС: Если в строке есть символы нижнего регистра - ничего не должно происходить.</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-09-19T19:13:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107848#p107848</id>
		</entry>
</feed>
