<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Активация CheckBox при нажатии на клавишу]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15818&amp;type=atom" />
	<updated>2020-11-10T10:27:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15818</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация CheckBox при нажатии на клавишу]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143415#p143415" />
			<content type="html"><![CDATA[<p><strong>X_vorost</strong>, это не важно. У скриптов для игр (и у тех, кто их пишет) есть своя специфика, типа &quot;работает с обычными окнами, не работает с окном игры&quot;, или &quot;не работает, когда активно окно игры&quot;, и т. п. У игр могут быть всякие средства защиты от скриптов, что создаёт разные специфические проблемы, которые неактуальны для других случаев.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-11-10T10:27:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143415#p143415</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация CheckBox при нажатии на клавишу]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143414#p143414" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><p>Да не в игре же дело, я спрашиваю про функцию активации чекбокса нажатием на клавишу.</p>]]></content>
			<author>
				<name><![CDATA[X_vorost]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40325</uri>
			</author>
			<updated>2020-11-10T09:50:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143414#p143414</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация CheckBox при нажатии на клавишу]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143413#p143413" />
			<content type="html"><![CDATA[<p><strong>KusochekDobra</strong></p><p>Спасибо огромное, я это все писал в 4 ночи и сам не мог понят в чем проблема, все работает, еще раз спасибо.</p>]]></content>
			<author>
				<name><![CDATA[X_vorost]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40325</uri>
			</author>
			<updated>2020-11-10T09:46:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143413#p143413</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация CheckBox при нажатии на клавишу]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143388#p143388" />
			<content type="html"><![CDATA[<p>Прошу прощения, тоже не верно написал. Так правильно.<br /></p><div class="codebox"><pre><code>GuiControl,,Bh, 1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[KusochekDobra]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33846</uri>
			</author>
			<updated>2020-11-09T17:08:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143388#p143388</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация CheckBox при нажатии на клавишу]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143387#p143387" />
			<content type="html"><![CDATA[<p><strong>X_vorost</strong>, скорее всего, неправильно прочитали.<br />Прочитайте ещё раз, или читайте мануал <a href="https://www.autohotkey.com/docs/commands/GuiControl.htm">GuiControl</a>.</p>]]></content>
			<author>
				<name><![CDATA[KusochekDobra]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33846</uri>
			</author>
			<updated>2020-11-09T17:03:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143387#p143387</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация CheckBox при нажатии на клавишу]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143385#p143385" />
			<content type="html"><![CDATA[<p><strong>X_vorost</strong>, если EFT это игра, то у нас есть соответствующий раздел, не пишите сюда.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-11-09T16:51:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143385#p143385</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация CheckBox при нажатии на клавишу]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143377#p143377" />
			<content type="html"><![CDATA[<p><strong>KusochekDobra</strong></p><p>Может я что-то не так понял, но у меня не работает</p><div class="codebox"><pre><code>
F1::
state := true
    GuiControl, 1:Choose, Bh, 1
    return

    #If (state = true)
    {
        F1::
        state := false
            GuiControl, 1:Choose, Bh, 0
            return
    }
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[X_vorost]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40325</uri>
			</author>
			<updated>2020-11-09T14:18:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143377#p143377</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация CheckBox при нажатии на клавишу]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143375#p143375" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>GuiControl,Choose,Bh, 1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[KusochekDobra]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33846</uri>
			</author>
			<updated>2020-11-09T11:47:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143375#p143375</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Активация CheckBox при нажатии на клавишу]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143373#p143373" />
			<content type="html"><![CDATA[<p>Всем привет.<br />Написал я скрипт для EFT, изначально я хотел написать только авто стрельбу, но потом меня начали просить написать целую программу-хелпер для этой игры.<br />Мне нужно сделать так, чтобы CheckBox активировался при нажатии на клавишу (бинд)</p><p>Часть кода:<br /></p><div class="codebox"><pre><code>
;Show
Gui, 1:Show, w485 h350, Auto Single Fire by xvorost
Gui, 1:submit, nohide
;Longjump
Gui, 1:Add, Checkbox,x35 y200 w20 h20 gCheck vBh
Gui, 1:Add, Text, x55 y200, Longjump (BHop)
Gui, 1:Add, Slider, x35  y220 w180 h20 vBhS gSlideBh Range5-50 tickinterval5-50 AltSubmit
Gui, 1:Add, Text, x40 y240 w50 h18, 5
Gui, 1:Add, Text, x165 y240 w50 h18 Right, 50
Gui, 1:Add, Text, x35 y260, Value:
Gui, 1:Add, Edit, x80 y255 w70 v1Value, 5

Gui, Show
return

SlideBh:
   Gui,Submit,NoHide
    int := bhs
    fra := Mod(int, 10)
    1val := Floor(int)
   
   GuiControl,, Edit2, %1val%
return

Check:
Gui, 1:submit, nohide

;=====================

~$*Space::
Gui, 1:submit, nohide
if(Bh==1)
{
	Bh()
}
return

Bh() {
	IfWinActive, EscapeFromTarkov
	{
        while(GetKeyState(&quot;Space&quot;, &quot;p&quot;)) 
        {
            Gui, 1:submit, nohide
            Send, {Space}
            Sleep, %BhS%
            Send, {Space}
            Sleep, %BhS%
        }
	}
}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[X_vorost]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40325</uri>
			</author>
			<updated>2020-11-09T11:40:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143373#p143373</id>
		</entry>
</feed>
