<?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=9453&amp;type=atom" />
	<updated>2014-04-03T16:59:46Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9453</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кнопка отображения активности]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81464#p81464" />
			<content type="html"><![CDATA[<p>Разобрался, всё отлично! Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2014-04-03T16:59:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81464#p81464</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кнопка отображения активности]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81463#p81463" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
Gui, Add, Button, x176 y40 w190 h80 gName1, Кнопка меню
Gui, Show, x394 y298 h389 w385, Проверка 
Gui, 2:Add, Button, x10 y40 w100 h30 gPlayer vButton, Выключен
return

#if play
    F2::
    MsgBox, Скрипт включен
    sleep, 1000
#if
return

Name1:
Gui, 2:Show, x200 y298 h100 w120, Проверка
return

Player:
guicontrol, , Button, %  (play := !play) ? &quot;Включен&quot; : &quot;Выключен&quot;
return 
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-03T16:30:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81463#p81463</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кнопка отображения активности]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81462#p81462" />
			<content type="html"><![CDATA[<p>Всё отлично работает, но я кажется не всё сказал. Вот ещё 1 исходный код, смотрите.<br /></p><div class="codebox"><pre><code>
Gui, Add, Button, x176 y40 w190 h80 gName1, Кнопка меню
Gui, Show, x394 y298 h389 w385, Проверка
return

#if play
    F2::
    MsgBox, Скрипт включен
    sleep, 1000
#if
return

Name1:
Gui, 2:Add, Button, x10 y40 w100 h30 gPlayer vButton, Выключен
Gui, 2:Show, x200 y298 h100 w120, Проверка
return

Player:
guicontrol, , Button, %  (play := !play) ? &quot;Включен&quot; : &quot;Выключен&quot;
return 
</code></pre></div><p>Всё работает, отлично. Но если закрыть окошко дам где кнопка &quot;Включен&quot; или &quot;Выключен&quot; и потом нажать на кнопку &quot;Кнопка меню&quot; выдает ошибку. Помогите исправить.</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2014-04-03T16:08:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81462#p81462</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кнопка отображения активности]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81460#p81460" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui, Add, Button, x12 y90 w120 h30 gPlayer vButton , Выключен
Gui, Show, x203 y166 h313 w365, Главное окно
return

#if play
    F2::
    MsgBox, Скрипт включен
    sleep, 1000
#if
return

~vk4e &amp; vk31::
Player:
guicontrol, , Button, %  (play := !play) ? &quot;Включен&quot; : &quot;Выключен&quot;
return </code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-04-03T15:39:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81460#p81460</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Кнопка отображения активности]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81459#p81459" />
			<content type="html"><![CDATA[<p>Сейчас я вам всё объясню. Вот сразу исходный код.<br /></p><div class="codebox"><pre><code>
Gui, Add, Button, x12 y90 w120 h30 gPlayer, Выключен
Gui, Show, x203 y166 h313 w365, Главное окно
return

#if play
    F2::
    MsgBox, Скрипт включен
    sleep, 1000
#if
return

Player:
~vk4e &amp; vk31::play := !play
return
</code></pre></div><p>Нужно сделать так, что бы когда скрипт включен, а именно значение вместо &quot;play&quot; становится &quot;!play&quot; кнопка меняла название на &quot;Включен&quot; при повторном нажатии кнопка становилась &quot;Выключен&quot; и скрипт не работал.<br />Нужен исходный код. Напишите ниже, буду благодарен!</p>]]></content>
			<author>
				<name><![CDATA[tuma4ok]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32022</uri>
			</author>
			<updated>2014-04-03T15:21:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81459#p81459</id>
		</entry>
</feed>
