<?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=7747&amp;type=atom" />
	<updated>2012-11-02T14:28:00Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7747</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: TrayTip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65352#p65352" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#SingleInstance, Force
Menu, Tray, NoStandard
;Menu, Tray, DeleteAll
Menu, podmenu, Add, Ссылка1, Ссылка1
Menu, podmenu, Add, Ссылка2, Ссылка2
Menu, Tray, Add, Пункт1, :podmenu
Return
 
Ссылка1:
Ссылка2:
   ThisLabel:=A_ThisLabel
   Menu, podmenu, Uncheck, % &quot;Ссылка&quot;(ThisLabel~=&quot;1&quot; ? 2:1)
   Menu, podmenu, ToggleCheck, % &quot;Ссылка&quot;(ThisLabel~=&quot;1&quot; ? 1:2)
   Return
 
F1::
    if (ThisLabel = &quot;Ссылка1&quot;)
        TrayTip, Ссылка 1 активна, 5, 1
    if (ThisLabel = &quot;Ссылка2&quot;)
        TrayTip, Ссылка 2 активна, 5, 1
    return
 
End::ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-11-02T14:28:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65352#p65352</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: TrayTip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65326#p65326" />
			<content type="html"><![CDATA[<p>Ожидал немного другого решения, ибо пунктов в трее будет около 10 и в зависимости от активного будет выводиться текст с разными активациями (F1-F10), скрипт на основе radio ниже выложил, ищу похожее решение для трея<br /></p><div class="codebox"><pre><code>Gui,Add, Radio,x15 y33 gUPD Vomode1, Тест1
Gui,Add, Radio,x105 y33 gUPD Vomode2, Тест2
gui,show
Upd:
Gui, Submit, NoHide
If omode1=1
  mode:=1
If omode2=1
  mode:=2
return

F1::
If mode = 1
TrayTip, текст свой
If mode = 2
TrayTip, текст свой
return 
F2::
If mode = 1
TrayTip, текст свой
If mode = 2
TrayTip, текст свой
return 

End::ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Uniors]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28904</uri>
			</author>
			<updated>2012-11-01T16:47:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65326#p65326</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: TrayTip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65321#p65321" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#SingleInstance, Force
Menu, Tray, NoStandard
;Menu, Tray, DeleteAll
Menu, podmenu, Add, Ссылка1, Ссылка1
Menu, podmenu, Add, Ссылка2, Ссылка2
Menu, Tray, Add, Пункт1, :podmenu
Return

Ссылка1:
Ссылка2:
   ThisLabel:=A_ThisLabel
   Menu, podmenu, Uncheck, % &quot;Ссылка&quot;(ThisLabel~=&quot;1&quot; ? 2:1)
   Menu, podmenu, ToggleCheck, % &quot;Ссылка&quot;(ThisLabel~=&quot;1&quot; ? 1:2)
   Return

F1::TrayTip, % !ThisLabel ? &quot;&quot;:(&quot;Ссылка&quot;(ThisLabel~=&quot;1&quot; ? 1:2))
           , % !ThisLabel ? &quot;Пункт меню не выбран&quot;:&quot;Активна&quot;
           , 5, 1

End::ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-11-01T16:13:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65321#p65321</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: TrayTip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=65300#p65300" />
			<content type="html"><![CDATA[<p>Доброго времени суток <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /><br />Нужно по нажатию клавиши F1 вывести определенный текст в зависимости от выбранного пункта в меню трея</p><div class="codebox"><pre><code>#SingleInstance force
Menu,Tray,NoStandard 
Menu,Tray,DeleteAll
Menu, podmenu, add, Ссылка1, Ссылка1
Menu, podmenu, add, Ссылка2, Ссылка2
Menu, tray, add, Пункт1, :podmenu
return

Ссылка1:
Menu, podmenu, Uncheck, Ссылка2
Menu, podmenu, ToggleCheck, Ссылка1
return

Ссылка2:
Menu, podmenu, Uncheck, Ссылка1
Menu, podmenu, ToggleCheck, Ссылка2
return


If Ссылка1=1
  mode:=1
If Ссылка2=1
  mode:=2
return

F1::
If mode = 1
TrayTip, Ссылка 1 активна, 5, 1
If mode = 2
TrayTip, Ссылка 2 активна, 5, 1
return

End::
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Uniors]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28904</uri>
			</author>
			<updated>2012-11-01T08:52:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=65300#p65300</id>
		</entry>
</feed>
