<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=10487&amp;type=atom" />
	<updated>2017-04-22T02:30:01Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=10487</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115250#p115250" />
			<content type="html"><![CDATA[<p>Спасибо Вам огромное <strong>Malcev</strong> , всё рассказали и всё расписали.<br /></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"><p>Рабочий код в &quot;15&quot; посту. Я там подправил.</p></div></div>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2017-04-22T02:30:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115250#p115250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115249#p115249" />
			<content type="html"><![CDATA[<p>Тут исчезают не кнопки, а гуи.<br />А гуи обычно исчезает после команды Submit.<br />В справке об этом всё написано.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-04-22T02:08:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115249#p115249</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115248#p115248" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong> , нет не понимаю алгоритм скрипта. А как сделать чтобы кнопки не исчезали после нажатия. Помогите пожалуйста.</p>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2017-04-22T01:53:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115248#p115248</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115242#p115242" />
			<content type="html"><![CDATA[<p>А вы алгоритм скрипта понимаете?<br />У вас таймером проверяется активно заданное окно или неактивно, если неактивно, то гуи исчезает (непонятно правда зачем).<br />У вас при нажатии на кнопку в гуи деактивируется заданное окно, гуи исчезает и соответственно клик не обрабатывется.<br />Чтобы этого избежать можно гуи задать стиль +E0x08000000 ; WS_EX_NOACTIVATE.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-04-22T01:28:15Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115242#p115242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115241#p115241" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong> , я убрал директиву &quot;#If &quot; и всё равно не работает.<br /></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="codebox"><pre><code>#Persistent
#NoEnv

settimer tool_bar, 10
Gui, tool_bar:Color, 000111
Gui,  tool_bar:+AlwaysOnTop -Caption +ToolWindow +LastFound +HwndGuiHwnd_toolbar +E0x08000000

Gui, tool_bar:Add, Button, x10 y1 w25 h25 gButton1, 1
Gui, tool_bar:Add, Button, x40 y1 w25 h25 gButton2, 2
Gui, tool_bar:Add, Button, x70 y1 w25 h25 gButton3, 3
Gui, tool_bar:Add, Button, x100 y1 w25 h25 gButton4, 4
Gui, tool_bar:Add, Button, x130 y1 w25 h25 gButton5, 5
return

Button1:
SendInput, {vk31}
Return

Button2:
SendInput, {vk32}
Return

Button3:
SendInput, {vk33}
Return

Button4:
SendInput, {vk34}
Return

Button5:
SendInput, {vk35}
Return

tool_bar:
MouseGetPos,,,Hwnd_ctrl_cursor,control_ctrl_cursor
IfWinActive ahk_class AkelPad4

{
WinGetPos X_win,Y_Win,W_Win,,ahk_class AkelPad4
if (!X_win ? &quot;&quot; : (X_win = X_win_old)) and (!Y_win ? &quot;&quot; : (Y_win = Y_win_old)) and (!W_win ? &quot;&quot; : (W_win = W_win_old)) 
return
X_win_old := X_win
Y_win_old := Y_win
W_win_old := W_win
H_win_old := H_win
X_bar := X_win + W_win -850 
Y_bar := Y_win  
Gui, tool_bar:show, x%X_bar% y%Y_bar% NA, tool_bar_custom

}
else
{
Gui, tool_bar:Hide
X_win_old := &quot;&quot;
Y_win_old := &quot;&quot;
W_win_old := &quot;&quot;

}

WinSet, Transcolor, 000111, tool_bar_custom

Return</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2017-04-21T22:14:02Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115241#p115241</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115232#p115232" />
			<content type="html"><![CDATA[<p>Не должно, так как вы вставили директиву #If.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-04-21T13:48:49Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115232#p115232</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115230#p115230" />
			<content type="html"><![CDATA[<p>Уважаемый <strong>Malcev</strong> , у кнопок есть метка &quot;gButton1&quot;(к примеру), после &quot;Button1:&quot;(в строке ниже) должно выполнятся действие но этого не происходит .</p>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2017-04-21T13:19:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115230#p115230</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115225#p115225" />
			<content type="html"><![CDATA[<p>#If создает контекстно-чувствительные горячие клавиши [hotkeys] и строки автозамены [hotstrings].<br />У вас в коде нет ни одного ни второго.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-04-21T12:27:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115225#p115225</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115222#p115222" />
			<content type="html"><![CDATA[<p>Уважаемый <strong>ypppu</strong> , у вас не работает мой код из за этой строчки.<br /></p><div class="codebox"><pre><code>IfWinActive ahk_class AkelPad4 ; в моём коде
IfWinActive ahk_class Notepad ; в коде от yalanne
 </code></pre></div>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2017-04-21T11:41:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115222#p115222</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115216#p115216" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong> , у меня код работает и кнопки появляются, только кнопки не реагируют на клик.</p>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2017-04-21T04:10:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115216#p115216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115215#p115215" />
			<content type="html"><![CDATA[<p><strong>Ядрён</strong>, при запуске Вашего кода даже окно не появляется. Пример <strong>yalanne</strong> рабочий.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-04-21T03:44:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115215#p115215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115212#p115212" />
			<content type="html"><![CDATA[<p>Доброго времени суток. Вот решил добавить в скрипт кнопочки , но они почему то не реагируют на клик.<br /></p><div class="codebox"><pre><code>SetBatchLines, -1
#SingleInstance force
#Persistent
#NoEnv
SendMode Input
SetBatchLines, -1
#MaxHotkeysPerInterval
#HotkeyInterval, -1

settimer tool_bar, 10
Gui, tool_bar:Color, 000111
Gui,  tool_bar:+AlwaysOnTop -Caption +ToolWindow +LastFound +HwndGuiHwnd_toolbar
Gui, tool_bar:Add, Button, x10 y1 w25 h25 gButton1, 1
Gui, tool_bar:Add, Button, x40 y1 w25 h25 gButton2, 2
Gui, tool_bar:Add, Button, x70 y1 w25 h25 gButton3, 3
Gui, tool_bar:Add, Button, x100 y1 w25 h25 gButton4, 4
Gui, tool_bar:Add, Button, x130 y1 w25 h25 gButton5, 5
return

#if (GuiHwnd_toolbar=Hwnd_ctrl_cursor) 
Button1:
SendInput, {vk31}
#If
Return

#if (GuiHwnd_toolbar=Hwnd_ctrl_cursor) 
Button2:
 SendInput, {vk32}
#If
Return

#if (GuiHwnd_toolbar=Hwnd_ctrl_cursor) 
Button3:
SendInput, {vk33}
#If
Return

#if (GuiHwnd_toolbar=Hwnd_ctrl_cursor) 
Button4:
SendInput, {vk34}
#If
Return

#if (GuiHwnd_toolbar=Hwnd_ctrl_cursor) 
Button5:
SendInput, {vk35}
#If
Return

tool_bar:
MouseGetPos,,,Hwnd_ctrl_cursor,control_ctrl_cursor
IfWinActive ahk_class AkelPad4
{
WinGetPos X_win,Y_Win,W_Win,,ahk_class AkelPad4
if (!X_win ? &quot;&quot; : (X_win = X_win_old)) and (!Y_win ? &quot;&quot; : (Y_win = Y_win_old)) and (!W_win ? &quot;&quot; : (W_win = W_win_old)) 
return
X_win_old := X_win
Y_win_old := Y_win
W_win_old := W_win
H_win_old := H_win
X_bar := X_win + W_win -850 
Y_bar := Y_win  
Gui, tool_bar:show, x%X_bar% y%Y_bar% NA, tool_bar_custom
}
else
{
Gui, tool_bar:Hide
X_win_old := &quot;&quot;
Y_win_old := &quot;&quot;
W_win_old := &quot;&quot;

}
WinSet, Transcolor, 000111, tool_bar_custom
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2017-04-20T21:48:24Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115212#p115212</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=110051#p110051" />
			<content type="html"><![CDATA[<p><strong>yalanne</strong>, кнопки мерцают только на Win10 или этого не избежать?</p>]]></content>
			<author>
				<name><![CDATA[becauseim]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33149</uri>
			</author>
			<updated>2016-12-22T20:21:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=110051#p110051</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=92443#p92443" />
			<content type="html"><![CDATA[<p>Пожалуйста. Только там надо поменять <strong>ahk_exe notepad.exe</strong> на <strong>ahk_class Notepad</strong>. Что бы только на главном окне ставились кнопки.</p>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-03-10T10:53:57Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=92443#p92443</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Индикатор на заголовок окна]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=92431#p92431" />
			<content type="html"><![CDATA[<p>Спасибо огромное вам <strong>yalanne</strong> то что нужно.</p>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2015-03-10T01:07:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=92431#p92431</id>
		</entry>
</feed>
