<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; Samp: скрипт который быстро будет нажимать кнопку N в игре.]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=12778</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12778&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Samp: скрипт который быстро будет нажимать кнопку N в игре.».]]></description>
		<lastBuildDate>Fri, 30 Jun 2017 17:28:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Samp: скрипт который быстро будет нажимать кнопку N в игре.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=116934#p116934</link>
			<description><![CDATA[<div class="codebox"><pre><code>SetBatchLines -1
SetKeyDelay -1, -1

F1::
	KeyWait F1
	включен := Not включен
	If включен
		While !GetKeyState(&quot;F1&quot;)
		{
			Send {vk4E Down}
			pSleep.do(3)
			Send {vk4E Up}
		}
Return


class pSleep
{
	static F:=pSleep.getQPF()
	do(t) {
		DllCall(&quot;QueryPerformanceCounter&quot;, &quot;Int64P&quot;, sT1)
		crit:=A_IsCritical
		Critical On
		res:=pSleep.getTimerResolution(),dt:=0
		if (t&gt;res) ; Do regular sleep before qpc loop, if t is long enough.
			(DllCall(&quot;Sleep&quot;, &quot;Int&quot;, t-res), DllCall(&quot;QueryPerformanceCounter&quot;, &quot;Int64P&quot;, sT2), dt:=(sT2-sT1)*1000/pSleep.F)
		t-=dt, DllCall(&quot;QueryPerformanceCounter&quot;, &quot;Int64P&quot;, loopStart), loopTic:=loopStart
		while (loopTic-loopStart&lt;t*pSleep.F/1000)
			DllCall(&quot;QueryPerformanceCounter&quot;, &quot;Int64P&quot;, loopTic)
		Critical % crit
		return
	}
	getTimerResolution() {
		DllCall(&quot;ntdll.dll\NtQueryTimerResolution&quot;, &quot;UPtr*&quot;, MinimumResolution, &quot;UPtr*&quot;, MaximumResolution, &quot;UPtr*&quot;, CurrentResolution)
		return Ceil(CurrentResolution/10000) ; Resolutions are reported as 100-nanoseconds
	}
	getQPF() {
		DllCall(&quot;QueryPerformanceFrequency&quot;, &quot;Int64P&quot;, F)
		return F
	}
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Fri, 30 Jun 2017 17:28:37 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=116934#p116934</guid>
		</item>
		<item>
			<title><![CDATA[Re: Samp: скрипт который быстро будет нажимать кнопку N в игре.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=116929#p116929</link>
			<description><![CDATA[<p><strong>stealzy</strong> , Спасибо! Скрипт начал работать более стабильно, но скорости не прибавилось.</p>]]></description>
			<author><![CDATA[null@example.com (artur_dr)]]></author>
			<pubDate>Fri, 30 Jun 2017 16:23:38 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=116929#p116929</guid>
		</item>
		<item>
			<title><![CDATA[Re: Samp: скрипт который быстро будет нажимать кнопку N в игре.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=116927#p116927</link>
			<description><![CDATA[<p><strong>stealzy</strong> Простите за оформление, исправлюсь.</p>]]></description>
			<author><![CDATA[null@example.com (artur_dr)]]></author>
			<pubDate>Fri, 30 Jun 2017 16:09:29 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=116927#p116927</guid>
		</item>
		<item>
			<title><![CDATA[Re: Samp: скрипт который быстро будет нажимать кнопку N в игре.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=116925#p116925</link>
			<description><![CDATA[<p><strong>stealzy</strong> тоже не работает, спасибо что пытались помочь!)</p>]]></description>
			<author><![CDATA[null@example.com (artur_dr)]]></author>
			<pubDate>Fri, 30 Jun 2017 16:06:51 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=116925#p116925</guid>
		</item>
		<item>
			<title><![CDATA[Re: Samp: скрипт который быстро будет нажимать кнопку N в игре.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=116924#p116924</link>
			<description><![CDATA[<p><strong>Drygok</strong><br />Не работает в игре. Будто не видит такие нажатия.</p>]]></description>
			<author><![CDATA[null@example.com (artur_dr)]]></author>
			<pubDate>Fri, 30 Jun 2017 16:03:55 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=116924#p116924</guid>
		</item>
		<item>
			<title><![CDATA[Re: Samp: скрипт который быстро будет нажимать кнопку N в игре.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=116922#p116922</link>
			<description><![CDATA[<p><strong>Drygok</strong>, ну вот если не нравится, то сначала потребуйте от пользователя нормального оформления. Отвечая в этой теме, вы соглашаетесь с тем, что оформление вас устраивает.</p>]]></description>
			<author><![CDATA[null@example.com (belyankin12)]]></author>
			<pubDate>Fri, 30 Jun 2017 16:02:41 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=116922#p116922</guid>
		</item>
		<item>
			<title><![CDATA[Re: Samp: скрипт который быстро будет нажимать кнопку N в игре.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=116921#p116921</link>
			<description><![CDATA[<p>Оформление, конечно, м-да. <br /></p><div class="codebox"><pre><code>!1::
loop
{
SendInput, {vk4E}
}</code></pre></div><p>Так чем не подходит?</p>]]></description>
			<author><![CDATA[null@example.com (Drygok)]]></author>
			<pubDate>Fri, 30 Jun 2017 15:43:39 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=116921#p116921</guid>
		</item>
		<item>
			<title><![CDATA[Samp: скрипт который быстро будет нажимать кнопку N в игре.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=116916#p116916</link>
			<description><![CDATA[<p>Драсьте, хочу написать скрипт, который будет при нажати альт+1, или другой комбинации очень быстро флудить кнопкой N ( быстро нажимать ). Пытался сам, но скрипт работал медленно, с задержками и перерывами.</p><div class="codebox"><pre><code>!1::
loop
{
SendInput, {vk4E Down}
sleep 1
SendInput, {vk4E up}
sleep 1
SendInput, {vk4E Down}
sleep 1
SendInput, {vk4E up}
sleep 1
SendInput, {vk4E Down}
sleep 1
SendInput, {vk4E up}
sleep 1
SendInput, {vk4E Down}
sleep 1
SendInput, {vk4E up}
retutn 
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (artur_dr)]]></author>
			<pubDate>Fri, 30 Jun 2017 10:16:41 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=116916#p116916</guid>
		</item>
	</channel>
</rss>
