<?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=6863&amp;type=atom" />
	<updated>2012-02-24T19:45:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6863</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Контрол и класс окна под курсором]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57204#p57204" />
			<content type="html"><![CDATA[<p>Полнейший респект!</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2012-02-24T19:45:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57204#p57204</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Контрол и класс окна под курсором]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57201#p57201" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#If MouseIsTrayOver(&quot;TrayClockWClass1&quot;)
  ~LButton:: MsgBox
  Return
#If
 
MouseIsTrayOver(WinTitle) {
  MouseGetPos,,,, classNN
  return classNN = WinTitle
}</code></pre></div><p>Либо более универсально <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="codebox"><pre><code>#If MouseIsTrayOver(&quot;Shell_TrayWnd&quot;)
  ~LButton:: MsgBox
  Return
#If
 
MouseIsTrayOver(WinTitle) {
  MouseGetPos,,, hwndWin, ClassNN
  WinGetClass, winClass, ahk_id %hwndWin%
  return ClassNN = WInTitle || winClass = WinTitle
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-02-24T19:23:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57201#p57201</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Контрол и класс окна под курсором]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57200#p57200" />
			<content type="html"><![CDATA[<p>Пример выведет сообщение по клику на панели задач.</p><div class="codebox"><pre><code>
#If MouseIsTrayOver(&quot;ahk_class Shell_TrayWnd&quot;)
  ~LButton:: MsgBox
  Return
#If

MouseIsTrayOver(WinTitle) {
  MouseGetPos,,, Win
  return WinExist(WinTitle . &quot; ahk_id &quot; . Win)
}</code></pre></div><p>А получится ли сверять в первую очередь не класс окон под курсором, а какой-нибудь контрол, к примеру часов с панели — &quot;TrayClockWClass1&quot;?</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2012-02-24T18:38:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57200#p57200</id>
		</entry>
</feed>
