<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: GUI + WinActivate]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16089&amp;type=atom" />
	<updated>2021-02-14T10:29:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16089</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI + WinActivate]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146191#p146191" />
			<content type="html"><![CDATA[<p>Нужно было указать метку, что выполнится при нажатии на кнопку.</p><div class="codebox"><pre><code>Gui Add, Button, gКНОПКА x125 y50 w102 h23, КНОПКА</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-02-14T10:29:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146191#p146191</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI + WinActivate]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146182#p146182" />
			<content type="html"><![CDATA[<p>Понял свой косяк. Всё решилось.<br />Всё было банально просто.<br />Нужно было просто добавить <span class="bbu">Button</span> перед названием кнопки.<br /></p><div class="codebox"><pre><code>ButtonПодтвердить:</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Michael]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41356</uri>
			</author>
			<updated>2021-02-14T01:23:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146182#p146182</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI + WinActivate]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146181#p146181" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Michael пишет:</cite><blockquote><p>По прежнему - горячая клавиша: работает, кнопка - нет.</p></blockquote></div><p>А где кнопка то?</p><p>Наверно еще так луше?</p><div class="codebox"><pre><code>
F9::
КНОПКА:
WinActivate ahk_exe firefox.exe
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Lolykroly]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41424</uri>
			</author>
			<updated>2021-02-14T01:05:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146181#p146181</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI + WinActivate]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146180#p146180" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />А вот не тут то и было) Что-то из этого пробовал убирать уже, но не всё. Убрал всё вышесказанное вами - не заработало.<br /></p><div class="codebox"><pre><code>#SingleInstance Force
#NoEnv
SetBatchLines -1

Gui Add, Button, x125 y50 w102 h23, КНОПКА
Gui Show, w246 h340
Return

КНОПКА:
WinActivate ahk_exe firefox.exe

F9::
WinActivate ahk_exe firefox.exe</code></pre></div><p>По прежнему - горячая клавиша: работает, кнопка - нет.</p>]]></content>
			<author>
				<name><![CDATA[Michael]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41356</uri>
			</author>
			<updated>2021-02-14T00:58:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146180#p146180</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI + WinActivate]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146178#p146178" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Michael пишет:</cite><blockquote><div class="codebox"><pre><code>Name = КАКАЯ_ТО_ПРОГА

GroupAdd, AppGroup, % Name

;Gui +AlwaysOnTop
Gui -MaximizeBox
Gui Color, 0x000000</code></pre></div></blockquote></div><p>Вся эта информация действительно важна? Если это убрать из кода, всё заработает?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-02-13T23:24:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146178#p146178</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: GUI + WinActivate]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146177#p146177" />
			<content type="html"><![CDATA[<p>Доброго всем!<br />Имеется скрипт, для примера и сокращения возьмем этот:<br /></p><div class="codebox"><pre><code>#SingleInstance Force
#NoEnv
SetBatchLines -1

Name = КАКАЯ_ТО_ПРОГА

GroupAdd, AppGroup, % Name

;Gui +AlwaysOnTop
Gui -MaximizeBox
Gui Color, 0x000000
Gui Add, Button, x125 y50 w102 h23, КНОПКА

Gui Show, w246 h340, % Name
Return

КНОПКА:
WinActivate ahk_exe firefox.exe

F9::
WinActivate ahk_exe firefox.exe</code></pre></div><p>Вопрос: Почему горячая клавиша F9 работает, и открывает нужное окно, выполняя WinActivate, а нажатие на кнопку &quot;КНОПКА&quot; аналогичного эффекта не дает? И как с этим быть?</p>]]></content>
			<author>
				<name><![CDATA[Michael]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41356</uri>
			</author>
			<updated>2021-02-13T22:22:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146177#p146177</id>
		</entry>
</feed>
