<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; АНК: установление количества повторов через окно]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6854&amp;type=atom" />
	<updated>2012-02-23T16:58:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6854</id>
		<entry>
			<title type="html"><![CDATA[Re: АНК: установление количества повторов через окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57167#p57167" />
			<content type="html"><![CDATA[<p><a href="http://www.autohotkey.com/docs/commands/InputBox.htm">InputBox</a> - тоже вариант:</p><div class="codebox"><pre><code>F9::
Settings:
   InputBox, Counter
           , Settings
           , % &quot;  Enter digits only&quot;
           ,, 125, 115
           , A_ScreenWidth/2-62
           , A_ScreenHeight/2-55
           ,,, % &quot;  Set loopcount  &quot;
   If ErrorLevel
      ExitApp
   If RegExMatch(Counter, &quot;\D&quot;)
      Goto, Settings
   Loop, % Counter
   {
      MouseClick, Left, 580, 577
      Sleep, 2500
      MouseClick, Left, 900, 370
      Sleep, 500
   }
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-02-23T16:58:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57167#p57167</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: установление количества повторов через окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57165#p57165" />
			<content type="html"><![CDATA[<p><a href="http://www.autohotkey.com/docs/commands/InputBox.htm">InputBox</a>.</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-02-23T15:16:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57165#p57165</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: установление количества повторов через окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57162#p57162" />
			<content type="html"><![CDATA[<p>Просили пример, он есть, теперь <strong>можно</strong> делать с ним, что душе угодно.</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-02-23T14:23:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57162#p57162</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: установление количества повторов через окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57161#p57161" />
			<content type="html"><![CDATA[<p>Вместо этого<br /></p><div class="quotebox"><cite>Grey пишет:</cite><blockquote><div class="codebox"><pre><code>   If RegExMatch(Counter, &quot;\D&quot;)
   {
      MsgBox, 262160, Error, Enter digits only!, 1
      Goto, Settings
   }</code></pre></div></blockquote></div><p>можно просто добавить слово &quot;Number&quot; в опции <a href="http://www.autohotkey.com/docs/commands/GuiControls.htm#Edit">Edit</a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-02-23T11:43:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57161#p57161</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: установление количества повторов через окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57159#p57159" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>F9::
Settings:
   Gui, +AlwaysOnTop -MinimizeBox
   Gui, Add, Edit, vCounter x6 y6 w75 h20, Set loopcount
   Gui, Add, Button, gConfirm xp+80 yp wp-25 hp, &amp;Confirm
   Gui, Show, Center h34 w142, Settings
   Return

Confirm:
   Gui, Submit
   Gui, Destroy
   If RegExMatch(Counter, &quot;\D&quot;)
   {
      MsgBox, 262160, Error, Enter digits only!, 1
      Goto, Settings
   }
   Loop, % Counter
   {
      MouseClick, Left, 580, 577
      Sleep, 2500
      MouseClick, Left, 900, 370
      Sleep, 500
   }
   Return

GuiClose:
   ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-02-23T11:12:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57159#p57159</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[АНК: установление количества повторов через окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57155#p57155" />
			<content type="html"><![CDATA[<p>Подскажите, желательно с примером, как сделать так что бы после нажатия F9 появилось окно в котором можно было ввести количество повторов( цифру после Loop) и подтвердить, после чего будет выполнятся комбинация ниже.<br /></p><div class="codebox"><pre><code>F9::

   Loop
   {
      MouseClick, Left, 580, 577
      Sleep, 2500
      MouseClick, Left, 900, 370
      Sleep, 500
   }
   
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Amon-Ra]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27341</uri>
			</author>
			<updated>2012-02-23T09:13:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57155#p57155</id>
		</entry>
</feed>
