<?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=16050&amp;type=atom" />
	<updated>2021-02-09T03:16:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16050</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146061#p146061" />
			<content type="html"><![CDATA[<p>Так как формат ini весьма убогий, то я бы не советовал получать данные такого ini через iniread, section.<br />А получать через fileread, после чего регуляркой отсекать нужный блок и создавать массив со всеми значениями key=value.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2021-02-09T03:16:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146061#p146061</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146049#p146049" />
			<content type="html"><![CDATA[<p>У меня работает с таким ini:<br /></p><div class="codebox"><pre><code>[player]
JooSS =1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-08T17:28:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146049#p146049</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146048#p146048" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Не работает.</p>]]></content>
			<author>
				<name><![CDATA[Vsevolod]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40918</uri>
			</author>
			<updated>2021-02-08T17:01:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146048#p146048</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145846#p145846" />
			<content type="html"><![CDATA[<p>А лучше так:<br /></p><div class="codebox"><pre><code>Gui Add, Edit, x16 y8 w210 h21 vKeyEntered, %KeyEntered%
Gui Add, Button, gSearch x48 y40 w141 h23, Узнать значение
Menu:
Gui Show, w237 h65, Window
Return

Search:
Gui, Submit
iniread, section, setting.ini, player
RegExMatch(section, &quot;m`a)^&quot; . KeyEntered . &quot;=\K\V*&quot;, Count)
MsgBox, В параметре %KeyEntered% установленно значение %Count%
goto, Menu
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-04T18:45:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145846#p145846</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145845#p145845" />
			<content type="html"><![CDATA[<p>Можно так:<br /></p><div class="codebox"><pre><code>Gui Add, Edit, x16 y8 w210 h21 vKeyEntered, %KeyEntered%
Gui Add, Button, gSearch x48 y40 w141 h23, Узнать значение
Menu:
Gui Show, w237 h65, Window
Return

Search:
Gui, Submit
iniread, section, setting.ini, player
RegExMatch(section, KeyEntered . &quot;=\K.*&quot;, Count)
MsgBox, В параметре %KeyEntered% установленно значение %Count%
goto, Menu
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-04T18:43:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145845#p145845</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145844#p145844" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong><br />Понял, спасибо</p>]]></content>
			<author>
				<name><![CDATA[Vsevolod]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40918</uri>
			</author>
			<updated>2021-02-04T18:38:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145844#p145844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145843#p145843" />
			<content type="html"><![CDATA[<p>Ну да, это работает с операндами в выражениях, но не в команде <em>IniRead</em>.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2021-02-04T18:32:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145843#p145843</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145841#p145841" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong><br />Он находит такой раздел даже если всё прописано с маленькой буквы, а мне это не нужно.</p>]]></content>
			<author>
				<name><![CDATA[Vsevolod]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40918</uri>
			</author>
			<updated>2021-02-04T18:21:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145841#p145841</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145840#p145840" />
			<content type="html"><![CDATA[<p>А в чём вопрос-то?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2021-02-04T16:22:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145840#p145840</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145839#p145839" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong><br />В приведённом мною примере это работает, но что делать в таком случае?<br />Скрипт:<br /></p><div class="codebox"><pre><code>#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1
Menu:
try Gui Add, Edit, x16 y8 w210 h21 vKeyEntered, %KeyEntered%
Gui Add, Button, gSearch x48 y40 w141 h23, Узнать значение
Gui Show, w237 h65, Window
Return

Search:
Gui, Submit
iniread, Count, setting.ini, player, %KeyEntered%
msgbox,В параметре %KeyEntered% установленно значение %Count%
goto, Menu
return</code></pre></div><p>setting.ini<br /></p><div class="codebox"><pre><code>[player]
JooSS =1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Vsevolod]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40918</uri>
			</author>
			<updated>2021-02-04T15:37:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145839#p145839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145838#p145838" />
			<content type="html"><![CDATA[<p>Во второй строчке попробуйте вместо &quot;равно&quot; поставить знак &quot;точно равно&quot;.<br /><em><strong>==</strong></em><br />Оригинал статьи в AutoHotkey.chm: &quot;Variables and Expressions&quot;, в содержании - &quot;Variables and Expressions&quot;.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2021-02-04T15:12:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145838#p145838</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145837#p145837" />
			<content type="html"><![CDATA[<p>Можно добавить чувствительность к регистру строк, &quot;StringCaseSense&quot;. Можно строку записать через Password := &quot;jooss&quot; и сравнивать оператором &quot;==&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Botsy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41069</uri>
			</author>
			<updated>2021-02-04T15:11:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145837#p145837</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Проблема с заглавными буквами в переменных]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145836#p145836" />
			<content type="html"><![CDATA[<p>Всем привет, сегодня столкнулся с проблемой что заглавные буквы в переменных могут читаться и как маленькие. Вот простой пример:<br /></p><div class="codebox"><pre><code>Password = jooss
UserPassword = JooSS
If Password contains %UserPassword%
{
goto, script
}
else
{
MsgBox,16,Ошибка,Пароль неверен!
ExitApp
}
script:
MsgBox,Скрипт запущен
ruturn</code></pre></div><p>Он считает что пароль введён верно потому-что не учитывает заглавные буквы. Как это исправить?</p>]]></content>
			<author>
				<name><![CDATA[Vsevolod]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40918</uri>
			</author>
			<updated>2021-02-04T15:00:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145836#p145836</id>
		</entry>
</feed>
