<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: ToolTip при наведении на контрол]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=8909&amp;type=atom" />
	<updated>2018-06-13T15:41:37Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=8909</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=125969#p125969" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>OnMessage(0x200, &quot;WM_MOUSEMOVE&quot;) 
 
Gui, Add, Text, vText1 +HwndText1,          Первый текст
Gui, Add, Text, vText2 +HwndText2 disabled, Второй текст
Gui, Add, Text, vText3 +HwndText3,          Третий текст
Gui, Add, Text, vText4 +HwndText4 disabled, Четвёртый текст

Help_Text := {(Text1): &quot;Подсказка для Text1&quot;, (Text2): &quot;Подсказка для Text2&quot;}
Help_Text[Text3] := &quot;Подсказка для Text3&quot;
Help_Text[Text4] := &quot;Подсказка для Text4&quot;

Gui, Show, h100 w100




WM_MOUSEMOVE()
{
global Help_Text
MouseGetPos, , , , OutputVarControl, 2 ; 1|2|3
ToolTip % Help_Text[OutputVarControl]
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2018-06-13T15:41:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=125969#p125969</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=125966#p125966" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>OnMessage(0x200, &quot;WM_MOUSEMOVE&quot;)&nbsp; <br />&nbsp; <br />global Help_Text1 := &quot;Подсказка для Text1&quot;&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; , Help_Text2 := &quot;Подсказка для Text2&quot;&nbsp; <br /> ; SS_NOTIFY := 0x100<br />Gui, Add, Text, vText1 +0x100, Text1<br />Gui, Add, Text, vText2 +0x100 y+50, Text2<br />Gui, Show&nbsp; <br />return <br />&nbsp; <br />WM_MOUSEMOVE()&nbsp; &nbsp;{&nbsp; <br />&nbsp; &nbsp; Static PrControl<br />&nbsp; &nbsp; If (A_GuiControl &lt;&gt; PrControl)&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; &nbsp; PrControl := A_GuiControl<br />&nbsp; &nbsp; &nbsp; &nbsp; ToolTip, % Help_%PrControl% <br />&nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; <br />}</p></blockquote></div><p>А реально ли реализовать ToolTip для неактивных (disabled) контролов?</p>]]></content>
			<author>
				<name><![CDATA[ProgMaster90]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33925</uri>
			</author>
			<updated>2018-06-13T13:13:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=125966#p125966</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77480#p77480" />
			<content type="html"><![CDATA[<p>Ладно не забивайте голову лишней морокой, сам сделал.</p>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2013-11-23T01:52:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77480#p77480</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77478#p77478" />
			<content type="html"><![CDATA[<p>А где тут Button?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-11-22T19:38:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77478#p77478</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77476#p77476" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><div class="quotebox"><blockquote><p>Взял скрипт из той темы, только почему он не работает на контрол &quot;Text&quot;?</p></blockquote></div><p>Каюсь, на Text не проверял. Необходимо добавить стиль SS_NOTIFY, или метку перехода:<br /></p><div class="codebox"><pre><code>
OnMessage(0x200, &quot;WM_MOUSEMOVE&quot;)  
  
global Help_Text1 := &quot;Подсказка для Text1&quot;  
        , Help_Text2 := &quot;Подсказка для Text2&quot;  
 ; SS_NOTIFY := 0x100
Gui, Add, Text, vText1 +0x100, Text1
Gui, Add, Text, vText2 +0x100 y+50, Text2
Gui, Show  
return 
  
WM_MOUSEMOVE()   {  
    Static PrControl
    If (A_GuiControl &lt;&gt; PrControl)   {
        PrControl := A_GuiControl
        ToolTip, % Help_%PrControl% 
    }      
} 
</code></pre></div></blockquote></div><p>А как его отредактировать чтобы он работал только на контрол Text, а на Button не реагировал?</p>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2013-11-22T08:45:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77476#p77476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77361#p77361" />
			<content type="html"><![CDATA[<p>Можно ещё и </p><div class="codebox"><pre><code>SetBatchLines -1</code></pre></div><p> добавить, у меня на I-3 временами 1% процесс ест. Если решать подобные задачи очевидным путём с бесконечным циклом проверок, 5 таких скриптов точно нагрузят, а их со временем с таким подходом точно накопится. И ещё, если цикл прервать другим потоком, то до его завершения ToolTip вы не увидите.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-11-16T13:56:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77361#p77361</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77359#p77359" />
			<content type="html"><![CDATA[<p>Не согласен, что данный бесконечный цикл ощутимо нагрузит пк.<br />Поставить в конце sleep, 100 - и все будет ОК.<br />Или вы работаете на 486? <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2013-11-16T13:35:17Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77359#p77359</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77358#p77358" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Взял скрипт из той темы, только почему он не работает на контрол &quot;Text&quot;?</p></blockquote></div><p>Каюсь, на Text не проверял. Необходимо добавить стиль SS_NOTIFY, или метку перехода:<br /></p><div class="codebox"><pre><code>
OnMessage(0x200, &quot;WM_MOUSEMOVE&quot;)  
  
global Help_Text1 := &quot;Подсказка для Text1&quot;  
        , Help_Text2 := &quot;Подсказка для Text2&quot;  
 ; SS_NOTIFY := 0x100
Gui, Add, Text, vText1 +0x100, Text1
Gui, Add, Text, vText2 +0x100 y+50, Text2
Gui, Show  
return 
  
WM_MOUSEMOVE()   {  
    Static PrControl
    If (A_GuiControl &lt;&gt; PrControl)   {
        PrControl := A_GuiControl
        ToolTip, % Help_%PrControl% 
    }      
} 
</code></pre></div><div class="quotebox"><cite>Alectric пишет:</cite><blockquote><p>Значит я на темной стороне, выходит. И несу в форум зло.</p></blockquote></div><p>Ну зачем же так буквально. <br />Просто такой цикл ощутимо нагрузит пк.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-11-16T13:26:24Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77358#p77358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77348#p77348" />
			<content type="html"><![CDATA[<p>Off:</p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p><strong>Alectric</strong><br />Бесконечный цикл - это зло.</p></blockquote></div><p>Значит я на темной стороне, выходит. И несу в форум зло.</p></div></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-11-16T06:00:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77348#p77348</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77346#p77346" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p><a href="http://forum.script-coding.com/viewtopic.php?pid=71308#p71308">Была такая тема</a></p><p><strong>Alectric</strong><br />Бесконечный цикл - это зло.</p></blockquote></div><p>Взял скрипт из той темы, только почему он не работает на контрол &quot;Text&quot;?</p>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2013-11-16T05:09:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77346#p77346</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77335#p77335" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?pid=71308#p71308">Была такая тема</a></p><p><strong>Alectric</strong><br />Бесконечный цикл - это зло.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-11-15T15:40:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77335#p77335</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77332#p77332" />
			<content type="html"><![CDATA[<p>Тогда нужно знать: название окна и название контрола (Static1 или Button6 и т.д. определить можно с помощью AU3_Spy).<br /></p><div class="codebox"><pre><code>loop
{
  mousegetpos
  wingettitle
  if (wintitle=&quot;Название окна&quot;)  ; если определенное mousegetpos-ом окно соответствует заданному
    if ctrl=Button4 ; тоже самое с контролом
      tooltip,Какой-то текст
}

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-11-15T12:24:52Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77332#p77332</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77323#p77323" />
			<content type="html"><![CDATA[<p>Немного не так я хотел, мне нужно чтобы наведя на определенный контрол мышкой, ToolTip показал бы какое нибудь сообщение например &quot;Hello World&quot;</p>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2013-11-15T08:56:48Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77323#p77323</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77301#p77301" />
			<content type="html"><![CDATA[<p>В такой последовательности:<br /></p><div class="codebox"><pre><code>
loop
{
  MouseGetPos
  controlgettext
  tooltip
}
</code></pre></div><p>Как использовать каждую из функций смотрите в справке.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-11-14T16:20:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77301#p77301</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: ToolTip при наведении на контрол]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=77300#p77300" />
			<content type="html"><![CDATA[<p>Всем привет, есть вопрос.У меня не получается сделать так чтобы при наведении курсора на контрол Text выдавало ToolTip сообщение.Помогите сделать рабочий код.</p>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2013-11-14T15:36:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=77300#p77300</id>
		</entry>
</feed>
