<?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=5865&amp;type=atom" />
	<updated>2011-06-02T14:07:12Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5865</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: как научить скрипт дружить с остальными клавишами?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48910#p48910" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>*Lbutton::
   Loop
      {
         MouseClick, L
         Sleep, 10
         If GetKeyState(&quot;Lbutton&quot;, &quot;P&quot;) = 0
            Break
      }
   return</code></pre></div><p>Да этот скрипт вполне подходит , по крайней мере он выполняет именно те функции которые мне нужны.<br />Спасиб за помощь.</p>]]></content>
			<author>
				<name><![CDATA[Wordmaster]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26514</uri>
			</author>
			<updated>2011-06-02T14:07:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48910#p48910</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: как научить скрипт дружить с остальными клавишами?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48902#p48902" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Wordmaster пишет:</cite><blockquote><p>Ощущение что shift зажимается и отжимается снова снова пока лкм активирована.</p></blockquote></div><p>Нужно в конфигурации кнопок игры указать на приседание не сам шифт, а любую другую клавишу (желательно используя виртуальный код, как?, запустив <a href="http://forum.script-coding.com/viewtopic.php?pid=47346#p47346">этот</a> замечательный скрипт). Нажатием шифта эмулировать нажатие назначенной клавиши на приседание:</p><div class="codebox"><pre><code>LShift::
   SendInput, {vk47 Down} ; к примеру клавиша G/П
   KeyWait, LShift
   SendInput, {vk47 Up}
   Return</code></pre></div><p>Этот скрипт<br /></p><div class="quotebox"><cite>Wordmaster пишет:</cite><blockquote><p>Скрипт написал сам...</p><div class="codebox"><pre><code>6::Suspend
Lbutton::
    autoLbutton := 1
    Loop
    {
        Send {Lbutton Down}
        Sleep, 1
        Send {Lbutton Up}

        if autoLbutton = 0
        Break
    }
    return

Lbutton up::
    autoLbutton := 0
    return</code></pre></div></blockquote></div><p>у меня не корректно работает с пистолетами в Counter Strike: Source, лучше его заменить на:</p><div class="codebox"><pre><code>*Lbutton::
   Loop
      {
         MouseClick, L
         Sleep, 10
         If GetKeyState(&quot;Lbutton&quot;, &quot;P&quot;) = 0
            Break
      }
   return</code></pre></div><p>или любой из вариантов предложеных мною выше, только тот, что с таймером, изменить. </p><div class="quotebox"><blockquote><p>SendInput, {LButton} на MouseClick, L</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-06-02T12:12:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48902#p48902</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: как научить скрипт дружить с остальными клавишами?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48888#p48888" />
			<content type="html"><![CDATA[<p>Теперь начало скрипта выглядит так<br />6::Suspend<br />*Lbutton::</p><p>Но возникла проблема,при зажатии того же Shift(crouch) и зажатии Лкм ведется стрельба,но персонаж привстает и садиться назад и так повторяется до тех пор пока зажата одна из клавиш...<br />То бишь например стрелять в присяде не получается. <br />Ощущение что shift зажимается и отжимается снова снова пока лкм активирована.</p>]]></content>
			<author>
				<name><![CDATA[Wordmaster]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26514</uri>
			</author>
			<updated>2011-06-02T04:04:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48888#p48888</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: как научить скрипт дружить с остальными клавишами?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48885#p48885" />
			<content type="html"><![CDATA[<p>Впредь буду внимательней.Большое спасибо. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Wordmaster]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26514</uri>
			</author>
			<updated>2011-06-02T02:47:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48885#p48885</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: как научить скрипт дружить с остальными клавишами?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48884#p48884" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p><a href="http://www.script-coding.com/AutoHotkey/Hotkeys.html">Цитата</a>: <span style="color: red"><em><strong>*</strong></em></span> Групповой символ: запускает горячую клавишу, даже если удерживаются дополнительные модификаторы.</p></blockquote></div><p>Клавишами модификаторами считаются: шифт, альт и контрол. Т.е. если прописать в коде <span style="color: crimson"><strong><em>*</em></strong></span> перед Lbutton::, то этот <em>хоткей</em> будет работать и с зажатыми шифт/альт/контрол.</p><div class="codebox"><pre><code>*Lbutton::
   While GetKeyState(&quot;LButton&quot;, &quot;P&quot;)
      {
         MouseClick, L
         Sleep, 10
      }
   Return</code></pre></div><div class="codebox"><pre><code>*LButton::
1:
   If GetKeyState(&quot;LButton&quot;, &quot;P&quot;) = 0
      Return
   Click
   Sleep, 10
   Gosub, 1</code></pre></div><div class="codebox"><pre><code>*LButton::SetTimer, Spawn_Clicks, 10

LButton Up::SetTimer, Spawn_Clicks, Off

Spawn_Clicks:
   SendInput, {LButton}
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-06-02T02:08:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48884#p48884</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: как научить скрипт дружить с остальными клавишами?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=48882#p48882" />
			<content type="html"><![CDATA[<p>Ребят как научить мой скрипт воспринимать остальные клавиши?<br />Пример:Зажимаю Лкм идет беспрерывная стрельба(Тобишь Лкм нажимается многократно,до того момента пока она зажата)<br />Пример2 при котором скрипт не работает:Зажимаю Shift(или наверняка любую другую клавишу) паралельно зажимая Лкм.<br />То Бишь хочу научить скрипт дружить с остальными клавишами.<br />Скрипт написал сам, с горем пополам,но всё равно не понимаю многих вещей.<br /></p><div class="codebox"><pre><code>6::Suspend
Lbutton::
    autoLbutton := 1
    Loop
    {
        Send {Lbutton Down}
        Sleep, 1
        Send {Lbutton Up}

        if autoLbutton = 0
        Break
    }
    return

Lbutton up::
    autoLbutton := 0
    return</code></pre></div><p>Буду очень благодарен за помощь.</p>]]></content>
			<author>
				<name><![CDATA[Wordmaster]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26514</uri>
			</author>
			<updated>2011-06-02T00:08:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=48882#p48882</id>
		</entry>
</feed>
