<?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=12167&amp;type=atom" />
	<updated>2017-01-07T18:40:25Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=12167</id>
		<entry>
			<title type="html"><![CDATA[Re: Исправьте код]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=110679#p110679" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>belyankin12 пишет:</cite><blockquote><p>SetkeyDelay стандартный</p></blockquote></div><p> Попробуй увеличить - советую, т.к. игры не успевают отображать вывод, хотя это твоё дело.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2017-01-07T18:40:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=110679#p110679</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Исправьте код]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=110678#p110678" />
			<content type="html"><![CDATA[<p>А зачем в начале и в конце {}, а потом ещё return в конце всего этого? Вот пример как я использую:<br /></p><div class="codebox"><pre><code>
!F11::
sendinput, {f6}/me взял ящики со склада{Enter}
sleep 1200
sendinput, {f6}/do Боец открыл(а) дверь грузового отсека{Enter}
sleep 1200
sendinput, {f6}/me загрузил ящики в грузовик{Enter}
sleep 1200
sendinput, {f6}/do Боец закрыл(а) дверь грузового отсека{Enter}
return
</code></pre></div><p>Да, тут со sleep и прочим, но у меня никогда проблем не было вообще. SetkeyDelay стандартный.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-01-07T18:13:34Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=110678#p110678</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Исправьте код]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=110675#p110675" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>lishakoff пишет:</cite><blockquote><p>Сейчас почему-то вылетает нафлудив началом строк &quot;/su 2. /su 1. &quot; и т.д. и в конце выкидывает на диалог &quot;See #Maxhotkeysperinterval&quot;.</p></blockquote></div><p> Попробуй использовать <strong>Send</strong> и <strong>SetKeyDelay , 50, 25</strong>, т.е. увеличить задержки и длительность нажатия.</p><p>По умолчанию <strong>SetKeyDelay , 10, 10</strong> - это очень быстро.</p><p>Может хватит одной команды&nbsp; <strong>SetKeyDelay</strong> - почитай про неё в справке <strong>chm</strong>.</p><p>Вот как я вывожу сообщения, правда в чат игры. </p><div class="codebox"><pre><code>lSendChat:
  tmp_ThisHotkey := A_ThisHotkey
  If (vLengthArraySCHK = False)
        Return
        
  i := 1
  Loop %vLengthArraySCHK%
    {
      If  (tmp_ThisHotkey = arSendChat[i,1])
          {
            fnHotkey(tmp_ThisHotkey, &quot;lSendChat&quot;,False)
            vTmpKey   :=  arSendChat[i,1]
            vTmpTxt   :=  arSendChat[i,2]
            SendMessage, 0x50,, 0x4090409,, A ;Установить английский язык
            SetKeyDelay , 10, 10
            Send {Enter}
            Loop 25
               Send {Backspace}
            SetKeyDelay , %vKeyDelay%, %vKeyDuration%
            Send %vTmpTxt%
            SetKeyDelay , 10, 10
            Send {Enter}
            Break
          }
       i++
    }
  fnHotkey(vTmpKey, &quot;lSendChat&quot;)
Return</code></pre></div><p> Тут много лишнего, но они всегда выводятся без ошибок.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2017-01-07T14:19:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=110675#p110675</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Исправьте код]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=110599#p110599" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>!NumPad3::
 {
  SendInput {F6}/su  1 Неподчинение гос. сотруднику{Left 31}
 }
 return

!NumPad4::
 {
  SendInput {F6}/su  2 Попытка скрыться{Left 19}
 }
 return

!NumPad5::
 {
  SendInput {F6}/su  2 Проникновение на охраняемую территорию{Left 41}
 }
 return

!NumPad6::
 {
  SendInput {F6}/su  4 Вооруженное нападение на гос. сотрудника{Left 43}
 }
 return

!NumPad7::
 {
  SendInput {F6}/su  3 Хранение наркотиков{Left 22}
 }
 return

!NumPad2::
 {
  SendInput {F6}/su  2 Ношение военной формы{Left 24}
 }
 return

!NumPad1::
 {
  SendInput {F6}/su  1 Оскорбление гос. сотрудника{Left 30}
 }
 return

!NumPad8::
 {
  SendInput {F6}/su  3 Хранение материалов{Left 22}
 }
  return

!NumPad9::
 {
  SendInput {F6}/su  3 Вооруженное нападение на гражданина{Left 38}
 }
 return</code></pre></div><p>Ну если еще не поздно.</p>]]></content>
			<author>
				<name><![CDATA[slavafedora]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34221</uri>
			</author>
			<updated>2017-01-06T07:13:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=110599#p110599</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Исправьте код]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=110179#p110179" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>belyankin12 пишет:</cite><blockquote><p>У вас нету return после каждого бинда.</p></blockquote></div><p>Когда команда в одну строчку с горячей клавишей, return не нужен, можете проверить.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-12-25T16:50:02Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=110179#p110179</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Исправьте код]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=110178#p110178" />
			<content type="html"><![CDATA[<p>У вас нету return после каждого бинда. Соответственно скрипт идёт по каждой строке пока не упрется в ограничение кол-ва символов. Как должно быть:<br /></p><div class="codebox"><pre><code>!NumPad3::SendInput {F6}/su  1 Неподчинение гос. сотруднику{Left 31}
return
!NumPad4::SendInput {F6}/su  2 Попытка скрыться{Left 19}
return
</code></pre></div><p>И так далее.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2016-12-25T16:47:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=110178#p110178</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Исправьте код]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109307#p109307" />
			<content type="html"><![CDATA[<p><strong>alekksss</strong>, а когда у нас заглавные буквы и точки отменили, не скажете? А то я пропустил.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-11-23T06:31:48Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109307#p109307</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Исправьте код]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109306#p109306" />
			<content type="html"><![CDATA[<p>return перед клавишами, и {} не нужны. при запуске вызываются клавиши видимо.</p>]]></content>
			<author>
				<name><![CDATA[alekksss]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33684</uri>
			</author>
			<updated>2016-11-23T06:25:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109306#p109306</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Исправьте код]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109285#p109285" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>{
!NumPad3::SendInput {F6}/su  1 Неподчинение гос. сотруднику{Left 31}
!NumPad4::SendInput {F6}/su  2 Попытка скрыться{Left 19}
!NumPad5::SendInput {F6}/su  2 Проникновение на охраняемую территорию{Left 41}
!NumPad6::SendInput {F6}/su  4 Вооруженное нападение на гос. сотрудника{Left 43}
!NumPad7::SendInput {F6}/su  3 Хранение наркотиков{Left 22}
!NumPad2::SendInput {F6}/su  2 Ношение военной формы{Left 24}
!NumPad1::SendInput {F6}/su  1 Оскорбление гос. сотрудника{Left 30}
!NumPad8::SendInput {F6}/su  3 Хранение материалов{Left 22}
!NumPad9::SendInput {F6}/su  3 Вооруженное нападение на гражданина{Left 38}
}
return</code></pre></div><p>Ранее прекрасно работал, когда то рабочий удалил. Сейчас почему-то вылетает нафлудив началом строк &quot;/su 2. /su 1. &quot; и т.д. и в конце выкидывает на диалог &quot;See #Maxhotkeysperinterval&quot;.</p>]]></content>
			<author>
				<name><![CDATA[lishakoff]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34331</uri>
			</author>
			<updated>2016-11-22T18:51:10Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109285#p109285</id>
		</entry>
</feed>
