<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Controlsend: Некорректный посыл текста в чат.]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=11733&amp;type=atom" />
	<updated>2016-06-18T23:04:33Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=11733</id>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105372#p105372" />
			<content type="html"><![CDATA[<p>Так то раньше было.<br />Сейчас ситуация изменилась:<br /><a href="https://autohotkey.com/boards/viewtopic.php?t=18891">https://autohotkey.com/boards/viewtopic.php?t=18891</a><br />И это по-моему правильно.<br />Так как, что одному покажется вредным, другой посчитает полезным.<br />Просто каждый решане для себя - отвечать на подобные вопросы или нет.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-06-18T23:04:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105372#p105372</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105371#p105371" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, <a href="https://autohotkey.com/board/topic/110605-no-pranks-or-any-other-potentially-harmful-stuff-is-allowed/">https://autohotkey.com/board/topic/1106 … s-allowed/</a></p>]]></content>
			<author>
				<name><![CDATA[Ink]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33547</uri>
			</author>
			<updated>2016-06-18T22:25:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105371#p105371</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105367#p105367" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>А вот на официальном форуме AHK запрещено обсуждение явно вредоносных скриптов. Скрипт для злонамеренного спама в чат какой-то игрушки...</p></blockquote></div><p>Пруфлинк?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-06-18T17:36:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105367#p105367</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105366#p105366" />
			<content type="html"><![CDATA[<p><strong>Ink</strong>, сей скрипт ускоряет продвижение чата, содержащего нецензурщину&nbsp; с провокациями и прочим, вверх, за границы экрана. Хороший же скрипт!</p>]]></content>
			<author>
				<name><![CDATA[yarrroslav]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33908</uri>
			</author>
			<updated>2016-06-18T17:18:38Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105366#p105366</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105364#p105364" />
			<content type="html"><![CDATA[<p>А вот на официальном форуме AHK запрещено обсуждение явно вредоносных скриптов. Скрипт для злонамеренного спама в чат какой-то игрушки... <img src="//forum.script-coding.com/img/smilies/neutral.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Ink]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33547</uri>
			</author>
			<updated>2016-06-18T16:15:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105364#p105364</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105363#p105363" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong> а я вот только только было сделал вот так и поспешил сюда написать отчет о том что уже все работает вот в таком виде</p><div class="codebox"><pre><code>1::
SendStr(&quot;*hi*Чат без модерации - плохо плохо плохо *hi* &quot;, &quot;Warspear1Online&quot;)
SendStr(&quot;*hi*Чат без модерации - плохо плохо плохо *hi* &quot;, &quot;Warspear2Online&quot;)
SendStr(&quot;*hi*Чат без модерации - плохо плохо плохо *hi* &quot;, &quot;Warspear3Online&quot;)

SendStr(Str, Title) {
	ControlGetFocus, Ctrl, % &quot;ahk_id&quot; WinExist(Title)
	Loop, Parse, Str
		PostMessage, 0x102, Ord(A_LoopField), 1, %Ctrl%   ;  WM_CHAR
}
Random, Rand, 3000, 10000
Controlsend, , {Enter}, Warspear1Online
Sleep Rand
Controlsend, , {Enter}, Warspear2Online
Sleep Rand
Controlsend, , {Enter}, Warspear3Online
Sleep Rand
Return</code></pre></div><p>Вам большое спасибо. Вы очень помогли. Очень очень)))))))))))))<br />PS. Глядя на Ваш 2й код с рандомами мне намного понятнее стало что тут и к чему. Боооольшое Спаибо!</p>]]></content>
			<author>
				<name><![CDATA[yarrroslav]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33908</uri>
			</author>
			<updated>2016-06-18T15:43:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105363#p105363</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105361#p105361" />
			<content type="html"><![CDATA[<p>Всё тоже самое.<br /></p><div class="codebox"><pre><code>
Menu, Tray, Icon, %A_ScriptDir%\123.ico, 1

NumpadDot:: 
	Random, Rand, 3000, 10000
	SendStr(&quot;+8hi+8Чат без модерации - плохо плохо плохо +8hi+8 &quot;, &quot;Игра1Online&quot;)
	Controlsend, , {Enter}, Игра1Online
	Sleep Rand
	SendStr(&quot;+8hi+8Чат без модерации - плохо плохо плохо +8hi+8 &quot;, &quot;Игра2Online&quot;)
	Controlsend, , {Enter}, Игра2Online
	Sleep Rand
	SendStr(&quot;+8hi+8Чат без модерации - плохо плохо плохо +8hi+8 &quot;, &quot;Игра3Online&quot;)
	Controlsend, , {Enter}, Игра3Online
	Return

SendStr(Str, Title) {
	ControlGetFocus, Ctrl, % &quot;ahk_id&quot; WinExist(Title)
	Loop, Parse, Str
		PostMessage, 0x102, Ord(A_LoopField), 1, %Ctrl%   ;  WM_CHAR
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-06-18T15:26:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105361#p105361</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105360#p105360" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>, да. Ваш вариант работает очень хорошо. Единственный минус для меня - я не осилил... Сложно это для меня очень (пока что). Я совсем (совсем-совсем) не представляю как мне из Вашего достойного примера сделать что бы тексты отправлялись в 3 окна <span class="bbu">не одновременно</span>, а еще лучше - в рандомном порядке.<br />У меня был такой, весьма нравившийся мне, вариант:<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>Menu, Tray, Icon, %A_ScriptDir%\123.ico, 1

NumpadDot::
{
Random, Rand, 3000, 10000
Controlsend, , +8hi+8    Чат без модерации - плохо плохо плохо +8hi+8 {Enter}, Игра1Online
Sleep Rand
Controlsend, , +8hi+8Чат без модерации - плохо плохо плохо +8hi+8 {Enter}, Игра2Online
Sleep Rand
Controlsend, , +8hi+8     Чат без модерации - плохо плохо плохо +8hi+8 {Enter}, Игра3Online
}
Return</code></pre></div></div></div><p>Прошу Вас, уделите мне еще немножко Вашего внимания. Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[yarrroslav]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33908</uri>
			</author>
			<updated>2016-06-18T13:30:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105360#p105360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105352#p105352" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>, да, так текст сразу появился в окне, даже когда оно свернуто\фокус не на нем.</p>]]></content>
			<author>
				<name><![CDATA[yarrroslav]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33908</uri>
			</author>
			<updated>2016-06-18T07:52:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105352#p105352</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105333#p105333" />
			<content type="html"><![CDATA[<p>А так, по нажатию &quot;1&quot; в активном окне игры пишет текст?<br /></p><div class="codebox"><pre><code>1::SendStr(&quot;+8hi+8Чат без модерации - плохо плохо плохо +8hi+8 &quot;, &quot;Игра1Online&quot;)

SendStr(Str, Title) {
	ControlGetFocus, Ctrl, % &quot;ahk_id&quot; WinExist(Title)
	Loop, Parse, Str
		PostMessage, 0x102, Ord(A_LoopField), 1, %Ctrl%   ;  WM_CHAR
}</code></pre></div><br /><p>Upd 22:16 04.03.2019.</p><p>Лучше наверное так.</p><div class="codebox"><pre><code>
1::SendStr(Clipboard, &quot;ahk_class Notepad&quot;)

SendStr(Str, Title = &quot;A&quot;) { 
	ControlGetFocus, Ctrl, % &quot;ahk_id&quot; WinExist(Title)
	ControlGet, hFocus, Hwnd, , %Ctrl%
	Loop, Parse, Str
		PostMessage, 0x102, Ord(A_LoopField), 0, , % &quot;ahk_id&quot; hFocus   ;  WM_CHAR
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-06-17T12:55:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105333#p105333</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105324#p105324" />
			<content type="html"><![CDATA[<p>Переношу.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-06-16T20:47:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105324#p105324</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105322#p105322" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Прошу прощения. Я об этом тоже, к сожалению, вспомнил только после создания темы.. Правда же.. Ой. Извиняюсь.<br />(Теперь уж и не знаю что мне с этой темой делать)</p>]]></content>
			<author>
				<name><![CDATA[yarrroslav]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33908</uri>
			</author>
			<updated>2016-06-16T19:57:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105322#p105322</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105321#p105321" />
			<content type="html"><![CDATA[<p>А где у нас ветка по играм, не подскажете?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-06-16T19:37:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105321#p105321</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Controlsend: Некорректный посыл текста в чат.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=105320#p105320" />
			<content type="html"><![CDATA[<p>Здравствуйте. Вот, сделал скрипт, спамящий немодерируемый чат, да бы таки добиться хоть какой-то модерации.<br />Но уже при первом запуске увидел результат отличительный от ожидаемого.<br /></p><div class="codebox"><pre><code>
Menu, Tray, Icon, %A_ScriptDir%\123.ico, 1

Numpad1::WinActivate, Игра1Online ; переключение окон игры по кнопкам нампад 1, 2, 3
Return
Numpad2::WinActivate, Игра2Online
Return
Numpad3::WinActivate, Игра3Online
Return

NumpadDot::
{
Controlsend, , +8hi+8Чат без модерации - плохо плохо плохо +8hi+8 {Enter}, Игра1Online ; собственно посыл спама в чаты окон
sleep 2000
Controlsend, , +8hi+8Чат без модерации - плохо плохо плохо +8hi+8 {Enter}, Игра2Online
sleep 2000
Controlsend, , +8hi+8Чат без модерации - плохо плохо плохо +8hi+8 {Enter}, Игра3Online
}
Return
</code></pre></div><p>Сначала бросились в глаза отсутствующие смайлики (+8hi+8 в коде напишет в чат смайлик *hi*), при чем недописанные в 30% случаев. А еще замечено что такой скрипт умудряется даже в иных словах неправильно расставлять символы и пишет &quot;лпохо п лохоплохо&quot; вот таким образом. Аж смешно.<br />Ахк с этой игрой работает весьма не плохо, тексты отправляет нормально, клавиши успешно переназначаются, ImageSearch ищет картинки. В общем все отлично. Но вот (как я сейчас уже понял) Controlsend что-то Controlшутит...<br />Виндовс 7 максимальная х64, AHK v1.1.23.01<br />Заглянул в лог скрипта - там все порядок. Скрипт сработал безошибочно.</p>]]></content>
			<author>
				<name><![CDATA[yarrroslav]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33908</uri>
			</author>
			<updated>2016-06-16T19:24:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=105320#p105320</id>
		</entry>
</feed>
