<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; после нажатия на клавишу выполнять действия до нажатия на enter]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=15119&amp;type=atom" />
	<updated>2020-01-07T10:56:37Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=15119</id>
		<entry>
			<title type="html"><![CDATA[Re: после нажатия на клавишу выполнять действия до нажатия на enter]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=137189#p137189" />
			<content type="html"><![CDATA[<p>РЕШЕНО<br /></p><div class="codebox"><pre><code>
t::
	loop
	{
		if (a = 1){
			a := 0
			break
		}
		a := 0
		while (a = 0) {
			if (!GetKeyState(&quot;Q&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;E&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;R&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;T&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;W&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;Y&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;U&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;I&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;O&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;P&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;[&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;]&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;A&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;S&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;D&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;F&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;G&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;H&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;J&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;K&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;L&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;;&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;&#039;&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;Z&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;X&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;C&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;V&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;B&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;N&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;M&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;&lt;&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;&gt;&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;/&quot;, &quot;P&quot;) = 0 ) {
				Send, v
				sleep, 100
			}
			if (!GetKeyState(&quot;Enter&quot;, &quot;P&quot;) = 0 | !GetKeyState(&quot;Esc&quot;, &quot;P&quot;) = 0){
				a := 1
			}
		}
	}
</code></pre></div><p>Как я понимаю, все можно было сделать гораздо проще.</p>]]></content>
			<author>
				<name><![CDATA[noname123]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40561</uri>
			</author>
			<updated>2020-01-07T10:56:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=137189#p137189</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[после нажатия на клавишу выполнять действия до нажатия на enter]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=137181#p137181" />
			<content type="html"><![CDATA[<p>Нужно после нажатия на клавишу &#039;t&#039; дописывать символы перед каждым последующим кликом на клавиши.<br />Например: я хочу, чтобы перед каждой буквой писался &#039;v&#039;. То есть, нажал на &#039;t&#039; (открыл чат) и потом тыкаю &#039;a&#039; &#039;b&#039; &#039;c&#039; и нажимаю Enter, в результате должно получится сообщение &#039;vavbvc&#039;. как такое можно реализовать?</p><br /><p>Вот моя попытка, но она не работает.<br /></p><div class="codebox"><pre><code>
t::
loop
	{
	while GetKeyState(&lt;&gt;&quot;Enter&quot;){
		Send, v
	}
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[noname123]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40561</uri>
			</author>
			<updated>2020-01-06T19:48:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=137181#p137181</id>
		</entry>
</feed>
