<?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=7568&amp;type=atom" />
	<updated>2012-12-23T17:43:08Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=7568</id>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=67418#p67418" />
			<content type="html"><![CDATA[<p>На windows 7 скрипт не работает в большинстве программ.<br />Я пользуюсь этим вариантом:</p><div class="codebox"><pre><code>~*$WheelDown::
~*$WheelUp::
stringtrimleft,Wheel,A_ThisHotkey,3
keywait,%a_thishotkey%,L
if Wheell=0
  return

mousegetpos,ctrlx,,win,ctrl
winget,id,id,A
if (win!=id)
{
  if ctrl=
    winactivate,ahk_id %win%
  else
  {
    ControlGet,Style,Style,,%ctrl%,ahk_id %win%
    if (Style &amp; 0x00100000)
    {
      ControlGetPos,Xctrl,,ctrlW,,%ctrl%,ahk_id %win%
      winGetPos,wx,,ww,,ahk_id %win%
      ctrlxz:=ctrlx-(wx+Xctrl)
      checks:=ctrlxz*100/ctrlW
      if (checks&gt;70 and checks&lt;100)
      {
        if Wheel=WheelDown
          loop,6
            PostMessage,0x114,1,0,%ctrl%,ahk_id %win%
        if Wheel=WheelUp
          loop,6
            PostMessage,0x114,0,0,%ctrl%,ahk_id %win%
      }
      else
      {

        if Wheel=WheelDown
          PostMessage,0x115,1,0,%ctrl%,ahk_id %win%
        if Wheel=WheelUp
          PostMessage,0x115,0,0,%ctrl%,ahk_id %win%
      }
    }
    else
    {
      if Wheel=WheelDown
        PostMessage,0x115,1,0,%ctrl%,ahk_id %win%
      if Wheel=WheelUp
        PostMessage,0x115,0,0,%ctrl%,ahk_id %win%
    }
  }
}
else
{
  ControlGet,Style,Style,,%ctrl%,ahk_id %id%
  if (Style &amp; 0x00100000)
  {
    ControlGetPos,Xctrl,,ctrlW,,%ctrl%,ahk_id %id%
    winGetPos,wx,,ww,,ahk_id %id%
    ctrlxz:=ctrlx-(wx+Xctrl)
    checks:=ctrlxz*100/ctrlW
    if (checks&gt;70 and checks&lt;100)
    {
      if Wheel=WheelDown
      {
        loop,6
          PostMessage,0x114,1,0,%ctrl%,ahk_id %id%
        PostMessage,0x115,0,0,%ctrl%,ahk_id %id%
      }
      if Wheel=WheelUp
      {
        loop,6
          PostMessage,0x114,0,0,%ctrl%,ahk_id %id%
        PostMessage,0x115,1,0,%ctrl%,ahk_id %id%
      }
    }
 }
}
return
</code></pre></div><p>Возможно его можно оптимизировать...</p><p>Также есть возможность горизонтальной прокрутки если положение мыши в пределах 30 % от правого края контрола (не окна).<br />Есть только две проблемы:<br />1) Вращение ролика посылается и в активное окно тоже, можно конечно убрать &quot;~*$&quot;, но тогда теряется способность нормально работать в других (некоторых) приложениях, которым нужна &quot;чистая&quot; передача вращения.</p><p>2) По той же причине при прокрутке горизонтальной полосы окна, окно прокручивается вверх и влево, вниз и вправо. Исправил возвратом окна вниз и вверх соответственно, но явно видны дерганья.</p><p>Если возможно исправить не убирая &quot;~*$&quot; буду очень благодарен.<br />Возможно добавить ускорение прокрутки.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2012-12-23T17:43:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=67418#p67418</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63944#p63944" />
			<content type="html"><![CDATA[<p>Вопрос озвученный выше в силе.</p>]]></content>
			<author>
				<name><![CDATA[Mikki]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5905</uri>
			</author>
			<updated>2012-09-18T07:41:52Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63944#p63944</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63869#p63869" />
			<content type="html"><![CDATA[<p>Это не альтернатива - при работе скрипта, если в окне два списка, прокручивается тот список который под мышкой. В варианте <strong>teadrinker</strong>-а - прокручивается тот в котором стоит курсор.</p><p>Продолжаю про &quot;не прокручивание с помощью скрипта&quot; - а в чем там проблема? Lister не понимает SendMessage, 0x20A,..?</p>]]></content>
			<author>
				<name><![CDATA[Mikki]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5905</uri>
			</author>
			<updated>2012-09-14T17:18:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63869#p63869</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63867#p63867" />
			<content type="html"><![CDATA[<p>По идее, команда должна лишь уведомлять приложения о изменении переменных окружения.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-09-14T16:16:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63867#p63867</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63863#p63863" />
			<content type="html"><![CDATA[<p>Ух ты, даже не знал про неё! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-09-14T13:43:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63863#p63863</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63857#p63857" />
			<content type="html"><![CDATA[<p>Или <a href="http://www.script-coding.com/AutoHotkey/EnvUpdate.html">EnvUpdate</a> <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-09-14T09:29:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63857#p63857</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63854#p63854" />
			<content type="html"><![CDATA[<p>Или logout + login</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-09-14T08:36:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63854#p63854</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63851#p63851" />
			<content type="html"><![CDATA[<p>+перезагрузка.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-09-14T08:24:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63851#p63851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63843#p63843" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>HKEY_CURRENT_USER\Control Panel\Desktop\UserPreferencesMask</code></pre></div><p>REG_BINARY, изменить на 9F 3E 05 80.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-09-14T07:49:51Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63843#p63843</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63841#p63841" />
			<content type="html"><![CDATA[<p>Есть и в XP и в семёрке. Настраивается через реестр. Но сейчас не помню, это погуглить надо.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-09-14T07:40:52Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63841#p63841</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63840#p63840" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Альтернативное решение — настроить Windows так, чтобы окно активировалось при наведении курсора, но при этом не выходило на передний план.</p></blockquote></div><p>Про какую винду идет речь? В winXP таких настроек что-то не припомню.</p>]]></content>
			<author>
				<name><![CDATA[monsoon]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=6758</uri>
			</author>
			<updated>2012-09-14T07:31:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63840#p63840</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63835#p63835" />
			<content type="html"><![CDATA[<p>Альтернативное решение — настроить Windows так, чтобы окно активировалось при наведении курсора, но при этом не выходило на передний план.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-09-13T18:29:30Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63835#p63835</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63834#p63834" />
			<content type="html"><![CDATA[<p>Да, есть окна, которые не реагируют. Смутно помню, что было какое-то решение для по крайней мере некоторых из них, и я его у себя пробовал. Но т.к. из-за него появлялись какие-то глюки с &quot;нормальными&quot; окнами, я от него отказался. В чём там была фишка и где я брал решение, к сожалению, напрочь забылось. Возможно, на англофоруме.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2012-09-13T15:07:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63834#p63834</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[АНК : (из Коллекци)Прокрутка окна под курсором мыши без активации окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=63833#p63833" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?id=456">ссылка на Коллекцию</a><br />В TotalCommander-е есть свой просмотрщик - Lister (ahk_class TLister). При выключенном скрипте - колесико прокручивает текст. При включённом - не реагирует на колесо.</p>]]></content>
			<author>
				<name><![CDATA[Mikki]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5905</uri>
			</author>
			<updated>2012-09-13T14:26:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=63833#p63833</id>
		</entry>
</feed>
