<?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=11366&amp;type=atom" />
	<updated>2016-02-28T21:23:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11366</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: рандомный вывод мыши на координаты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101488#p101488" />
			<content type="html"><![CDATA[<p>Спасибо за помощь, все работает!!!</p>]]></content>
			<author>
				<name><![CDATA[Veranda]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33724</uri>
			</author>
			<updated>2016-02-28T21:23:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101488#p101488</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: рандомный вывод мыши на координаты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101487#p101487" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>но и на <span class="bbu">рандомные</span> координаты <span class="bbu">внутри</span> самой кнопки</p></blockquote></div><div class="codebox"><pre><code>
coord := [{x:100,y:100},{x:300,y:500},{x:500,y:300},{x:500,y:500},{x:400,y:10},{x:50,y:600}]

1::
	Random,Rpos,1,% coord.MaxIndex()
	Random,RX,0,50
	Random,RY,0,60
	MouseMove, % coord[Rpos].x + RX, % coord[Rpos].y + RY , 0
	ToolTip % &quot;X:&quot; coord[Rpos].x + RX &quot;`nY:&quot; coord[Rpos].y + RY
	Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-02-28T21:07:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101487#p101487</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: рандомный вывод мыши на координаты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101481#p101481" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>cord := [ {x:100,y:100} , {x:300,y:500} , {x:500,y:300} , {x:500,y:500} , {x:400,y:10} , {x:50,y:600} ]

F1::
Random,Rpos,1,% cord.MaxIndex()
MouseMove, % cord[Rpos].x + 25, % cord[Rpos].y + 30 , 0
ToolTip % &quot;X:&quot; cord[Rpos].x + 25 &quot;`nY:&quot; cord[Rpos].y + 30
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-02-28T11:11:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101481#p101481</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: рандомный вывод мыши на координаты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101480#p101480" />
			<content type="html"><![CDATA[<p>По ходу использования кода - возник новый вопрос:<br />Как кооординаты каждой кнопки задать в неких пределах ( пример - размер кнопки 50*60 pix), чтобы курсор перемещался не только на координаты рандомной кнопки,&nbsp; но и на рандомные координаты внутри самой кнопки? <img src="//forum.script-coding.com/img/smilies/roll.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Veranda]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33724</uri>
			</author>
			<updated>2016-02-28T11:07:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101480#p101480</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: рандомный вывод мыши на координаты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101479#p101479" />
			<content type="html"><![CDATA[<p>Да, то что надо! Огромное спасибо!</p>]]></content>
			<author>
				<name><![CDATA[Veranda]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33724</uri>
			</author>
			<updated>2016-02-28T10:57:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101479#p101479</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: рандомный вывод мыши на координаты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101477#p101477" />
			<content type="html"><![CDATA[<p>Вот так?<br /></p><div class="codebox"><pre><code>cord := [ {x:100,y:100} , {x:300,y:500} , {x:500,y:300} , {x:500,y:500} , {x:400,y:10} , {x:50,y:600} ]

F1::
Random,Rpos,1,% cord.MaxIndex()
MouseMove, % cord[Rpos].x , % cord[Rpos].y , 0
ToolTip % &quot;X:&quot; cord[Rpos].x &quot;`nY:&quot; cord[Rpos].y
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-02-28T10:35:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101477#p101477</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: рандомный вывод мыши на координаты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101476#p101476" />
			<content type="html"><![CDATA[<p>Здравствуйте, формучане!<br />Есть ряд областей на экране, по которым необходимо совершить действие&nbsp; - передвинуть на указанные координаты курсор мыши.<br />Сам вопрос:<br />При условии что значения &quot;х&quot; и &quot;у&quot; являются заранее предопределенными для каждой кнопки - как создать архив с данными значениями и рандомным выводом оттуда координат, на которые необходимо передвинуть мышь?</p><p>Области идут в ряд( кнопки), с небольшими отступами друг от друга - при вызове через &quot;random&quot; координат - периодически курсор попадает на неактивную область между кнопками.</p>]]></content>
			<author>
				<name><![CDATA[Veranda]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33724</uri>
			</author>
			<updated>2016-02-28T10:14:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101476#p101476</id>
		</entry>
</feed>
