<?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=9149&amp;type=atom" />
	<updated>2019-04-09T20:33:04Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9149</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133462#p133462" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>StringCaseSense, Locale</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-04-09T20:33:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133462#p133462</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133460#p133460" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Irbis пишет:</cite><blockquote><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><div class="quotebox"><blockquote><p>Таким же образом есть ли обозначение в AHK гласных \ согласных букв?</p></blockquote></div><p>Нет. Создайте свой массив.</p></blockquote></div><br /><p>Можно без массива, лишь проверить &quot;строку гласных&quot; на наличие в ней нужной буквы с помощью InStr()<br /></p><div class="codebox"><pre><code>Word = Фразеологизм
Loop, parse, word
  msg .= A_LoopField . &quot; - &quot; . IsVocal(A_LoopField) . &quot;`n&quot;
MsgBox % msg

IsVocal(a)
{
   Return (InStr(&quot;АОУЫЭЯЁЮИЕаоуыэяёюие&quot;, a) != 0)
}</code></pre></div></blockquote></div><p>Только так <strong>ъ</strong> и <strong>ь</strong> не отличить от согласных.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2019-04-09T20:29:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133460#p133460</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79223#p79223" />
			<content type="html"><![CDATA[<p>Ок <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2014-01-15T17:41:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79223#p79223</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79213#p79213" />
			<content type="html"><![CDATA[<p>Грубо говоря, я это и имел ввиду.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-15T15:40:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79213#p79213</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79212#p79212" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><div class="quotebox"><blockquote><p>Таким же образом есть ли обозначение в AHK гласных \ согласных букв?</p></blockquote></div><p>Нет. Создайте свой массив.</p></blockquote></div><br /><p>Можно без массива, лишь проверить &quot;строку гласных&quot; на наличие в ней нужной буквы с помощью InStr()<br /></p><div class="codebox"><pre><code>Word = Фразеологизм
Loop, parse, word
  msg .= A_LoopField . &quot; - &quot; . IsVocal(A_LoopField) . &quot;`n&quot;
MsgBox % msg

IsVocal(a)
{
   Return (InStr(&quot;АОУЫЭЯЁЮИЕаоуыэяёюие&quot;, a) != 0)
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2014-01-15T13:36:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79212#p79212</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79204#p79204" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><div class="quotebox"><blockquote><p>Знания конечно поражают!</p></blockquote></div><p>Таких по пальцам. Только им, за все халявно полученные знания и жизнь этого форума, ещё раз скажу, большое спасибо!</p></blockquote></div><p>Вам тоже благодарность! Работу и помощь большую выполняете!</p>]]></content>
			<author>
				<name><![CDATA[Qweasd123]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31279</uri>
			</author>
			<updated>2014-01-13T21:19:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79204#p79204</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79202#p79202" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Знания конечно поражают!</p></blockquote></div><p>Таких по пальцам. Только им, за все халявно полученные знания и жизнь этого форума, ещё раз скажу, большое спасибо!</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-13T21:14:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79202#p79202</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79200#p79200" />
			<content type="html"><![CDATA[<p>Знания конечно поражают! Спасибо , помог!</p>]]></content>
			<author>
				<name><![CDATA[Qweasd123]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31279</uri>
			</author>
			<updated>2014-01-13T20:53:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79200#p79200</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79199#p79199" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>SetFormat, integer, H      ; просто для проверки
MsgBox, % ToBin(0xABCD)
MsgBox, % FromBin(&quot;1010101111001101&quot;)   ; обязательно в кавычках

ToBin(Number)
{
   While Number
      bin := (Number&amp;1 ? 1 : 0) . bin, Number &gt;&gt;= 1
   Return bin
}

FromBin(bin)
{
   Loop, parse, bin
      Num := (Num ? Num &lt;&lt; 1 : 0)|A_LoopField
   Return Num
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-13T20:51:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79199#p79199</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79198#p79198" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>В двоичной системе у нечётных первый бит всегда 1, у чётных 0. Выражением &amp; 1 (&amp; — логическое &quot;и&quot;) отсекаем первый бит.</p></blockquote></div><p>А есть ли такой же короткий код для перевода систем исчисления? Из двоичной в десятичную например</p>]]></content>
			<author>
				<name><![CDATA[Qweasd123]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31279</uri>
			</author>
			<updated>2014-01-13T20:50:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79198#p79198</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79197#p79197" />
			<content type="html"><![CDATA[<p>В двоичной системе у нечётных первый бит всегда 1, у чётных 0. Выражением &amp; 1 (&amp; — логическое &quot;и&quot;) отсекаем первый бит.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-13T20:49:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79197#p79197</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79196#p79196" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Mod(Dividend, Divisor)</p></blockquote></div><p>Имхо, излишне.</p><div class="codebox"><pre><code>Num1 := 8, Num2 := 7
MsgBox, % Num1 &amp; 1 &quot;`n&quot; Num2 &amp; 1</code></pre></div></blockquote></div><p>Тоесть если число нечетное возвращает 1, если четное 0, верно?</p><p>Интересно... Строчки было бы хорошо объяснить <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Qweasd123]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31279</uri>
			</author>
			<updated>2014-01-13T20:47:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79196#p79196</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79195#p79195" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Прикольно. А объяснить данное можете?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-13T20:46:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79195#p79195</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79194#p79194" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Mod(Dividend, Divisor)</p></blockquote></div><p>Имхо, излишне.</p><div class="codebox"><pre><code>Num1 := 8, Num2 := 7
MsgBox, % Num1 &amp; 1 &quot;`n&quot; Num2 &amp; 1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-13T20:44:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79194#p79194</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Четные \ Нечетные . Гласные \ Согласные]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79193#p79193" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Но у меня ведь не мало чисел, а если делить их то получится уйма результатов.</p></blockquote></div><p>Не бывает всё и сразу. Надо перебирать.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-13T20:43:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79193#p79193</id>
		</entry>
</feed>
