<?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=16699&amp;type=atom" />
	<updated>2021-11-04T17:52:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16699</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150454#p150454" />
			<content type="html"><![CDATA[<p>Вы собираетесь все вопросы в этой теме задавать?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-11-04T17:52:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150454#p150454</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150453#p150453" />
			<content type="html"><![CDATA[<p>Поместил <a href="https://forum.script-coding.com/viewtopic.php?id=16670">этот макрос</a> в отдельный файл и убрал #Persistent в обоих, вроде глючить перестало. В первом файле остались горячие строки, клавиши и макрос этой темы.</p><p>Подскажите еще, почему может не работать горячая строка автозамены: <br /></p><div class="codebox"><pre><code>:*:ghd::Привет
Send {RCtrl Down}{RCtrl Up}
return</code></pre></div><p>т.е. &quot;Привет&quot; вводится, а язык по правому Ctrl не меняется на русский.</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2021-11-04T17:38:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150453#p150453</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150451#p150451" />
			<content type="html"><![CDATA[<p>Данный макрос точно не при чём.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-11-04T17:27:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150451#p150451</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150450#p150450" />
			<content type="html"><![CDATA[<p>Скрипт в студию!</p>]]></content>
			<author>
				<name><![CDATA[Taveron]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41949</uri>
			</author>
			<updated>2021-11-04T17:25:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150450#p150450</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150449#p150449" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Спасибо, но там как раз лучше, чтобы только со звездочкой работало - чтобы по ошибке старое или сохраненное число не конвертировать.</p><p>Тут другая проблема возникла: если загружаю этот макрос вместе с другими в одном файле (а это удобно, чтобы не было несколько иконок в трее для каждого скрипта), то после первого срабатывания этого макроса начинают глючить клава и мышь. Только перезагрузка помогает.</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2021-11-04T15:47:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150449#p150449</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150447#p150447" />
			<content type="html"><![CDATA[<p>Перезагрузка не причём, наверно просто скрипт забыли сохранить. Разница между этим вариантом, и тем, что привели в первый раз, в том, что в окне используется не тот дефис, который можно ввести с клавиатуры. Чтобы работало с сохранённым и не сохранённым документом, лучше такой вариант:<br /></p><div class="codebox"><pre><code>SetTitleMatchMode, 2
#If WinActive(&quot;name.txt ahk_class Notepad&quot;)</code></pre></div><p>(читайте про SetTitleMatchMode).</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-11-04T12:13:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150447#p150447</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150446#p150446" />
			<content type="html"><![CDATA[<p>Заработало после перезагрузки:</p><div class="codebox"><pre><code>#If WinActive(&quot;*name.txt – Блокнот&quot;)
^Numpad8::
   ClipBoard := &quot;&quot;
   Send ^{sc1E}  ; Ctrl+A
   Sleep 50
   Send ^{sc2E}  ; Ctrl+C
   ClipWait, 1
   SendInput, % 10000 - Clipboard
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2021-11-04T11:16:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150446#p150446</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150445#p150445" />
			<content type="html"><![CDATA[<p>Скопировал название окна из WindowSpy.ahk:</p><div class="codebox"><pre><code>#If WinActive(&quot;*name.txt – Блокнот&quot;)
^Numpad8::
   ClipBoard := &quot;&quot;
   Send, +^{Left}
   Sleep, 50
   Send ^c
   ClipWait, 1
   SendInput, % 10000 - Clipboard
Return</code></pre></div><p>Все равно не работает в этом окне.</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2021-11-04T10:58:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150445#p150445</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150444#p150444" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Taveron пишет:</cite><blockquote><p>вы где её откопали?</p></blockquote></div><p>А, просто перепутал, она наверно раньше была в комплекте, сейчас не знаю.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-11-03T20:35:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150444#p150444</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150443#p150443" />
			<content type="html"><![CDATA[<p>AhkSpy - круче всех.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-11-03T20:29:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150443#p150443</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150442#p150442" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Используйте AU3_Spy.exe (который идёт вместе с AHK)</p></blockquote></div><p><strong>teadrinker</strong>, вы где её откопали? Пользуюсь AHK пару лет и никогда такой проги не видел в комплекте. Всегда пользовался WindowSpy.ahk.</p>]]></content>
			<author>
				<name><![CDATA[Taveron]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41949</uri>
			</author>
			<updated>2021-11-03T20:28:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150442#p150442</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150441#p150441" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Число уже есть в файле, как я понял. На скриншоте не изменённый документ.</p></blockquote></div><p>В измененном документе после ввода числа перед именем файла появляется звездочка:<br />&quot;*name.txt - Блокнот&quot;<br />Но и со звездочкой не запускается макрос. Попробую AU3_Spy.exe завтра.</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2021-11-03T19:55:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150441#p150441</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150440#p150440" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Taveron пишет:</cite><blockquote><p><strong>teadrinker</strong>, горячая клавиша нажимается после ввода числа, а значит документ изменён.</p></blockquote></div><p>Число уже есть в файле, как я понял. На <a href="https://forum.script-coding.com/viewtopic.php?pid=150430#p150430">скриншоте</a> не изменённый документ.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-11-03T19:19:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150440#p150440</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150439#p150439" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>критичный недостаток — отсутствие ClipWait.</p></blockquote></div><p>&nbsp; Для 3-4 символов? Вы правы.</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2021-11-03T19:13:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150439#p150439</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Макрос подсчета разницы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150438#p150438" />
			<content type="html"><![CDATA[<p><strong>Taveron</strong><br />Интересный вариант, немного подправил его только:</p><div class="codebox"><pre><code>F2::
ToolTip, Введите число,0,0		; Отобразить инфу.
Loop{
 Input, Var, V, {Space}			; Записываем нажатия пока не будет нажат пробел.
 if RegExMatch(Var, &quot;\d+$&quot;, Var){	; Если в конце записанной строки есть число, то
  Send % 10000-Var			; производим с ним вычисления и записываем результат после пробела.
  ToolTip				; Убрать инфу.			
  Break					; Прервать перехват клавиш.
 }
}
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-11-03T19:04:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150438#p150438</id>
		</entry>
</feed>
