<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: GetKeyState и Wheel(Key)]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13985&amp;type=atom" />
	<updated>2018-07-29T20:41:54Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13985</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127548#p127548" />
			<content type="html"><![CDATA[<p>Надеюсь оно не документировано, как <a href="https://autohotkey.com/boards/viewtopic.php?f=14&amp;t=52923&amp;p=230938#p230938">тут</a>.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-29T20:41:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127548#p127548</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127547#p127547" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>А точно все?</p></blockquote></div><p>Что то я тогда не досмотрел.<br /></p><div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Если через неделю не ответит, то подниму тему.</p></blockquote></div><p>Ок.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-29T20:40:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127547#p127547</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127546#p127546" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Выключил остальные скрипты, Sendinput работает</p></blockquote></div><p>А точно все? Просто, если в каком-то из них используется клавиатурный хук, то вместо sendinput посылается sendevent.<br />А с ним у меня работает. Проверял на 3 компах.<br /></p><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Если интересна тема, можешь добавить пост, а ля - да, это было бы удобно.</p></blockquote></div><p>Если через неделю не ответит, то подниму тему.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-07-29T20:20:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127546#p127546</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127503#p127503" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p> разработчики как вы могут написать свою реализацию.</p></blockquote></div><p>Да, но это HOOK или HID, а они ещё до кучи обрабатывают все перемещения мыши, затратные решения, тем более на фоне того, что параллельно их же обрабатывает хук AutoHotkey.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-28T11:20:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127503#p127503</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127501#p127501" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Я думаю поймет.</p></blockquote></div><p>Если интересна тема, можешь добавить пост, а ля - да, это было бы удобно. Когда не один участник, то иногда это помогает обратить внимание на вопрос.<br /></p><div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Если Sendinput заменить на send то работает.</p></blockquote></div><p>Выключил остальные скрипты, Sendinput работает. Вообщем новая тема для расследования. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-28T10:59:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127501#p127501</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127500#p127500" />
			<content type="html"><![CDATA[<p>Я думаю поймет.<br />Но у меня такой код не работает:<br /></p><div class="codebox"><pre><code>WheelUp::msgbox
#InputLevel, 100
3::SendInput {WheelUp}</code></pre></div><p>Если Sendinput заменить на send то работает.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-07-28T10:54:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127500#p127500</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127499#p127499" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>serzh82saratov, понял, что ты имеешь в виду.</p></blockquote></div><p>Тогда можешь глянуть в <a href="https://autohotkey.com/boards/viewtopic.php?f=14&amp;t=52867">багрепорте</a> я понятно объяснил с помощью переводчика, а то судя по нашему обсуждению, вопрос неоднозначный получается.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-28T10:42:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127499#p127499</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127498#p127498" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>А почему SendInput?</p></blockquote></div><p>Не знаю, работает, надо же как то послать эмуляцию.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-28T10:35:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127498#p127498</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127496#p127496" />
			<content type="html"><![CDATA[<p>Странно, может у тебя почему то пустоту возвращает.<br /></p><div class="codebox"><pre><code>ToolTip % GetKeyState(&quot;WheelUp&quot;, &quot;P&quot;) &quot;`nGetKeyState&quot; </code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-28T10:34:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127496#p127496</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127495#p127495" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>, понял, что ты имеешь в виду.<br />А почему SendInput?<br />У меня при нажатии 3 ничего не происходит - тултипа нету.<br /></p><div class="codebox"><pre><code>WheelUp::ToolTip % GetKeyState(&quot;WheelUp&quot;, &quot;P&quot;)
#InputLevel, 100
3::SendInput {WheelUp}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-07-28T10:30:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127495#p127495</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127494#p127494" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p>А поведение, которое вы описали, это по сути совершенно другая команда.</p></blockquote></div><p>Просто это можно будет использовать только в одном случае, посмотрите оба кода в 20 посте, если починить как я предлагаю, то будет одинаково понятное и логичное поведение GetKeyState для всех кнопок, а то что есть сейчас ни к селу ни к городу.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-28T10:26:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127494#p127494</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127493#p127493" />
			<content type="html"><![CDATA[<p>Ну если так сделать, оно никому не помешает. А вместо гадания как это воспримется, я <a href="https://autohotkey.com/boards/viewtopic.php?f=14&amp;t=52867">написал в багрепорт</a> (так как разное поведение это всё таки ошибка), и заодно внёс предложение.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-28T10:19:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127493#p127493</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127490#p127490" />
			<content type="html"><![CDATA[<p>Изменить поведение на хоть сколько нибудь полезное, а логике оно противоречит и сейчас.<br /></p><div class="quotebox"><blockquote><p>ради <strong>своего</strong> удобства/уменьшения кода в <strong>вашем</strong> скрипте?</p></blockquote></div><p>Я за общее благо.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-28T09:52:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127490#p127490</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127487#p127487" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Так возвращает единицу, так как отправляется down</p></blockquote></div><p>Если нажать на 3, тоже отправляется down, но возвращается ноль.<br /></p><div class="codebox"><pre><code>WheelUp::ToolTip % GetKeyState(&quot;WheelUp&quot;, &quot;P&quot;)
#InputLevel, 100
3::SendInput {WheelUp}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-28T07:34:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127487#p127487</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GetKeyState и Wheel(Key)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127486#p127486" />
			<content type="html"><![CDATA[<p>Тема про то, что я предлагаю написать в багрепорт о разном поведении GetKeyState применимо к Wheel, до и после нажатия.<br />И исправить это не на всегда ноль, а всегда ноль для опции L. <br />А в опции P сохранять флаг физического или нефизического нажатия. <br />Чтобы <span class="bbu">в момент нажатия</span> можно было <span class="bbu">просто</span> определить - физически отправлено или нет.<br />С клавишами это удобно:<br /></p><div class="codebox"><pre><code>
2::ToolTip % GetKeyState(&quot;2&quot;, &quot;P&quot;)
#InputLevel, 100
3::SendInput {2}</code></pre></div><p>Хочется чтобы так же работало и с колёсиком:<br /></p><div class="codebox"><pre><code>
WheelUp::ToolTip % GetKeyState(&quot;WheelUp&quot;, &quot;P&quot;)
#InputLevel, 100
3::SendInput {WheelUp}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-28T07:32:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127486#p127486</id>
		</entry>
</feed>
