<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=10126&amp;type=atom" />
	<updated>2014-11-08T20:08:58Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=10126</id>
		<entry>
			<title type="html"><![CDATA[Re: Рандомные движения мыши в макросе]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88134#p88134" />
			<content type="html"><![CDATA[<p>Большое спасибо не заметил .</p>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2014-11-08T20:08:58Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88134#p88134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Рандомные движения мыши в макросе]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88132#p88132" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Hot1 := le
Hot2 := ra
</code></pre></div><p>Тут наверно нужно так:<br /></p><div class="codebox"><pre><code>le := Hot1
ra := Hot2
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-11-08T19:23:02Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88132#p88132</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Рандомные движения мыши в макросе]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=88097#p88097" />
			<content type="html"><![CDATA[<p>Доброго времени суток. Сделал макрос на рандомные движения мыши влево вправо, ставишь значение в &quot;Random, x, 1, -1&quot; курсор передвигается, но только от края до края монитора. Помогите переделать макрос , что бы горизонтальные движения мыши были в пределах выставляемых значений.</p><div class="codebox"><pre><code>Gui, Color, 9CEE90
Gui, Font, s11 Bold, Cambria
Gui, Add, Text, x82 y10 w40 h20 cBlue, Y pos
Gui, Add, Edit, x92 y40 w30 h20 cRed vDllCall3 -WantReturn Limit, 
Gui, Add, Text, x12 y10 w40 h20 cBlue, X pos
Gui, Add, Edit, x22 y40 w30 h20 cRed vDllCall1 -WantReturn Limit, 
Gui, Add, Text, x162 y10 w40 h20 cBlue, Delay
Gui, Add, Edit, x162 y40 w30 h20 cRed vDllCall2 -WantReturn Limit,
Gui, Add, Edit, x62 y80 w30 h20 vHot1, 
Gui, Add, Edit, x132 y80 w30 h20 vHot2,
Gui, Add, Button, x122 y100 w42 h20 gOK,OK
Gui, Show, x557 y130 h171 w255, LightGreen = {:-)
return

*~1::
Suspend, toggle
return

~vk79::
Suspend, Off
ExitApp
return

*~vk1::
while GetKeyState(&quot;vk1&quot;,&quot;P&quot;)
{
Random, x, le, ra
DllCall(&quot;mouse_event&quot;,uint,1,int,x,int,y,uint,0,int,0)
DllCall(&quot;Sleep&quot;, UInt, Timee)
}
Return
OK:

Gui Submit, NoHide
Hot1 := le
Hot2 := ra
Timee := DllCall2
y := DllCall3

Return
GuiClose:
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2014-11-07T21:05:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=88097#p88097</id>
		</entry>
</feed>
