<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AutoHotkey: активация окна под курсором мыши]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=1828&amp;type=atom" />
	<updated>2008-07-08T12:22:07Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=1828</id>
		<entry>
			<title type="html"><![CDATA[Re: AutoHotkey: активация окна под курсором мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=12326#p12326" />
			<content type="html"><![CDATA[<p>Если Windows у вас настроен так, что при перемещении окон визуализируются только контуры окна (окна не перетаскиваются со всем содержимым), лучше подойдёт следующий вариант:<br /></p><div class="codebox"><pre><code>SetTimer, Activation, 500

~LButton:: SetTimer, Activation, Off
LButton Up:: SetTimer, Activation, On

Activation:
  MouseGetPos, X, Y, Win
  If(Win != PrevWin)
  {
    PrevWin := Win
    WinActivate, ahk_id %Win%
  }
Return</code></pre></div><p>Автор скрипта - <strong>YMP</strong>.</p>]]></content>
			<author>
				<name><![CDATA[The gray Cardinal]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2</uri>
			</author>
			<updated>2008-07-08T12:22:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=12326#p12326</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AutoHotkey: активация окна под курсором мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=12301#p12301" />
			<content type="html"><![CDATA[<p>Скрипт автоматически активирует любое окно при размещении над ним курсора мыши. Временная остановка и запуск - F12.<br /></p><div class="codebox"><pre><code>Loop
{
  MouseGetPos, X, Y, Win
  If(Win != PrevWin)
  {
    PrevWin := Win
    WinActivate, ahk_id %Win%
  }
  Sleep, 500
}

F12:: Pause        ; Приостановка / возобновление по F12.</code></pre></div><p>Автор скрипта - <strong>YMP</strong>.</p>]]></content>
			<author>
				<name><![CDATA[The gray Cardinal]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2</uri>
			</author>
			<updated>2008-07-07T16:54:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=12301#p12301</id>
		</entry>
</feed>
