<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Включение, выключение по gbutton]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=18203&amp;type=atom" />
	<updated>2024-05-26T12:42:13Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=18203</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Включение, выключение по gbutton]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=160978#p160978" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, спасибо огромное!</p>]]></content>
			<author>
				<name><![CDATA[daniilch]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=43742</uri>
			</author>
			<updated>2024-05-26T12:42:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=160978#p160978</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Включение, выключение по gbutton]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=160977#p160977" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>daniilch пишет:</cite><blockquote><p>включение и выключение конкретно этой функции в скрипте. Тоесть, что бы при нажатии на gbutton отключался только этот скрипт(оверлей)</p></blockquote></div><p>У вас какой-то скрипт в скрипте получается. В одном скрипте нет никакого другого скрипта, это всё один и тот же скрипт. И функции там тоже никакой нет. Есть только Gui (окно). Окно — это не функция. Если я вас правильно понял, нужно, чтобы по горячей клавише это окно появлялось и скрывалось. Тогда можно так:<br /></p><div class="codebox"><pre><code>F3::
ShowHideGui() {
    static WS_EX_TRANSPARENT := 0x20, hGui, toggle := &quot;&quot;
    if (toggle == &quot;&quot;)
    {
        x := (A_ScreenWidth / 2)-1
        y := (A_ScreenHeight / 2)-1
        w := 3
        h := 3
        color := 0xFF0000

        Gui, New, hwndhGui +AlwaysOnTop -Caption +Owner +LastFound +E%WS_EX_TRANSPARENT%
        WinSet, Transparent, 255
        Gui, Color, % color
        Gui, Show, Hide x%x% y%y% w%w% h%h%
    }
    Gui, %hGui%: Show, % (toggle := !toggle) ? &quot;NA&quot; : &quot;Hide&quot;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-05-25T19:12:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=160977#p160977</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Включение, выключение по gbutton]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=160976#p160976" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, включение и выключение конкретно этой функции в скрипте. Тоесть, что бы при нажатии на gbutton отключался только этот скрипт(оверлей) незатрагивая основное gui с функционалом. Надеюсь более менее понятно расписал, извиняюсь за возможные недопонимания.</p>]]></content>
			<author>
				<name><![CDATA[daniilch]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=43742</uri>
			</author>
			<updated>2024-05-24T23:11:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=160976#p160976</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Включение, выключение по gbutton]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=160974#p160974" />
			<content type="html"><![CDATA[<p>А что вы понимаете под включением и выключением?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-05-24T22:48:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=160974#p160974</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Включение, выключение по gbutton]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=160973#p160973" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> сделано!</p>]]></content>
			<author>
				<name><![CDATA[daniilch]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=43742</uri>
			</author>
			<updated>2024-05-24T22:46:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=160973#p160973</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Включение, выключение по gbutton]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=160972#p160972" />
			<content type="html"><![CDATA[<p><strong>daniilch</strong>, добро пожаловать на форум! Ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">точки</a> в конце предложений.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-05-24T22:40:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=160972#p160972</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Включение, выключение по gbutton]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=160969#p160969" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>button4:
x := (A_ScreenWidth / 2)-1
y := (A_ScreenHeight / 2)-1

w = 3
h = 3
Color = 0xFF0000
WS_EX_TRANSPARENT := 0x20
WS_EX_LAYERED := 0x80000
Gui, +AlwaysOnTop -Caption +ToolWindow +LastFound
Gui, Color, % Color
Gui, Show, x%x% y%y% w%w% h%h% NA
WinSet, ExStyle, % &quot;+&quot; WS_EX_LAYERED|WS_EX_TRANSPARENT
return</code></pre></div><p>Как сделать включение выключение скрипта по кнопке?</p><p>Не понимаю от слова совсем в ahk, не бейте. Хочу разобраться.</p>]]></content>
			<author>
				<name><![CDATA[daniilch]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=43742</uri>
			</author>
			<updated>2024-05-24T22:16:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=160969#p160969</id>
		</entry>
</feed>
