<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Создать файл, присвоив имя через форму]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10051</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10051&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Создать файл, присвоив имя через форму».]]></description>
		<lastBuildDate>Tue, 16 Dec 2014 07:41:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=89396#p89396</link>
			<description><![CDATA[<p>Используйте Gui вместо InputBox.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 16 Dec 2014 07:41:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=89396#p89396</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=89393#p89393</link>
			<description><![CDATA[<p><span class="postimg"><img src="http://cs623421.vk.me/v623421657/107f3/QHkR0tlsNyw.jpg" alt="http://cs623421.vk.me/v623421657/107f3/QHkR0tlsNyw.jpg" /></span></p><div class="codebox"><pre><code>InputBox, UserInput, Создать файл, Введите имя файла, , 460, 150
IfExist, %UserInput%
   msgbox, Файл уже существует
FileAppend,, C:\Users\slava\Desktop\%UserInput%
If ErrorLevel = 1
    MsgBox, Файл не создался</code></pre></div><p>Хочу увеличить размер текста <br />(показал курсором на картинке).<br />Код скрипта прилагается.<br />Пытаюсь внедрить вот эту строку,<br />но ничего не выходит:<br /></p><div class="codebox"><pre><code>InputBox, Font, s11, Consolas</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Вася Пупкин)]]></author>
			<pubDate>Tue, 16 Dec 2014 04:03:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=89393#p89393</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=87329#p87329</link>
			<description><![CDATA[<p>Нет, я не про это&nbsp; - у FileAppend достаточно проверить ErrorLevel.<br />Я про то, что файл уже может существовать.<br /></p><div class="codebox"><pre><code>InputBox, UserInput, Создать файл, Введите имя файла, , 460, 150
IfExist, %UserInput%
   msgbox, Файл уже существует
FileAppend,, C:\Users\slava\Desktop\%UserInput%
If ErrorLevel = 1
    MsgBox, Файл не создался</code></pre></div><p>Ну и с Gui покрасивее будет.<br /></p><div class="codebox"><pre><code>Gui, Add, Text,, Введите имя файла
Gui, Add, Edit, vPath w200
Gui, Add, Button, x10 y52, OK
Gui, Add, Button, x50 y52, Отмена
Gui, Show,, Создать файл 
return

GuiClose:
ButtonОтмена:
ExitApp

ButtonOK:
Gui, Submit, NoHide</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 13 Oct 2014 21:25:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=87329#p87329</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=87328#p87328</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Я бы еще проверял существование файла, которе вводят.<br /></p><div class="codebox"><pre><code>IfExist</code></pre></div></blockquote></div><p>Молодец! Я как раз вернулся на форум, что бы об этом сказать.<br />Тесты показали, что этого, действительно, не хватает.<br />Скрипт переписан:</p><div class="codebox"><pre><code>InputBox, UserInput, Создать файл, Введите имя файла, , 460, 150

FileAppend,
(
), C:\Users\slava\Desktop\%UserInput%

IfNotExist, C:\Users\slava\Desktop\%UserInput%
    MsgBox, Файл не создался</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Вася Пупкин)]]></author>
			<pubDate>Mon, 13 Oct 2014 20:46:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=87328#p87328</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=87324#p87324</link>
			<description><![CDATA[<p>Я бы еще проверял существование файла, которе вводят.<br /></p><div class="codebox"><pre><code>IfExist</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 13 Oct 2014 17:49:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=87324#p87324</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=87322#p87322</link>
			<description><![CDATA[<div class="quotebox"><cite>Alectric пишет:</cite><blockquote><div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Gui<br />IfExist<br />FileAppend</p></blockquote></div><p>Или просто <a href="http://www.autohotkey.com/docs/commands/InputBox.htm">InputBox</a>.</p></blockquote></div><p>Всем спасибо, скрипт написан</p><br /><div class="codebox"><pre><code>InputBox, UserInput, Создать файл, Введите имя файла

FileAppend,
(
), C:\Users\slava\Desktop\%UserInput%</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Вася Пупкин)]]></author>
			<pubDate>Mon, 13 Oct 2014 16:53:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=87322#p87322</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=87310#p87310</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Gui<br />IfExist<br />FileAppend</p></blockquote></div><p>Или просто <a href="http://www.autohotkey.com/docs/commands/InputBox.htm">InputBox</a>.</p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Mon, 13 Oct 2014 14:05:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=87310#p87310</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=87304#p87304</link>
			<description><![CDATA[<p>Gui<br />IfExist<br />FileAppend</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 13 Oct 2014 12:18:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=87304#p87304</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Создать файл, присвоив имя через форму]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=87303#p87303</link>
			<description><![CDATA[<p>Задача: <br />1. Скрипт должен создать на рабочем столе текстовый файл. <br />2. Перед созданием файла должна открыться форма (см. картинку). <br />В этой форме пользователь должен ввести название файла.</p><p>Ребята, подскажите куда копать, что бы это реализовать.<br />Пойдет любое решение, главное что бы этот скрипт можно было сделать быстро.</p><p><span class="postimg"><img src="http://cs14113.vk.me/c618326/v618326657/1e067/2UuYwNXTetQ.jpg" alt="http://cs14113.vk.me/c618326/v618326657/1e067/2UuYwNXTetQ.jpg" /></span></p>]]></description>
			<author><![CDATA[null@example.com (Вася Пупкин)]]></author>
			<pubDate>Mon, 13 Oct 2014 12:05:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=87303#p87303</guid>
		</item>
	</channel>
</rss>
