<?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=13870&amp;type=atom" />
	<updated>2018-06-22T10:10:28Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13870</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK : Модернизация меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126353#p126353" />
			<content type="html"><![CDATA[<p>Была ещё тема <a href="http://forum.script-coding.com/viewtopic.php?pid=17178">Скрипт для быстрого тестиров. кода, выложенного на Web-странице</a>.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-06-22T10:10:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126353#p126353</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK : Модернизация меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126352#p126352" />
			<content type="html"><![CDATA[<p>Для изменения программы для редактирования ahk файлов вписываете в реестре HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command<br />вместо notepad.exe %1<br />&quot;C:\Program Files (x86)\Notepad++\notepad++.exe&quot; &quot;%1&quot;<br />Скрипт запускается в режиме редактирования командой Run, edit &quot;Path to Script&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-06-22T09:19:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126352#p126352</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK : Модернизация меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126348#p126348" />
			<content type="html"><![CDATA[<p>Трафарет для изготовления трафаретов.</p>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-06-21T22:56:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126348#p126348</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK : Модернизация меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126347#p126347" />
			<content type="html"><![CDATA[<p>Ну ладно, сделал по-другому .<br />Открытие самого файла идёт в NotePad++.<br /></p><div class="codebox"><pre><code>
!sc29:: ; Тильда , ё ` ~
fileName := &quot;&quot;
okey := 0
bot := &quot;C:\Users\Alex\Desktop\New\bot&quot; ; Папка создания скрипта
notepad := &quot;C:\Program Files (x86)\Notepad++\notepad++.exe&quot; ; Путь к Notepad++
Gui, Font, cBlack s12, Arial
Gui, Add, Edit, w330 h30 +Center -Multi vfileName, % fileName
Gui, Add, Button, x+Center w60 h30 gOkey_file , Okey
Gui, +AlwaysOnTop -SysMenu
Gui, Show,, Имя файла
Loop {
if okey = 1
	return
key_state := GetKeyState(&quot;Enter&quot;) 
If key_state = 1
	break
}
Okey_file:
okey := 1
Gui, Submit, NoHide
Gui, Destroy
fileName := fileName &quot;.ahk&quot;
newFile(fileName, notepad)
return

newFile(fileName, notepad)
{
	file := &quot;C:\Users\Alex\Desktop\New\bot\&quot; fileName
	FileAppend,, % file
	Run, % notepad
	sleep 5000
	Send, ^{sc18} ; O  
	sleep 1500
	Click, 50 140
	sleep 500
	Click, 300 440
	sleep 200
	SendInput, %file% {Enter}
	sleep 1500
	WinActivate, % file . &quot; - Notepad++&quot;
	sleep 500
	Click, 290 35
	sleep 200
	Click, 335 255	
	sleep 200
	Click, 510 255
	return
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-06-21T22:48:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126347#p126347</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK : Модернизация меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126346#p126346" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>qqlexa пишет:</cite><blockquote><p>заходить в папку, нажимать ПКМ &gt; Создать &gt; AutoHotkey скрипт &gt; название ещё вводи &gt; Enter нажимай &gt; ПКМ по файлу .ahk &gt; Edit with Notepad++ &gt; Синтаксис менять</p></blockquote></div><p><span class="postimg"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRf3fuZJrA-_BYohocmUbj_CpwoQs_Ytdfd5OgqHmeOWltIVrtd" alt="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRf3fuZJrA-_BYohocmUbj_CpwoQs_Ytdfd5OgqHmeOWltIVrtd" /></span><br />Я просто открываю вкладку Sublime с плагином и пишу. На одну клавишу повешен запуск без сохранения, на другую - с сохранением в файл.<br />N++ тоже настроить можно - плагин NppExec, синтаксис по-умолчанию. Если лень настраивать, можно скачать готовую сборку для ahk любого редактора.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2018-06-21T22:40:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126346#p126346</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK : Модернизация меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126345#p126345" />
			<content type="html"><![CDATA[<p>Почему у меня не открывается файл .ahk в самом Notepad++?<br /></p><div class="codebox"><pre><code>	Run, % notepad, % file, Max</code></pre></div>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-06-21T22:00:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126345#p126345</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK : Модернизация меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126344#p126344" />
			<content type="html"><![CDATA[<p>Нет желания рыться в специальных программах. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Вот зачем я спрашивал. Хотел сразу при создании файла открывать его в NotePad ++ , но забыл что название ещё нужно изменить. Решил лучше через горячую клавишу.<br /></p><div class="codebox"><pre><code>
!sc29:: ; Тильда , ё ` ~
okey := 0
bot := &quot;C:\Users\Alex\Desktop\New\bot&quot;
fileName := &quot;&quot;
Gui, Font, cBlack s12, Arial
Gui, Add, Edit, w330 h30 +Center -Multi vfileName, % fileName
Gui, Add, Button, x+Center w60 h30 gOkey_file , Okey
Gui, +AlwaysOnTop -SysMenu
Gui, Show,, Имя файла
Loop {
if okey = 1
	return
key_state := GetKeyState(&quot;Enter&quot;) 
If key_state = 1
	goto Okey_file
}

Okey_file:
okey := 1
Gui, Submit
fileName := fileName &quot;.ahk&quot;
newFile(fileName, &quot;C:\Program Files (x86)\Notepad++\notepad++.exe&quot;)
return

newFile(fileName, notepad)
{
	file := &quot;C:\Users\Alex\Desktop\New\bot\&quot; fileName
	FileAppend,, % file
	sleep 500
	Run, % notepad, % file, Max
	sleep 2000
	;WinWait, % file
	sleep 500
	Click, 290 35
	sleep 20
	Click, 335 255	
	sleep 20
	Click, 510 255
	return
}
</code></pre></div><p>Очень надоедает заходить в папку, нажимать ПКМ &gt; Создать &gt; AutoHotkey скрипт &gt; название ещё вводи &gt; Enter нажимай &gt; ПКМ по файлу .ahk &gt; Edit with Notepad++ &gt; Синтаксис менять. Лень это делать и решил написать скрипт.<br />Скажите ещё, есть для Notepad++ синтаксис для ахк?</p>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-06-21T21:59:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126344#p126344</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK : Модернизация меню]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126301#p126301" />
			<content type="html"><![CDATA[<p>Можно ли через AHK изменить это меню проводника (не знаю как оно называется толком).<br /><span class="postimg"><img src="https://i.imgur.com/fNCUBt5.png" alt="https://i.imgur.com/fNCUBt5.png" /></span><br />Если да, тогда <span class="bbu">как</span>.</p>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-06-20T21:56:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126301#p126301</id>
		</entry>
</feed>
