<?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=14779&amp;type=atom" />
	<updated>2019-05-12T18:19:28Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14779</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: сброс записанных координат мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134310#p134310" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
1::  
	Loop
	{
		If !Coord &amp;&amp; (Coord := 1) 
			MouseGetPos x, y
		MsgBox,,, % x &quot;`n&quot; y,0.3
	} 
	
2:: 
	; Pause  
	Coord := 0
	Return
</code></pre></div><p>Или:<br /></p><div class="codebox"><pre><code>
1::
	Break := 0
	MouseGetPos x, y
	Loop
	{
		If Break
			Break 
		MsgBox,,, % x &quot;`n&quot; y,0.3
	}
	Return
	
2::  
	Break := 1
	Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-05-12T18:19:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134310#p134310</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: сброс записанных координат мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134307#p134307" />
			<content type="html"><![CDATA[<p>MouseMove?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2019-05-12T16:32:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134307#p134307</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: сброс записанных координат мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134305#p134305" />
			<content type="html"><![CDATA[<p>1) При нажатии F1 MouseGetPos записывает переменные координат мышки в Click %x% %y% для цикла Loop. Какой командой возможно сделать что бы при нажатии F2::Pause записанные координаты мышки сбрасывались для повторного перезаписи на F1 ?</p><div class="codebox"><pre><code>F1::
GuiControlGet, Edit 
GuiControlGet, Obr
MouseGetPos x, y, 1
Loop
{
    FileReadLine, a, %A_WorkingDir%\text.txt, %A_Index%
	Click %x% %y%
    SendInput %oBr% %a% {enter}	
    sleep, %Edit%
}
F2::Pause
F3::Reload
GuiClose:
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[rossmad3]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33356</uri>
			</author>
			<updated>2019-05-12T15:29:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134305#p134305</id>
		</entry>
</feed>
