<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Возвращение курсора на n-символов назад]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=15499&amp;type=atom" />
	<updated>2020-07-02T09:53:15Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=15499</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Возвращение курсора на n-символов назад]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=140524#p140524" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong>, во время, когда людям тыкают носом, они не всегда успевают подумать, поэтому считаю Вашу помощь <em>медвежьей услугой</em>.</p>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2020-07-02T09:53:15Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=140524#p140524</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Возвращение курсора на n-символов назад]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=140519#p140519" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong>, знаете это не удивительно, я только начал учить ахк. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[EV.Jack]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40952</uri>
			</author>
			<updated>2020-07-02T04:17:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=140519#p140519</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Возвращение курсора на n-символов назад]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=140518#p140518" />
			<content type="html"><![CDATA[<p><strong>EV.Jack</strong></p><p>Дело в том, что вы немного не верно создали функцию:</p><div class="codebox"><pre><code>toChat(text, shift := 0)
{
    send /
    Sleep 200
    Send %text%
    SendInput, {left %shift%}
}</code></pre></div><p>Теперь можно не указывать второй аргумент.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-07-01T19:03:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=140518#p140518</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Возвращение курсора на n-символов назад]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=140516#p140516" />
			<content type="html"><![CDATA[<p><strong>EV.Jack</strong>, даже используя значение по умоланию <strong>ноль</strong>?</p>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2020-07-01T17:55:02Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=140516#p140516</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Возвращение курсора на n-символов назад]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=140513#p140513" />
			<content type="html"><![CDATA[<p><strong>qqlexa</strong>, иначе скрипт не компилировался, я решил попробовать и все получилось.</p>]]></content>
			<author>
				<name><![CDATA[EV.Jack]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40952</uri>
			</author>
			<updated>2020-07-01T15:29:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=140513#p140513</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Возвращение курсора на n-символов назад]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=140509#p140509" />
			<content type="html"><![CDATA[<p><strong>EV.Jack</strong>, для чего передавать в функцию значение shift = 0?<br /><a href="https://autohotkey.com/board/topic/43039-default-parameter-for-function-as-variable/">Параметр по умолчанию</a></p>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2020-07-01T06:28:26Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=140509#p140509</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Возвращение курсора на n-символов назад]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=140508#p140508" />
			<content type="html"><![CDATA[<p>Мной было найдено решение!<br />Выглядит оно вот так: </p><div class="codebox"><pre><code>toChat(text, shift)
{
    send /
    Sleep 200
    Send %text%
    SendInput, {left %shift%}
}

^Numpad0::toChat(&quot;tempmute  30m спам&quot;, 9)
^Numpad1::toChat(&quot;mute &quot;, 0)
^Numpad2::toChat(&quot;tempban  1d Гриф&quot;, 8)
^Numpad3::toChat(&quot;ban &quot;, 0)
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[EV.Jack]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40952</uri>
			</author>
			<updated>2020-07-01T05:55:02Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=140508#p140508</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Возвращение курсора на n-символов назад]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=140507#p140507" />
			<content type="html"><![CDATA[<p><strong>qqlexa</strong><br />Я находил такой вариант и не совсем понял как его интегрировать в скрипт, потому что я только начал учится писать на ahk.<br />Буду очень признателен, если вы покажете как можно интегрировать ваше решение!</p>]]></content>
			<author>
				<name><![CDATA[EV.Jack]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40952</uri>
			</author>
			<updated>2020-07-01T04:59:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=140507#p140507</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Возвращение курсора на n-символов назад]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=140506#p140506" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong></p><div class="codebox"><pre><code>^Numpad0::toChat(&quot;tempmute  30m спам&quot;) &amp; ждать 200мс. Нажать влево 9 раз.</code></pre></div>]]></content>
			<author>
				<name><![CDATA[EV.Jack]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40952</uri>
			</author>
			<updated>2020-07-01T04:56:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=140506#p140506</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Возвращение курсора на n-символов назад]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=140505#p140505" />
			<content type="html"><![CDATA[<p><strong>EV.Jack</strong></p><p>Не совсем понятно чего вы хотите осуществить скриптом.<br />Напишите как-то иначе суть проблемы, может в виде команд как понимаете.<br />Например:</p><div class="codebox"><pre><code>Ждать, 4000 ; 4 сек.
Нажать, Кл.Вверх, 4 раза</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-06-30T19:19:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=140505#p140505</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Возвращение курсора на n-символов назад]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=140504#p140504" />
			<content type="html"><![CDATA[<p>Я так понимаю такой вариант вас не устроит?<br /></p><div class="codebox"><pre><code>
Loop %n%
{
    Send, {Left}
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2020-06-30T19:17:24Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=140504#p140504</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Возвращение курсора на n-символов назад]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=140503#p140503" />
			<content type="html"><![CDATA[<p>Здравствуйте. Я написал свой скриптик, который делится на 2 части: 1) команды которые сразу отправляются в чат. 2) команды которые требуют самостоятельной отправки. И вот с вторым у меня случилась проблема. <br />Мне надо дополнить эту часть так, что бы курсор в окне чата сам возвращался на какое-то количество символов назад (кол-во символов я задаю сам для каждой строки), но поиск в гугле мне не помог найти нужного решения. Сам скрипт</p><div class="codebox"><pre><code>SetKeyDelay, 0, 50

toSend(text)
{
    Send /
    Sleep 200
    Send %text%
    Send {Enter}
}

toChat(text)
{
    send /
    Sleep 200
    Send %text%
}

;команды наблюдения за игроками

^PgUp::toSend(&quot;gamemode spectator&quot;)
^PgDn::toSend(&quot;gamemode survival&quot;)
^Delete::toSend(&quot;fly&quot;)
^End::toSend(&quot;god&quot;)
^Home::toSend(&quot;v&quot;)

;команды выдачи наказаний (в разработке)

^Numpad0::toChat(&quot;tempmute  30m спам&quot;)
^Numpad1::toChat(&quot;mute &quot;)
^Numpad2::toChat(&quot;tempban 1d &quot;)
^Numpad3::toChat(&quot;ban &quot;)
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[EV.Jack]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40952</uri>
			</author>
			<updated>2020-06-30T16:10:50Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=140503#p140503</id>
		</entry>
</feed>
