<?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=7474&amp;type=atom" />
	<updated>2013-02-13T17:53:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7474</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69447#p69447" />
			<content type="html"><![CDATA[<p>Я уже думал о таком, ничего не вышло. Поэтому использую разные условия и подгоняю более-менее к универсальному варианту.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-02-13T17:53:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69447#p69447</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69446#p69446" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong><br />Я просто хочу выполнять код АНК находящийся в переменной, не создавая файл.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-02-13T17:36:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69446#p69446</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69445#p69445" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong><br />Т.е. Вы хотите сделать из &quot;autohotkey&quot; - командную строку?<br />Что-то вроде:<br /></p><div class="codebox"><pre><code>
filedelete,1.ahk
InputBox,command,command,Введите команду
fileappend,%command%,1.ahk
run,1.ahk
</code></pre></div><p>?</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-02-13T17:32:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69445#p69445</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69443#p69443" />
			<content type="html"><![CDATA[<p><strong>creature.ws</strong><br />Речь о том, что значение переменной неизвестно.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-02-13T17:21:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69443#p69443</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62926#p62926" />
			<content type="html"><![CDATA[<p>Так:<br /></p><div class="codebox"><pre><code>Space::Gosub, Task
Task:
Send {Alt down}{Tab}                                
WinWait, ahk_class TaskSwitcherWnd, , 1
WinWaitClose
Send {Alt up}{Alt up}
Return</code></pre></div><p>Речь о том, что «выполнение текста в переменной как подпрограммы» это отличная возможность, но свет клином на ней не сошелся. И если цель не «использование AHK скрипта в качестве интерпретатора AHK» то задачу можно легко решить изменив алгоритм с учётом существующих возможностей.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-08-18T02:18:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62926#p62926</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62925#p62925" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><p>Так ведь нет никакого «данного случая».<br />Если речь о коде из первого сообщения — достаточно перенести содержимое переменной в подпрограмму начинающуюся от метки <strong>task</strong>.<br />В теле скрипта, взять и перенести <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p></blockquote></div><p>Как?</p><p>Task:<br />%Task%<br />Return</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-08-18T01:41:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62925#p62925</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62924#p62924" />
			<content type="html"><![CDATA[<p>Так ведь нет никакого «данного случая».<br />Если речь о коде из первого сообщения — достаточно перенести содержимое переменной в подпрограмму начинающуюся от метки <strong>task</strong>.<br />В теле скрипта, взять и перенести <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-08-18T00:36:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62924#p62924</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62923#p62923" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><p>Это <em>иначе</em> <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Ветвление — If - Else If - Else</p></blockquote></div><p>Не понимаю как это использовать в данном случае.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-08-18T00:19:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62923#p62923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62922#p62922" />
			<content type="html"><![CDATA[<p>Это <em>иначе</em> <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Ветвление — If - Else If - Else</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-08-18T00:14:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62922#p62922</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62920#p62920" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><p>В большинстве случаев, когда возникает желание использовать «текстовое содержимое переменной» как подпрограмму скрипта,&nbsp; существует способ решить вопрос стандартным условным ветвлением.</p></blockquote></div><p>А это как?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-08-18T00:07:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62920#p62920</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62900#p62900" />
			<content type="html"><![CDATA[<p>В большинстве случаев, когда возникает желание использовать «текстовое содержимое переменной» как подпрограмму скрипта,&nbsp; существует способ решить вопрос стандартным условным ветвлением.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-08-17T22:13:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62900#p62900</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62897#p62897" />
			<content type="html"><![CDATA[<p>Нет, только сохранить в файл и запустить его.</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-08-17T21:51:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62897#p62897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Выполнить действие заданное в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=62895#p62895" />
			<content type="html"><![CDATA[<p><strong>Выполнить действие заданное в переменной</strong></p><p>Господа, возможно ли это?<br /></p><div class="codebox"><pre><code>Task =
(
Send {Alt down}{Tab}                                
WinWait, ahk_class TaskSwitcherWnd, , 1
WinWaitClose
Send {Alt up}{Alt up}
Return
)
Space::Gosub, Task
Task:
КАК тут выполнить %Task%
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-08-17T21:17:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=62895#p62895</id>
		</entry>
</feed>
