<?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=15928&amp;type=atom" />
	<updated>2020-12-18T23:01:21Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15928</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка переменной на наличие кириллицы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144273#p144273" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong></p><p>Ну, как видим тут есть те, кто утверждает обратное.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-12-18T23:01:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144273#p144273</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка переменной на наличие кириллицы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144270#p144270" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Phoenixxx_Czar пишет:</cite><blockquote><p><strong>__Михаил__</strong>, если вашу функцию вызвать с параметром &quot;#s&quot;, то вернет &quot;#s&quot;. Данного символа нет в регулярном выражении.</p></blockquote></div><p>Знакомая функция. Уверен что автор сделал её только для контрола Hotkey, а &quot;#&quot; в нём быть не может.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-12-18T19:50:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144270#p144270</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка переменной на наличие кириллицы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144269#p144269" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong></p><p>Взял давно с форума, меня полностью устраивает. Если вас нет - доработайте.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-12-18T18:40:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144269#p144269</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка переменной на наличие кириллицы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144268#p144268" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong>, если вашу функцию вызвать с параметром &quot;#s&quot;, то вернет &quot;#s&quot;. Данного символа нет в регулярном выражении.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2020-12-18T17:47:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144268#p144268</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка переменной на наличие кириллицы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144267#p144267" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong></p><p>А что с &#039;#&#039; не так? Хороший символ - используйте на здоровье.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-12-18T17:17:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144267#p144267</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка переменной на наличие кириллицы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144250#p144250" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong>, а как же &quot;#&quot;?</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2020-12-18T10:11:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144250#p144250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка переменной на наличие кириллицы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144242#p144242" />
			<content type="html"><![CDATA[<p><strong>Vsevolod</strong></p><p>Для сохранения в файл настроек и дальнейшего использования для перехвата, лучше использовать конвертер:</p><div class="codebox"><pre><code>FormatHotkey(Hotkey)
{
 RegExMatch(Hotkey, &quot;S)^([\^\+!]*)(.*?)$&quot;, K)
 If (StrLen(K2) = 1)
  Return K1 . Format(&quot;sc{:X}&quot;, GetKeySC(K2))
 Return Hotkey
}</code></pre></div><p>Сам так же их начал сохранять, всё работает не зависимо от языка ввода. В &#039;Hotkey&#039; будет виден и русский текст но запишет в настройки как надо.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-12-17T17:50:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144242#p144242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка переменной на наличие кириллицы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144238#p144238" />
			<content type="html"><![CDATA[<p>Гляньте <a href="http://forum.script-coding.com/viewtopic.php?id=14032">http://forum.script-coding.com/viewtopic.php?id=14032</a>.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-12-17T15:11:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144238#p144238</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка переменной на наличие кириллицы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144237#p144237" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong><br />Нашёл только это <a href="http://forum.script-coding.com/viewtopic.php?id=12329">http://forum.script-coding.com/viewtopic.php?id=12329</a> , но там замена и в открытом файле, а мне нужно просто проверку в переменной скрипта. Да и как это работает я даже близко не понял.</p>]]></content>
			<author>
				<name><![CDATA[Vsevolod]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40918</uri>
			</author>
			<updated>2020-12-17T13:37:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144237#p144237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка переменной на наличие кириллицы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144236#p144236" />
			<content type="html"><![CDATA[<p>Поищите по форуму по словам &quot;кириллица&quot; и &quot;Regex&quot;.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-12-17T13:08:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144236#p144236</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Проверка переменной на наличие кириллицы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144235#p144235" />
			<content type="html"><![CDATA[<p>Здравствуйте, в моём скрипте есть настройка горячих клавиш, но HotKey Box пропускает кириллицу, а потом скрипт выдаёт ошибку. Сделайте пожалуйста проверку наличия букв русского языка, и при обнаружении выдачу ошибки с определённым текстом. Вот кусок скрипта. Надеюсь на вашу помощь.</p><div class="codebox"><pre><code>Gui Show, w415 h337, Настройки
Gui Font,, Microsoft Sans Serif
Gui Add, Text, x0 y56 w134 h23 +0x200, Автостроитель прямо
Gui Font
Gui Add, Hotkey, x136 y56 w120 h21 vMyLabel
Gui Font,, Microsoft Sans Serif
Gui Add, Text, x0 y88 w158 h23 +0x200, Автостроитель диагональ
Gui Font
Gui Add, Hotkey, x160 y88 w120 h21 vMyLabel1
Gui Font,, Microsoft Sans Serif
Gui Add, Text, x0 y120 w41 h23 +0x200, Меню
Gui Font
Gui Add, Hotkey, x40 y120 w120 h21 vMyLabel2
Gui Font,, Microsoft Sans Serif
Gui Add, Text, x0 y152 w78 h23 +0x200, Авто разбег
Gui Font
Gui Add, Hotkey, x80 y152 w120 h21 vMyLabel3
Gui Font,, Microsoft Sans Serif
Gui Add, Text, x0 y184 w111 h23 +0x200, Вылет с сервера
Gui Font
Gui Add, Hotkey, x112 y184 w120 h21 vMyLabel4
Gui Font,, Microsoft Sans Serif
Gui Add, Text, x0 y216 w97 h23 +0x200, Спящий режим
Gui Font
Gui Add, Hotkey, x104 y216 w120 h21 vMyLabel5
Gui Font,, Microsoft Sans Serif
Gui Add, Text, x0 y248 w67 h23 +0x200, Хитбоксы
Gui Font
Gui Add, Hotkey, x72 y248 w120 h21 vMyLabel6
Gui Font
Gui Add, Button, gBindSave x80 y312 w143 h23, Сохранить и применить
return

BindSave:
Gui Submit
Gui Destroy
return</code></pre></div><p>И если не сложно, сделайте проверку на наличие двух одинаковых горячих клавиш.</p>]]></content>
			<author>
				<name><![CDATA[Vsevolod]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40918</uri>
			</author>
			<updated>2020-12-17T11:50:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144235#p144235</id>
		</entry>
</feed>
