<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Вставка/удаление символа комментария в программу на AHK]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14819&amp;type=atom" />
	<updated>2019-06-06T15:30:50Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14819</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вставка/удаление символа комментария в программу на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134637#p134637" />
			<content type="html"><![CDATA[<p>У меня такое же окно, но кривой перевод: вместо &quot;Расшир.&quot; написано &quot;Прод.&quot; (см. скриншот), поэтому не мог понять. Теперь всё работает. Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[Vadus]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25975</uri>
			</author>
			<updated>2019-06-06T15:30:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134637#p134637</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вставка/удаление символа комментария в программу на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134636#p134636" />
			<content type="html"><![CDATA[<p>У меня не так.</p><p><span class="postimg"><img src="https://i.imgur.com/WFeup1U.png" alt="https://i.imgur.com/WFeup1U.png" /></span></p><p>Это окно открывается, когда выбираете в меню языков «Задать свой синтаксис».</p><p>Нажимаете «Создать», пишете AHK, после этого появляется поле ввода расширения:</p><p><span class="postimg"><img src="https://i.imgur.com/vqczLDR.png" alt="https://i.imgur.com/vqczLDR.png" /></span></p><p>Версия самая последняя, недавно обновлялся.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-06-06T14:41:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134636#p134636</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вставка/удаление символа комментария в программу на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134635#p134635" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Расширение введите, будет само определяться.</p></blockquote></div><p>Спасибо, но не нашел, куда ввести расширение. На скриншоте диалог, где можно ввести расширение, но в списке нет AHK (нет добавленных языков). <br />Благодарю за совет насчет SciTE4AutoHotkey, посмотрю, но боюсь, что слишком сильно сроднился с Notepad++...</p>]]></content>
			<author>
				<name><![CDATA[Vadus]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25975</uri>
			</author>
			<updated>2019-06-06T13:39:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134635#p134635</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вставка/удаление символа комментария в программу на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134634#p134634" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Vadus пишет:</cite><blockquote><p>Как-то это решается?</p></blockquote></div><p>Расширение введите, будет само определяться. Вообще для AHK лучше SciTE4AutoHotkey.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-06-06T11:16:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134634#p134634</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вставка/удаление символа комментария в программу на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134633#p134633" />
			<content type="html"><![CDATA[<p>Использую редактор scite4ahk и в нем есть клавиша комментирования numpadsub. Комментирует/расскоментирует и много строк и по одной.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2019-06-06T10:58:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134633#p134633</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вставка/удаление символа комментария в программу на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134632#p134632" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>В Notepad++ есть встроенная горячая клавиша для комментирования Ctrl + Q.</p></blockquote></div><p>Спасибо. Сам ей пользуюсь для вставки комментариев в VBScript. Но в списке языков нет AHK, чтобы вставлять точку с запятой. Сейчас разобрался, добавил свой язык (Define your language). Но каждый раз для каждого файла нужно выбирать AHK, чтобы работал новый синтаксис. Как-то это решается?</p>]]></content>
			<author>
				<name><![CDATA[Vadus]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25975</uri>
			</author>
			<updated>2019-06-06T08:57:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134632#p134632</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вставка/удаление символа комментария в программу на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134631#p134631" />
			<content type="html"><![CDATA[<p>В Notepad++ есть встроенная горячая клавиша для комментирования Ctrl + Q.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-06-06T01:38:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134631#p134631</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Вставка/удаление символа комментария в программу на AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134630#p134630" />
			<content type="html"><![CDATA[<p>Пишу AHK-скрипты в текстовом редакторе Notepad++.<br />Существует ли такой AHK-скрипт, когда по нажатию горячей клавиши (например, Ctrl+`) вставляется символ комментария (точка с запятой) в начало каждой из выделенных строк кода?<br />И наоборот — если строка закомментирована, то по нажатию той же горячей клавиши символ комментария (точка с запятой) удаляется.<br />Возможно этот вопрос уже решен, но я не смог найти ответ.<br />Сейчас пользуюсь примитивненьким скриптом, но он работает только с одной строкой:</p><div class="codebox"><pre><code>
^$vkc0::  ;Ctrl+`
	KeyWait Control  ;Ждать отпускания клавиши Control. Позволяет избежать залипания клавиши
	Send, {Home}{Shift Down}{Right}{Shift Up} ;выделяем первый символ в строке
	Send, ^{sc02E} ; нажать CTRL+С — копируем выделенный текст в буфер обмена
	ClipWait 1 ; ждем изменения буфера обмена 1 сек.
	StringLeft, ЕстьКомментарий, Clipboard, 1 ;берем первый символ строки из буфера
	If ЕстьКомментарий = `; ;если первый символ строки точка с запятой
	{
		Send, {Delete} ;удаляем точку с запятой
	}
	Else
	{
		Send, {Left}`; ;вводим точку с запятой
	}
</code></pre></div><p>	<br /> Заранее благодарен.</p>]]></content>
			<author>
				<name><![CDATA[Vadus]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25975</uri>
			</author>
			<updated>2019-06-06T00:44:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134630#p134630</id>
		</entry>
</feed>
