<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Вызов изначальной функции клавиши]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13337</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13337&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Вызов изначальной функции клавиши».]]></description>
		<lastBuildDate>Tue, 02 Jan 2018 11:35:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Вызов изначальной функции клавиши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122708#p122708</link>
			<description><![CDATA[<p>Догадался, спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (Br0ken1334)]]></author>
			<pubDate>Tue, 02 Jan 2018 11:35:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122708#p122708</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Вызов изначальной функции клавиши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122698#p122698</link>
			<description><![CDATA[<p>Видно же что <span style="color: grey">Send ^{LButton}</span> вызывает ГК <span style="color: grey">^LButton::</span>.<br />Сами не могли догадаться засунуть эту ГК внутрь условного блока <span style="color: grey">#If Not block ... #If</span>?</p>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Mon, 01 Jan 2018 05:43:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122698#p122698</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Вызов изначальной функции клавиши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122692#p122692</link>
			<description><![CDATA[<p>Проверил.<br />С Mbutton вроде всё нормально:<br /></p><div class="codebox"><pre><code>003: Return (6.43)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return (0.01)
009: KeyWait,LButton,T0.5 (0.50)
010: if ErrorLevel  
011: Send,{mbutton down}
012: KeyWait,LButton (6.01)
013: Send,{mbutton up} (0.03)
014: }
018: block := false
019: Return (9.75)</code></pre></div><p>А вот Ctrl - Lbutton провоцирует целую серию нажатий:<br /></p><div class="codebox"><pre><code>003: Return (3.70)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return (0.02)
009: KeyWait,LButton,T0.5 (0.08)
010: if ErrorLevel  
015: Send,^{LButton} (0.01)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.02)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.02)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.01)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.02)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.01)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.02)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.02)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.01)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.02)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.01)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.02)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.02)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.01)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.02)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.01)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.02)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.02)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.01)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.02)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.01)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.02)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.02)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.01)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.02)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.01)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.02)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.02)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.01)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.02)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.01)
004: block := true
005: SetTimer,CtrlLB_action,-1
006: Return
016: }
018: block := false
019: Return (0.02)
009: KeyWait,LButton,T0.5
010: if ErrorLevel  
015: Send,^{LButton} (0.03)
016: }
018: block := false
019: Return (8.92)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Br0ken1334)]]></author>
			<pubDate>Sun, 31 Dec 2017 11:39:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122692#p122692</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Вызов изначальной функции клавиши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122685#p122685</link>
			<description><![CDATA[<p>Не испытывал:<br /></p><div class="codebox"><pre><code>^LButton::
	block := true
	SetTimer CtrlLB_action, -1
Return

CtrlLB_action:
	KeyWait LButton, T0.5
	If ErrorLevel {
		Send {mbutton down}
		KeyWait LButton
		Send {mbutton up}
	} Else {
		Send ^{LButton}
	}

	block := false
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Sun, 31 Dec 2017 00:04:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122685#p122685</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Вызов изначальной функции клавиши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122683#p122683</link>
			<description><![CDATA[<p>Подскажите ещё как модифицировать этот скрипт, чтобы при клике Ctrl - LButton нажимался Ctrl - LButton, а при удержании - MButton?</p>]]></description>
			<author><![CDATA[null@example.com (Br0ken1334)]]></author>
			<pubDate>Sat, 30 Dec 2017 20:54:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122683#p122683</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Вызов изначальной функции клавиши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122629#p122629</link>
			<description><![CDATA[<p>Подобного софта не стоит, мышь простая офисная.<br />Костыль помог!</p><div class="codebox"><pre><code>001: Return (23.12)
002: block := true
003: SetTimer,CtrlLB_action,-1
004: Return (0.01)
007: Send,{mbutton down}
013: if Not block   (0.03)
008: KeyWait,LButton (0.08)
009: Send,{mbutton up} (0.03)
010: block := false
011: Return (4.98)</code></pre></div><p>А какой софт может конфликтовать с AHK?</p>]]></description>
			<author><![CDATA[null@example.com (Br0ken1334)]]></author>
			<pubDate>Fri, 29 Dec 2017 20:20:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122629#p122629</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Вызов изначальной функции клавиши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122625#p122625</link>
			<description><![CDATA[<p>Вероятно у вас стоит фирменный софт, который подменяет мышиные нажатия.<br />Можете использовать такой костыль:<br /></p><div class="codebox"><pre><code>~^LButton::
block := true
SetTimer CtrlLB_action, -1
Return

CtrlLB_action:
send {mbutton down}
keywait LButton
send {mbutton up}
block := false
return

#If Not block
$MButton::
send {alt down}{mbutton down}
keywait, MButton
send {alt up}{mbutton up}
MsgBox Alt-MMB is pressed
return
#If</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Fri, 29 Dec 2017 19:45:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122625#p122625</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Вызов изначальной функции клавиши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122619#p122619</link>
			<description><![CDATA[<p>Вот и мне бы такой лог. <br />Причем видно, что сначала посылается нужный Send,{mbutton down}, но тут же следом всё портит Send,{alt down}{mbutton down}. <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p><p>Попробовал на другом компьютере, тот же скрипт, Windows 7 x64, AHK 1.1.26.01 - всё сработало как надо!<br />Непонятно в чём тут причина...</p>]]></description>
			<author><![CDATA[null@example.com (Br0ken1334)]]></author>
			<pubDate>Fri, 29 Dec 2017 18:01:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122619#p122619</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Вызов изначальной функции клавиши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122615#p122615</link>
			<description><![CDATA[<p>Windows 7 x64, AHK 1.1.26.01</p><p>Попробовал:</p><div class="codebox"><pre><code>~^LButton::
send, {mbutton down}
keywait, LButton
send, {mbutton up}
return

$MButton::
send, {alt down}{mbutton down}
keywait, MButton
send, {alt up}{mbutton up}
MsgBox Alt-MMB is pressed
return</code></pre></div><p>Результат тот же, при нажатии Ctrl - LButton выскакивает MsgBox :(<br />Попробовал ещё 1.1.24.02, но это не помогло.</p><p>Лог:<br /></p><div class="codebox"><pre><code>001: Return (11.72)
016: Send,{alt down}{mbutton down} (0.02)
017: KeyWait,MButton (0.12)
018: Send,{alt up}{mbutton up} (0.02)
019: MsgBox,Alt-MMB is pressed (1.17)
020: Return (6.29)
002: Send,{mbutton down} (0.02)
016: Send,{alt down}{mbutton down} (0.01)
017: KeyWait,MButton
018: Send,{alt up}{mbutton up} (0.02)
019: MsgBox,Alt-MMB is pressed (2.75)
020: Return
003: KeyWait,LButton
004: Send,{mbutton up}
005: Return (2.90)</code></pre></div><p>Первый раз нажал MMB, второй Ctrl - LButton.</p>]]></description>
			<author><![CDATA[null@example.com (Br0ken1334)]]></author>
			<pubDate>Fri, 29 Dec 2017 15:12:13 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122615#p122615</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Вызов изначальной функции клавиши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122611#p122611</link>
			<description><![CDATA[<p>Убрал лишнее, поставил MsgBox в $MButton::</p><div class="codebox"><pre><code>~Ctrl &amp; LButton::
sendinput, {mbutton down}
keywait, LButton
sendinput, {mbutton up}
return

$MButton::
sendinput, {alt down}{mbutton down}
keywait, MButton
sendinput, {alt up}{mbutton up}
MsgBox Alt-MMB is pressed
return</code></pre></div><p>Нажатие MButton выдает положенный MsgBox, но и нажатие Ctrl - LButton делает то же самое.</p>]]></description>
			<author><![CDATA[null@example.com (Br0ken1334)]]></author>
			<pubDate>Fri, 29 Dec 2017 13:11:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122611#p122611</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Вызов изначальной функции клавиши]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122605#p122605</link>
			<description><![CDATA[<p>Доброго времени суток.<br />Есть такой вот скрипт. Всё работает хорошо, кроме последней части: когда я жму Ctrl - LButton, посылается Alt - MButton, вместо Mbutton. Вопрос: как сделать так чтобы отправлялась оригинальная Mbutton, а не измененная (Alt - MButton)?</p><div class="codebox"><pre><code>~Alt &amp; MButton:: 
sendinput, {alt down}{lbutton down}    
keywait, MButton
sendinput, {alt up}{lbutton up}
return

$MButton::
sendinput, {alt down}{mbutton down}
keywait, MButton
sendinput, {alt up}{mbutton up}
return

~Ctrl &amp; LButton::
sendinput, {mbutton down}
keywait, LButton
sendinput, {mbutton up}
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Br0ken1334)]]></author>
			<pubDate>Fri, 29 Dec 2017 04:46:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122605#p122605</guid>
		</item>
	</channel>
</rss>
