<?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=7746&amp;type=atom" />
	<updated>2012-11-02T00:22:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7746</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вычисления в фоне]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65333#p65333" />
			<content type="html"><![CDATA[<p>creature.ws, спасибо, то, что доктор прописал.</p>]]></content>
			<author>
				<name><![CDATA[adsumus]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28902</uri>
			</author>
			<updated>2012-11-02T00:22:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65333#p65333</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вычисления в фоне]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65325#p65325" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>F1::
    loop 2 {
        Input, string, IV, {Enter}
        arg%A_Index% := RegExReplace(string, &quot;\D+&quot;)
    }
    MsgBox % arg1/arg2*100
    return</code></pre></div><p>Input - интерфейс взаимодействия с «родным» хуком.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-11-01T16:37:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65325#p65325</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вычисления в фоне]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65320#p65320" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?id=6350">http://forum.script-coding.com/viewtopic.php?id=6350</a></p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-11-01T16:05:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65320#p65320</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вычисления в фоне]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65316#p65316" />
			<content type="html"><![CDATA[<p>А можно то же самое, только без ввода чисел в появляющиеся окна. Т.е. на экране ничего не возникает, до появления ответа.<br />1-е число всегда меньше 2-го. 13/50=0.26 26%</p>]]></content>
			<author>
				<name><![CDATA[adsumus]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28902</uri>
			</author>
			<updated>2012-11-01T15:18:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65316#p65316</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вычисления в фоне]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65305#p65305" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>SetFormat, FloatFast, 0.3 ; формат округления числа
OnMessage(WM_LBUTTONDOWN:=0x201, &quot;WndProc&quot;)

;Space:: ; клавишу можете задать сами
Repeat:
   ++Itr
   SetTimer, WSets, -50
   InputBox, Counter
           , % &quot;AHK InputBox&quot;
           , % &quot;digits only,   step: &quot;Itr
           ,, 125, 90
           , A_ScreenWidth/2-65
           , A_ScreenHeight/2-45
   If ErrorLevel
      ExitApp
   If Not Counter~=&quot;^[0-9]*\.?[0-9]+$&quot;
   {
      --Itr
      Goto, Repeat
   }
   A_Space . (Itr=1 ? Dividend:=Counter:Divider:=Counter)
   Goto, % Itr=1 ? &quot;Repeat&quot;:&quot;Continue&quot;
Continue:
; в общем исходя из того, что я не понял, 6-той пункт, сделал пример отсюда:
; http://ru.wikipedia.org/wiki/Процент
   MsgBox, 262208
         , % Dividend &quot;/&quot;Divider &quot;%&quot;
         , % &quot;Result: &quot;Dividend*(Divider/100) ; собственно тут математика
         ;, % 1.5
   ExitApp

WSets:
   WinSet, AlwaysOnTop, On, A
   WinSet, Style, -0x1440000, A
   ControlSetText, Button2, Exit, A
   Return

WndProc(p*)
{
   PostMessage, WM_NCLBUTTONDOWN:=0xA1, HTCAPTION:=2,,, % &quot;ahk_id&quot;p.4
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-11-01T11:43:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65305#p65305</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Вычисления в фоне]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65298#p65298" />
			<content type="html"><![CDATA[<p>Добрый день!</p><p>Подскажите, пожалуйста, как реализовать следующее:<br />1. Нажимаем горячую клавишу.<br />2. Вводим число.<br />3. Нажимаем enter.<br />4. Вводим второе число.<br />5. Нажимаем enter.<br />6. Результат деления 1-го числа на 2-е в процентах выводим на экран.</p><p>Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[adsumus]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28902</uri>
			</author>
			<updated>2012-11-01T05:57:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65298#p65298</id>
		</entry>
</feed>
