<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Определить на какой TrayTip Был Клик]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11972&amp;type=atom" />
	<updated>2016-09-02T13:03:16Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11972</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить на какой TrayTip Был Клик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107260#p107260" />
			<content type="html"><![CDATA[<p>Нет, мои примеры с треем в десятке, вроде, не работают, там поменялось что-то, а у меня семёрка.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-09-02T13:03:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107260#p107260</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить на какой TrayTip Был Клик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107255#p107255" />
			<content type="html"><![CDATA[<p>А эти трейтипы появляются в случайном порядке?<br />Если нет, то можно присуждать какой-нибудь глобальной переменной их название.<br />Если этот вариант не подходит, то можно с помощью acc.<br />Либо ждать помощи от тех, кто в теме, например, от teadrinker.<br />Он выкладывал различные скрипты связанные с треем.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-09-02T09:55:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107255#p107255</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить на какой TrayTip Был Клик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107248#p107248" />
			<content type="html"><![CDATA[<p>В вин 10 окно имеет другой класс. И от туда не могу получить текст.</p>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-09-02T02:05:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107248#p107248</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить на какой TrayTip Был Клик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107242#p107242" />
			<content type="html"><![CDATA[<p>Действительно, одновременно может существовать только один TrayTip.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2016-09-01T20:00:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107242#p107242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить на какой TrayTip Был Клик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107237#p107237" />
			<content type="html"><![CDATA[<p>Например так:<br /></p><div class="codebox"><pre><code>

OnMessage(0x400 + 0x4, &quot;AHK_NOTIFYICON&quot;) ; WM_USER + AHK_NOTIFYICON

F1::TrayTip,1,2,1,1
F2::TrayTip,3,4,1,2


AHK_NOTIFYICON(wParam, lParam,Msg,Hwnd)
{
   Global
   if (lParam = 0x402) ; TTM_ADDTOOL	Create - Сообщение создания окна TrayTip.
   {
      ControlGetText, Text,,ahk_class tooltips_class32
   }
   
   if (lParam = 0x404) ; TTM_ADDTOOL	Close - Сообщение закрытия окна если истекло время или нажат крестик.
   {
      ToolTip Время показа окна закончено или нажат крестик.
   }
   
   if (lParam = 0x405) ; TTM_ADDTOOL	Close - Сообщение закрытия окна если был клик по сообщению
   {
      if Text = 2
         msgbox f1
      else
         msgbox f2 
   }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-09-01T19:31:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107237#p107237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить на какой TrayTip Был Клик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107236#p107236" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, при щелчке по TrayTip&#039;у он сразу исчезает. Как <em>ControlGetText</em> поможет узнать текст окна, которое уже не существует?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2016-09-01T19:17:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107236#p107236</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить на какой TrayTip Был Клик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107235#p107235" />
			<content type="html"><![CDATA[<p>Можно через:<br /></p><div class="codebox"><pre><code>ControlGetText, Text,,ahk_class tooltips_class32</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-09-01T19:05:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107235#p107235</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить на какой TrayTip Был Клик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107229#p107229" />
			<content type="html"><![CDATA[<p>Раньше уже пытались что-то придумать.<br /><a href="http://forum.script-coding.com/viewtopic.php?id=8853">AHK: Добавление ссылки или функции в TrayTip</a></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2016-09-01T10:02:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107229#p107229</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Определить на какой TrayTip Был Клик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107220#p107220" />
			<content type="html"><![CDATA[<p>Создание, клик и закрытие TrayTip Можно отследить так:<br /></p><div class="codebox"><pre><code>
OnMessage(0x400 + 0x4, &quot;AHK_NOTIFYICON&quot;) ; WM_USER + AHK_NOTIFYICON

F1::TrayTip,1,2,1,1
F2::TrayTip,3,4,1,2


AHK_NOTIFYICON(wParam, lParam,Msg,Hwnd)
{

	if (lParam = 0x402) ; TTM_ADDTOOL	Create - Сообщение создания окна TrayTip.
	{
		ToolTip Создано окно TrayTip.
	}
	
	if (lParam = 0x404) ; TTM_ADDTOOL	Close - Сообщение закрытия окна если истекло время или нажат крестик.
	{
		ToolTip Время показа окна закончено или нажат крестик.
	}
	
	if (lParam = 0x405) ; TTM_ADDTOOL	Close - Сообщение закрытия окна если был клик по сообщению
	{
		ToolTip Клик.
	}
}</code></pre></div><p>Как можно определить по какому TrayTip&#039;у был клик?<br />Получается надо будет вытащить информацию с помощью TTM_GETTOOLINFO, только что то не получается.</p>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-09-01T07:53:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107220#p107220</id>
		</entry>
</feed>
