<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Откуда берется Ctrl???]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=11180</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11180&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Откуда берется Ctrl???».]]></description>
		<lastBuildDate>Mon, 28 Dec 2015 01:55:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Откуда берется Ctrl???]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99988#p99988</link>
			<description><![CDATA[<p><strong>teadrinker</strong> Спасибо за ссылку! Пытаюсь теперь понять что происходит...))<br />Если использовать левый Alt, то всё нормально, никаких левых Ctrl не появляется. Если его же использовать в любой комбинации мыши или клавиатуры, в потоке появляется левый Ctrl. Так же появляется Ctrl, если использовать правый Alt как отдельно, так и в комбинациях. По ссылке написано что делать если хулиганит правый Alt - переписать в реестре или удалить обновления, а у меня то левый, я только с ним работаю! Что можно с ним сделать? <br />Вот пример идеально работающего для Shift, но не для Alt+Shift, как хотелось бы.</p><div class="quotebox"><blockquote><p>#IfWinActive 3DEXPERIENCE</p><p>$+LButton::&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; orbit<br />SendInput {MButton down}{RButton down}&nbsp; <br />Loop<br />{<br />&nbsp; &nbsp; Sleep, 10<br />&nbsp; &nbsp; GetKeyState, state, LButton, P<br />&nbsp; &nbsp; if state = U&nbsp; &nbsp; &nbsp; &nbsp; <br />	break<br />&nbsp; &nbsp; <br />}<br />SendInput {MButton up}{RButton up} <br />return</p><p>;---------------</p><p>$+MButton::&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; pan<br />SendInput {MButton down}<br />Loop<br />{<br />&nbsp; &nbsp; Sleep, 10<br />&nbsp; &nbsp; GetKeyState, state, MButton, P<br />&nbsp; &nbsp; if state = U&nbsp; &nbsp; &nbsp; &nbsp; <br />	break<br />&nbsp; &nbsp; <br />}<br />SendInput {MButton up} <br />return</p><p>;---------------</p><br /><p>$+RButton::&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; zoom<br />SendInput {Ctrl down}{MButton down}<br />Loop<br />{<br />&nbsp; &nbsp; Sleep, 10<br />&nbsp; &nbsp; GetKeyState, state, RButton, P<br />&nbsp; &nbsp; if state = U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />	break<br />&nbsp; &nbsp; <br />}<br />SendInput {Ctrl up}{MButton up}<br />return</p><p>;----------------</p></blockquote></div><p>Если просто добавить Alt везде, то &#039;Pan&#039; ,из-за появления того самого левого Ctrl, превращается в &quot;Zoom&quot;. При этом с &#039;Orbit&#039; всё нормально. Тут либо надо затыкать этот Ctrl в скрипте, либо устранять причину.&nbsp; <img src="//forum.script-coding.com/img/smilies/hmm.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (Fatherboard)]]></author>
			<pubDate>Mon, 28 Dec 2015 01:55:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99988#p99988</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Откуда берется Ctrl???]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99987#p99987</link>
			<description><![CDATA[<p>Проблема и решение <a href="http://forum.script-coding.com/viewtopic.php?id=10401">подробно</a> описаны <a href="http://forum.script-coding.com/viewtopic.php?pid=91427#p91427">здесь</a>.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 27 Dec 2015 20:50:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99987#p99987</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Откуда берется Ctrl???]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99981#p99981</link>
			<description><![CDATA[<p><strong>Fatherboard</strong>, на форуме и в документации используются совсем другие термины. То, что по-Вашему &quot;MLB+RLB заменить на Shift+Alt+LMB&quot;,&nbsp; у нас принято называть &quot;на гор. клавишу <em><strong>Shift+Alt+ЛКМ</strong></em> назначить нажатие СКМ+ПКМ&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sun, 27 Dec 2015 16:40:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99981#p99981</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Откуда берется Ctrl???]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99980#p99980</link>
			<description><![CDATA[<p>Пояснения:<br />В программе CATIA управление камерой СКМ+ПКМ. Мне необходимо заменить это на Alt+Shift+ЛКМ, и, да, чтобы было удержание пока не отпустишь ЛКМ. Схожий код (без добавления Alt+ Shift) у других работает.</p>]]></description>
			<author><![CDATA[null@example.com (Fatherboard)]]></author>
			<pubDate>Sun, 27 Dec 2015 14:15:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99980#p99980</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Откуда берется Ctrl???]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99979#p99979</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Необходимо MLB+RLB заменить на Shift+Alt+LMB.</p></blockquote></div><p>Судя по коду, вопрос задан неправильно. А необходимо Shift+Alt+ЛКМ заменить на СКМ+ПКМ так, чтобы работало удержание.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sun, 27 Dec 2015 13:53:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99979#p99979</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Откуда берется Ctrl???]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99978#p99978</link>
			<description><![CDATA[<p>Добрый день!<br />Необходимо на горячие клавиши Shift+Alt+ЛКМ назначить нажатие СКМ+ПКМ.<br />Смог написать вот такой код:</p><div class="codebox"><pre><code>
!+LButton::
SendInput {MButton down}{RButton down} 
Loop
{
Sleep, 10
GetKeyState, state, LButton, P
if state = U 
break 
}
SendInput {MButton up}{RButton up} 
return</code></pre></div><p>Скрипт вроде работает, но если записать на MacroRecorder или другой рекордер макросов выдаст:</p><div class="codebox"><pre><code>Keyboard : ShiftLeft : KeyDown
Keyboard : AltLeft : KeyDown
Mouse : 193 : 306 : LeftButtonDown : 0 : 0 : 0
Keyboard : ControlLeft : KeyDown
Keyboard : ControlLeft : KeyUp
Keyboard : ControlLeft : KeyDown
Keyboard : ControlLeft : KeyUp
Keyboard : AltLeft : KeyUp
Keyboard : ShiftLeft : KeyUp
Mouse : 193 : 306 : MiddleButtonDown : 0 : 0 : 0
Mouse : 193 : 306 : RightButtonDown : 0 : 0 : 0
Keyboard : ControlLeft : KeyDown
Keyboard : AltLeft : KeyDown
Keyboard : ControlLeft : KeyUp
Keyboard : ShiftLeft : KeyDown
Keyboard : ControlLeft : KeyDown
Keyboard : ControlLeft : KeyUp
Keyboard : AltLeft : KeyUp
Keyboard : ShiftLeft : KeyUp
Mouse : 236 : 336 : MiddleButtonUp : 0 : 0 : 0
Mouse : 236 : 336 : RightButtonUp : 0 : 0 : 0
Keyboard : AltLeft : KeyDown
Keyboard : AltLeft : KeyDown
Keyboard : AltLeft : KeyUp
Keyboard : ShiftLeft : KeyUp</code></pre></div><p>Откуда то&nbsp; появляется Ctrl который делает невозможным использование Alt+Shift в других комбинациях в этой программе. Экспериментально проверил любое Alt+ЛКМ выдаёт многократное Ctrl в потоке .((( В чём ошибка?<br />Заранее благодарю!</p>]]></description>
			<author><![CDATA[null@example.com (Fatherboard)]]></author>
			<pubDate>Sun, 27 Dec 2015 13:13:29 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99978#p99978</guid>
		</item>
	</channel>
</rss>
