<?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=10051&amp;type=atom" />
	<updated>2014-12-16T07:41:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10051</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89396#p89396" />
			<content type="html"><![CDATA[<p>Используйте Gui вместо InputBox.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-12-16T07:41:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89396#p89396</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89393#p89393" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Вася Пупкин]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24229</uri>
			</author>
			<updated>2014-12-16T04:03:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89393#p89393</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87329#p87329" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-10-13T21:25:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87329#p87329</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87328#p87328" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Вася Пупкин]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24229</uri>
			</author>
			<updated>2014-10-13T20:46:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87328#p87328</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87324#p87324" />
			<content type="html"><![CDATA[<p>Я бы еще проверял существование файла, которе вводят.<br /></p><div class="codebox"><pre><code>IfExist</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-10-13T17:49:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87324#p87324</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87322#p87322" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Вася Пупкин]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24229</uri>
			</author>
			<updated>2014-10-13T16:53:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87322#p87322</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87310#p87310" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-10-13T14:05:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87310#p87310</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Создать файл, присвоив имя через форму]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87304#p87304" />
			<content type="html"><![CDATA[<p>Gui<br />IfExist<br />FileAppend</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-10-13T12:18:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87304#p87304</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Создать файл, присвоив имя через форму]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=87303#p87303" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Вася Пупкин]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24229</uri>
			</author>
			<updated>2014-10-13T12:05:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=87303#p87303</id>
		</entry>
</feed>
