<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Формирование "expression"]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16960&amp;type=atom" />
	<updated>2022-02-14T14:49:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16960</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Формирование "expression"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152182#p152182" />
			<content type="html"><![CDATA[<p>По вашему каждый пользователь обязан знать язык программирования? Нет, это вы должны добиться того, чтобы ваша программа считывала настройки таким образом чтобы их можно было применить.<br />AHK не поддерживает прямого динамического подставленния переменных с их дальнейшим выполнением как в других языках (например &#039;Eval&#039; / &#039;Exec&#039; в Питоне).</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-02-14T14:49:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152182#p152182</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Формирование "expression"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152177#p152177" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong>, есть текстовый файл. В нем задается условие пользователем<br /></p><div class="codebox"><pre><code>$Тест макроса If
Macros{&quot;n&quot;:&quot;If&quot;,&quot;exp&quot;:&quot;3&gt;4&quot;,&quot;tru&quot;:&quot;Привет&quot;,&quot;fal&quot;:&quot;Пока&quot;}
</code></pre></div><p>И нужно что бы exp скрипт понимал как условие, а не как текст.</p>]]></content>
			<author>
				<name><![CDATA[andrey.a.polyakov.b2c]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42228</uri>
			</author>
			<updated>2022-02-14T07:09:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152177#p152177</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Формирование "expression"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152149#p152149" />
			<content type="html"><![CDATA[<p><strong>andrey.a.polyakov.b2c</strong></p><p>Напишите конкретно что нужно получить в итоге. В коде &#039;if stroka&#039; вернёт &#039;True&#039; (истина) - это неверный подход, так как нет условия проверки кроме как наличие данных в строке.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-02-11T14:52:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152149#p152149</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Формирование "expression"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152147#p152147" />
			<content type="html"><![CDATA[<p>AHK не может воспринимать строку, как код. Решение зависит от степени сложности вводимых выражений. Если всегда такого типа, как &quot;5 &lt; 3&quot;, тогда можно обойтись просто парсингом.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-02-11T13:26:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152147#p152147</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Формирование "expression"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152145#p152145" />
			<content type="html"><![CDATA[<p><strong>Foma</strong>, спасибо. Но вы совсем не поняли суть вопроса.</p>]]></content>
			<author>
				<name><![CDATA[andrey.a.polyakov.b2c]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42228</uri>
			</author>
			<updated>2022-02-11T10:19:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152145#p152145</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Формирование "expression"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152144#p152144" />
			<content type="html"><![CDATA[<p>Чтобы дать пользователю вводить что-то простое, можно использовать <a href="http://script-coding.com/AutoHotkey/Input.html">http://script-coding.com/AutoHotkey/Input.html</a><br />Иначе придётся использовать GUI <a href="http://script-coding.com/AutoHotkey/GUIControls.html">http://script-coding.com/AutoHotkey/GUIControls.html</a><br />И наверное записывать результат в .ini <a href="http://script-coding.com/AutoHotkey/IniWrite.html">http://script-coding.com/AutoHotkey/IniWrite.html</a></p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2022-02-11T09:04:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152144#p152144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Формирование "expression"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152142#p152142" />
			<content type="html"><![CDATA[<p>Доброго времени суток!<br />Столкнулся с одной проблемой. Задача стоит в том что бы в готовом скрипте (exe) пользователь в файл мог писать условия,<br />а скипт должен эти условия считывать.<br />Как из строки можно сформировать условие для оператора IF?</p><div class="codebox"><pre><code>stroka := &quot;5 &lt; 3&quot;</code></pre></div><p>Такие способы не работают:<br /></p><div class="codebox"><pre><code>if stroka
MsgBox, Yes
else
MsgBox, No</code></pre></div><div class="codebox"><pre><code>if %stroka%
MsgBox, Yes
else
MsgBox, No</code></pre></div><p>Как это можно реализовать?</p>]]></content>
			<author>
				<name><![CDATA[andrey.a.polyakov.b2c]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42228</uri>
			</author>
			<updated>2022-02-11T07:14:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152142#p152142</id>
		</entry>
</feed>
