<?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=16332&amp;type=atom" />
	<updated>2021-05-12T16:11:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16332</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический код]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147824#p147824" />
			<content type="html"><![CDATA[<p>Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Botsy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41069</uri>
			</author>
			<updated>2021-05-12T16:11:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147824#p147824</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический код]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147773#p147773" />
			<content type="html"><![CDATA[<p>Нашёл только <a href="https://autohotkey.com/board/topic/77302-class-ahk-lv2-memorylibrary/">это</a>. Там показано, как из буфера, в который считана AutoHotkey.dll запускать функции из неё.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-05-09T19:28:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147773#p147773</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический код]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147772#p147772" />
			<content type="html"><![CDATA[<p>Хотелось бы ещё понять что именно нужно - скрипт получает строку, затем её можно ведь обработать на заранее подготовленные, выполняемые скриптом команды.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-05-09T18:22:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147772#p147772</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический код]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147771#p147771" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> А про это можно где-то почитать ? Не совсем понимаю о чём речь.</p>]]></content>
			<author>
				<name><![CDATA[Botsy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41069</uri>
			</author>
			<updated>2021-05-09T17:44:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147771#p147771</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический код]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147770#p147770" />
			<content type="html"><![CDATA[<p>Ну, можно ещё скачивать библиотеки, и работать с ними из памяти, не сохраняя в файл.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-05-09T17:25:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147770#p147770</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический код]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147767#p147767" />
			<content type="html"><![CDATA[<p>Я имею в виду извлекать как файл. В данном случае *.dll.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-05-09T14:55:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147767#p147767</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический код]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147766#p147766" />
			<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-05-09T14:17:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147766#p147766</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический код]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147765#p147765" />
			<content type="html"><![CDATA[<p>Не легче ли упаковать всё необходимое в скрипт и затем если нужно извлекать да использовать?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-05-09T14:13:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147765#p147765</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический код]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147764#p147764" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong> Я и сам пока не знаю надо ли оно мне, есть ситуация. Купил .dll библиотеки и класс для их управления, за 200у.е. Вставил всё в скрипт. Получается если скинуть другому человеку скрипт, то для корректной работы автоматически скинуться и библиотеки, они же подключены локально. Могу ошибаться, но автор не рассчитывал на такое распространение. <br />Думал закинуть библиотеки на серв и чтобы скипт удаленно к ним подключался. Мне ответили, что такое возможно, только если в .dll это предусмотрено (а это не предусмотрено). Я подумал может можно тогда сам класс управления этими библиотеками и команды в скрипте, передавать в переменную с сервера по запросу, через WinHTTPRequest, а скрипт бы уже выполнял команды полученные из переменной.&nbsp; <br />Не знаю есть ли в этом смысл, но что-то придумать надо.</p>]]></content>
			<author>
				<name><![CDATA[Botsy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41069</uri>
			</author>
			<updated>2021-05-09T14:08:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147764#p147764</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический код]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147750#p147750" />
			<content type="html"><![CDATA[<p>Этот вопрос неоднократно поднимался. Скрипт не может самому себе динамически (&quot;на лету&quot;) изменять код. Но скрипт может отредактировать свой файл и перезапустить себя. Однако, при попытках разобраться, зачем автору это нужно, выяснялось, что это не очень то и нужно. Стоит хорошо подумать, прежде чем копать в этом направлении.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2021-05-08T15:37:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147750#p147750</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Динамический код]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147749#p147749" />
			<content type="html"><![CDATA[<p>В обычном AHK код из переменной можно выполнить, только запустив дополнительный процесс. Проще всего так:<br /></p><div class="codebox"><pre><code>text := &quot;MsgBox, message from the new script&quot;
ExecScript(text)
MsgBox, main script

ExecScript(script, exePath := &quot;&quot;) {
   (!exePath &amp;&amp; exePath := A_AhkPath)
   shell := ComObjCreate(&quot;WScript.Shell&quot;)
   exec := shell.Exec(exePath . &quot; *&quot;)
   exec.StdIn.Write(script)
   exec.StdIn.Close()
   return exec.ProcessID
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-05-08T15:36:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147749#p147749</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Динамический код]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=147748#p147748" />
			<content type="html"><![CDATA[<p>Не знаю точно как это называется, возможно уже и были подобные темы. Можно ли сделать что-то подобное:</p><p>Пользователь вводит в поле : MsgBox, Test message<br />В поле можно попробовать ввести любой код, который захочет. <br />И он подставляется в сам скрипт и пробует выполнится.</p><div class="codebox"><pre><code>
Input_text := &quot;MsgBox, Test message&quot;

F1::
	Input_text
return
</code></pre></div><p>Это похоже на функции, только неизвестен сам контекст. Может есть какие-то мысли или даже уже есть что-то подобное ?</p>]]></content>
			<author>
				<name><![CDATA[Botsy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41069</uri>
			</author>
			<updated>2021-05-08T15:00:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=147748#p147748</id>
		</entry>
</feed>
