<?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=16049&amp;type=atom" />
	<updated>2021-02-05T15:02:54Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16049</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как умножать конкретное число на выделенное мышью число]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145880#p145880" />
			<content type="html"><![CDATA[<p>Достаточно добавить строку:</p><div class="codebox"><pre><code>StringReplace, Clip, Clip, %A_Space% ,, All</code></pre></div><p>После строки:</p><div class="codebox"><pre><code>Clip := Clipboard	; Содержание буфера.</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-02-05T15:02:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145880#p145880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как умножать конкретное число на выделенное мышью число]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145854#p145854" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />Возникла сложность при выделении числа так как появляется пробел между разрядами в тысячных. Это решаемо?</p>]]></content>
			<author>
				<name><![CDATA[Twink]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41418</uri>
			</author>
			<updated>2021-02-05T06:45:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145854#p145854</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как умножать конкретное число на выделенное мышью число]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145851#p145851" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />Спасибо, все работает!</p>]]></content>
			<author>
				<name><![CDATA[Twink]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41418</uri>
			</author>
			<updated>2021-02-05T06:13:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145851#p145851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как умножать конкретное число на выделенное мышью число]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145847#p145847" />
			<content type="html"><![CDATA[<p>Простой вариант - изменит текущее выделенное по нажатию на F2.</p><div class="codebox"><pre><code>F2::
Clipboard =	; Очистить буфер.
Send, ^{vk43}	; Копировать выделенное (Ctrl + C).
ClipWait, 0.2	; Ожидать заполнение буфера в течении 200мс.
If ErrorLevel
{
 Tool(&quot;Буфер обмена пуст!&quot;,500)
 Return
}

Clip := Clipboard	; Содержание буфера.
Result := Clip * 12
If !Result
{
 Tool(&quot;Ошибка в значении.&quot;)
 Return
}

Tool(Clip &quot; * 12 = &quot; Result)		; Отобразить результат.

Clipboard := Result	; Поместить результат в буфер.
Send ^{vk56}	; Вставить результат (Ctrl + V).
Return




Tool(Text, Wait := 1000, X := &quot;&quot;, Y := &quot;&quot;)
{
 SetTimer, T_Off, % Wait
 ToolTip, % Text, %X%, %Y%
 If Wait
  SetTimer, T_Off, % Wait
 Else
 {
  KeyWait, %A_ThisHotkey%, U
  ToolTip
 }
 Return
}

T_Off:
SetTimer, T_Off, Off
ToolTip
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-02-04T19:55:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145847#p145847</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как умножать конкретное число на выделенное мышью число]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145835#p145835" />
			<content type="html"><![CDATA[<p><strong>Twink</strong>, для подобных заданий у нас есть <a href="http://forum.script-coding.com/viewforum.php?id=28">специальный раздел</a>. Если хотите получить помощь, не оформляйте пост в виде ТЗ. Для начала разделите задачу на составляющие, наверняка какие-то из них вы сможете реализовать самостоятельно. Продемонстрируйте свои усилия в виде кода, опишите проблему, с которой столкнулись. Желательно, чтобы одна тема содержала один конкретный вопрос, а не «помогите автоматизировать процесс».</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-04T13:56:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145835#p145835</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как умножать конкретное число на выделенное мышью число]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145834#p145834" />
			<content type="html"><![CDATA[<p>Уважаемые форумчане!<br />Нужно исправить на сайте ГИС ЖКХ ряд чисел в табличной части. Помогите пожалуйста автоматизировать процесс с помощью AHK. Я пока профан, но учусь, простите.</p><p>Нужно написать скрипт, который будет умножать выделенное курсором число на 12 (например), удалять выделенное и вставлять получившийся в ходе умножения итог.<br />Буду очень признателен!</p>]]></content>
			<author>
				<name><![CDATA[Twink]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41418</uri>
			</author>
			<updated>2021-02-04T13:01:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145834#p145834</id>
		</entry>
</feed>
