<?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="https://forum.script-coding.com/extern.php?action=feed&amp;tid=18120&amp;type=atom" />
	<updated>2024-02-29T08:59:09Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18120</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Одна кнопка для двух действий]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160438#p160438" />
			<content type="html"><![CDATA[<p>Если не совсем понятно, то эту строчку можно записать вот так:<br /></p><div class="codebox"><pre><code>F1::
    t := !t ; если было 0, становится 1, и наоборот
    if (t = 1) {
        Gui, Show, x600 y300
    } else {
        Gui, Show, Hide
    }
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-02-29T08:59:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160438#p160438</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Одна кнопка для двух действий]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160437#p160437" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> О спасибо.Я просто только в это все вникаю.</p>]]></content>
			<author>
				<name><![CDATA[Jero]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43555</uri>
			</author>
			<updated>2024-02-29T08:45:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160437#p160437</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Одна кнопка для двух действий]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160436#p160436" />
			<content type="html"><![CDATA[<p>Двоеточие в данном случае — это часть <a href="https://script-coding.com/AutoHotkey/Variables.1.0.46.07.html#:~:text=%D0%A2%D0%B5%D1%80%D0%BD%D0%B0%D1%80%D0%BD%D1%8B%D0%B9%20%D1%83%D1%81%D0%BB%D0%BE%D0%B2%D0%BD%D1%8B%D0%B9%20%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%82%D0%BE%D1%80">тернарного оператора</a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-02-29T08:27:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160436#p160436</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Одна кнопка для двух действий]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160435#p160435" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Двоеточие между координатами и командой hide нужно для разделения?</p>]]></content>
			<author>
				<name><![CDATA[Jero]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43555</uri>
			</author>
			<updated>2024-02-29T08:12:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160435#p160435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Одна кнопка для двух действий]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160434#p160434" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>F1:: Gui, Show, % (t := !t) ? &quot;x600 y300&quot; : &quot;Hide&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-02-29T07:15:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160434#p160434</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Одна кнопка для двух действий]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160433#p160433" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> а как можно сделать чтобы интерфейс появлялся в указанных координатах на экране?</p>]]></content>
			<author>
				<name><![CDATA[Jero]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43555</uri>
			</author>
			<updated>2024-02-29T06:47:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160433#p160433</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Одна кнопка для двух действий]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160426#p160426" />
			<content type="html"><![CDATA[<p>Можно так:<br /></p><div class="codebox"><pre><code>t := false
Gui, Add, Edit, w300 h300

F1:: Gui, Show, % (t := !t) ? &quot;&quot; : &quot;Hide&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-02-28T06:14:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160426#p160426</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Одна кнопка для двух действий]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160425#p160425" />
			<content type="html"><![CDATA[<p>Как мне реализовать так чтобы я мог нажать на одну кнопку чтобы открылся интерфейс и если нажать ещё раз то он бы закрывался.<br /></p><div class="codebox"><pre><code>F1::
Gui, Add, Edit, w300 h300
Gui, Show
Return

F1::
Gui, Destroy
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Jero]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43555</uri>
			</author>
			<updated>2024-02-28T05:29:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160425#p160425</id>
		</entry>
</feed>
