<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Помогите дописать скрипт]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13273&amp;type=atom" />
	<updated>2017-12-07T13:52:27Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13273</id>
		<entry>
			<title type="html"><![CDATA[Re: Помогите дописать скрипт]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122032#p122032" />
			<content type="html"><![CDATA[<p>Тему можно закрывать сам написал:<br /></p><div class="codebox"><pre><code>start2:
KeyWait, LAlt, D, T30
if ErrorLevel = 0
{
WinMinimize GTA:SA:MP  
sleep, 1500
TrayTip,Внимание, Игра свернута занимайтесь своими делами!
}
else
{
Random, var0, 1, 3
If var0=1
Key=W
If var0=2
Key=S
If var0=3
Key=D
Send, {%Key% Down}
Sleep, 300 
Send, {%Key% Up}
WinMinimize GTA:SA:MP
TrayTip,Внимание, Игра свернута занимайтесь своими делами!
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[radushev123]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38917</uri>
			</author>
			<updated>2017-12-07T13:52:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122032#p122032</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите дописать скрипт]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122026#p122026" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>start2:

KeyWait, LAlt, D
Sleep, 12000
if not GetKeyState(&quot;Lalt&quot;, &quot;P&quot;)
{
mod =
   SetTimer, Timer, -600
   KeyWait, RButton
   SetTimer, Timer, Off
   if !mod
      Send, {W}
   Return
   
Timer:
   mod = 1
   Send, {LAlt}
   WinMinimize GTA:SA:MP
   sleep, 1500
   TrayTip,Внимание, Игра свернута занимайтесь своими делами!
   Return
}
</code></pre></div><p>я думал о нечто подобном только оно ошибку выдает</p>]]></content>
			<author>
				<name><![CDATA[radushev123]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38917</uri>
			</author>
			<updated>2017-12-07T09:15:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122026#p122026</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите дописать скрипт]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122025#p122025" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>svoboden пишет:</cite><blockquote><div class="codebox"><pre><code>if A_ThisHotkey = Lalt</code></pre></div></blockquote></div><p>это не очень описывает мою просьбу разве не вернее тогда:<br /></p><div class="codebox"><pre><code>if not GetKeyState(&quot;Lalt&quot;, &quot;P&quot;)</code></pre></div><p>но это все ровно не объяснение как написать условие&nbsp; <br /></p><div class="quotebox"><blockquote><p>если за определенный интервал времени действие не выполнено и LAlt не нажат то он сам зажимает кнопку W на секунду и жмет LAlt</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[radushev123]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38917</uri>
			</author>
			<updated>2017-12-07T08:47:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122025#p122025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите дописать скрипт]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122012#p122012" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>if A_ThisHotkey = Lalt</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-12-06T23:00:24Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122012#p122012</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Помогите дописать скрипт]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=121975#p121975" />
			<content type="html"><![CDATA[<p>Помогите дополнить скрипт условием, если за определенный интервал времени действие не выполнено и LAlt не нажат то он сам зажимает кнопку W на секунду и жмет LAlt.</p><div class="codebox"><pre><code>Start1:
TrayTip, Внимание, Игра развернеться через 5 секунд!
Sleep, 5000
WinActivate GTA:SA:MP
goto, start2
start2:
KeyWait, LAlt, D
Sleep, 1000
WinMinimize GTA:SA:MP
sleep, 1500
TrayTip,Внимание, Игра свернута занимайтесь своими делами!
</code></pre></div><p>Полный код<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>F1::
ButtonЗапустить:
Gui, Submit, NoHide
Msgbox, Бот включен, войдите в игру и нажмите F2 что бы остановить его.
#IfWinActive GTA:SA:MP
Gui, Submit, NoHide
goto, start1
Start1:
TrayTip, Внимание, Игра развернеться через 5 секунд!
Sleep, 5000
WinActivate GTA:SA:MP
goto, start2
start2:
KeyWait, LAlt, D
Sleep, 1000
WinMinimize GTA:SA:MP
sleep, 1500
TrayTip,Внимание, Игра свернута занимайтесь своими делами!
if time =
{
time = 650
}
if time2 =
{
time2 = 750
}
Random, Rand, %time%, %time2%
Timer1:=Rand
Goto, timer
timer:
if timer1&gt;0
{
timer1:=timer1-1
GuiControl,, timer, %timer1%
sleep 1000
goto, timer
}
else
{
goto, Start1
}
GuiClose:
MsgBox, 4, AntiAFK, Вы точно хотите закрыть AntiAFK?
ifMsgBox Yes
ExitApp</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[radushev123]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38917</uri>
			</author>
			<updated>2017-12-05T10:42:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=121975#p121975</id>
		</entry>
</feed>
