<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=18450&amp;type=atom" />
	<updated>2025-07-09T01:00:04Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=18450</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос на "залипание" кнопки клавиатуры]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162539#p162539" />
			<content type="html"><![CDATA[<p>Нет, вам нужно в любой теме использовать заглавные буквы и точки. Приведите свои посты в соответствие правилам.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2025-07-09T01:00:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162539#p162539</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос на "залипание" кнопки клавиатуры]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162538#p162538" />
			<content type="html"><![CDATA[<p>Мне не нужно было влезать в эту тему? Ладно, извините, не буду мешать.</p>]]></content>
			<author>
				<name><![CDATA[RacalCucumber]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41299</uri>
			</author>
			<updated>2025-07-08T22:39:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162538#p162538</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос на "залипание" кнопки клавиатуры]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162537#p162537" />
			<content type="html"><![CDATA[<p>Напомните, я вам уже говорил, что в следующий раз, когда не будете использовать заглавные буквы и точки, получите бан?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2025-07-08T10:05:44Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162537#p162537</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос на "залипание" кнопки клавиатуры]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162536#p162536" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Автозамена не то подсунула, бывает. Поправил.</p>]]></content>
			<author>
				<name><![CDATA[RacalCucumber]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41299</uri>
			</author>
			<updated>2025-07-08T03:55:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162536#p162536</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос на "залипание" кнопки клавиатуры]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162535#p162535" />
			<content type="html"><![CDATA[<p>к удалению.</p>]]></content>
			<author>
				<name><![CDATA[RacalCucumber]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41299</uri>
			</author>
			<updated>2025-07-08T03:54:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162535#p162535</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос на "залипание" кнопки клавиатуры]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162534#p162534" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>RacalCucumber пишет:</cite><blockquote><div class="codebox"><pre><code>SendItem {Alt, Down}</code></pre></div></blockquote></div><p>Это что за хрень?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2025-07-08T03:04:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162534#p162534</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос на "залипание" кнопки клавиатуры]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162533#p162533" />
			<content type="html"><![CDATA[<p><strong>tpabhuk</strong><br /></p><div class="codebox"><pre><code>#NoEnv
~F12::
KeyWait, F12
SendInput {Alt, Down}
KeyWait, F12
; KeyWait, F12, Tx - где x время таймаута в секундах, после чего Alt будет отпущена
SendInput {Alt, Up}
Return

~^z:: ;аварийный выход из скрипта по нажатию Ctrl+z
SendItem {Alt, Up}
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[RacalCucumber]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41299</uri>
			</author>
			<updated>2025-07-07T22:09:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162533#p162533</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос на "залипание" кнопки клавиатуры]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162484#p162484" />
			<content type="html"><![CDATA[<p>Да, выглядит правильно.<br /></p><div class="quotebox"><cite>tpabhuk пишет:</cite><blockquote><div class="codebox"><pre><code>Sleep, %timeToHold%</code></pre></div></blockquote></div><p>Здесь знаки процента не нужны, хотя сработает и с ними.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2025-05-18T17:51:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162484#p162484</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос на "залипание" кнопки клавиатуры]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162483#p162483" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br /></p><div class="codebox"><pre><code>; Укажите время зажатия в миллисекундах (например, 2000ms = 2 секунды)
timeToHold := 2000000

; Начало зажатия клавиши при нажатии F12 
F12::
    Send, {Alt down} ; Зажать клавишу «!» 
    Sleep, %timeToHold% ; Держать клавишу «!» заданное время 
    Send, {Alt up} ; Отпустить клавишу «!» 
return</code></pre></div><p>Так должно выглядеть?</p>]]></content>
			<author>
				<name><![CDATA[tpabhuk]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=44830</uri>
			</author>
			<updated>2025-05-18T17:09:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162483#p162483</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос на "залипание" кнопки клавиатуры]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162481#p162481" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>tpabhuk пишет:</cite><blockquote><div class="codebox"><pre><code>Send, {! down} ; Зажать клавишу «!»</code></pre></div></blockquote></div><p>Клавиши ! нет, есть {Alt}.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2025-05-18T16:45:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162481#p162481</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос на "залипание" кнопки клавиатуры]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162479#p162479" />
			<content type="html"><![CDATA[<p><strong>tpabhuk</strong>, добро пожаловать на форум! Ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на <a href="https://forum.script-coding.com/viewtopic.php?id=5421">составление заголовков</a>, оформление <a href="https://forum.script-coding.com/misc.php?action=rules#code-formatting">кода</a> и <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">точки</a> в конце предложений.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2025-05-18T16:10:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162479#p162479</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Макрос на "залипание" кнопки клавиатуры]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162477#p162477" />
			<content type="html"><![CDATA[<p>Плиз помогите сделать макрос, нужно чтоб по нажатию кнопки f12 (в моем случае) зажимался Alt до тех пор пока я опять не нажму f12.<br />Пробовал вот такое, но у меня ничего не работает:</p><div class="codebox"><pre><code>; Укажите время зажатия в миллисекундах (например, 2000ms = 2 секунды)
timeToHold := 2000000

; Начало зажатия клавиши при нажатии F12 
F12::
    Send, {! down} ; Зажать клавишу «!» 
    Sleep, %timeToHold% ; Держать клавишу «!» заданное время 
    Send, {! up} ; Отпустить клавишу «!» 
return</code></pre></div><p>Делал макрос через блокнот с последующим сохранение в формате ahk. Макрос запускает автохоткей, но сам не работает.</p>]]></content>
			<author>
				<name><![CDATA[tpabhuk]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=44830</uri>
			</author>
			<updated>2025-05-18T14:50:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162477#p162477</id>
		</entry>
</feed>
