<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Как заставить клавишу не вызывать саму себя?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15538&amp;type=atom" />
	<updated>2020-07-26T08:49:36Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15538</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как заставить клавишу не вызывать саму себя?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=141100#p141100" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />В общем пока, я решил это так:<br /></p><div class="codebox"><pre><code>
LAlt::
KeyWait, LAlt
if (A_PriorKey == &quot;LAlt&quot; &amp;&amp; A_TimeSinceThisHotkey &lt; single_press_time)
{
    if ( WinActive(&quot;ahk_class SunAwtFrame&quot;) || WinActive(&quot;ahk_class SunAwtDialog&quot;) )
    {
        key_seq := [&quot;{LAlt Down}&quot;, &quot;{VKBF Down}&quot;, &quot;{VKBF Up}&quot;, &quot;{LAlt Up}&quot;]
        for i, key in key_seq
        {
            Send, %key%
            Sleep, %key_delay%
        }
    }
}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[mkone112]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40951</uri>
			</author>
			<updated>2020-07-26T08:49:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=141100#p141100</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как заставить клавишу не вызывать саму себя?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=141098#p141098" />
			<content type="html"><![CDATA[<p><strong>fgslm</strong><br />Double Click на иконке скрипта в трее -&gt; view</p>]]></content>
			<author>
				<name><![CDATA[mkone112]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40951</uri>
			</author>
			<updated>2020-07-26T08:39:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=141098#p141098</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как заставить клавишу не вызывать саму себя?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140858#p140858" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>mkone112 пишет:</cite><blockquote><p>Lines most recently executed:</p></blockquote></div><div class="quotebox"><cite>mkone112 пишет:</cite><blockquote><p>KeyHistory:</p></blockquote></div><p>Чем записать также историю нажатий клавиш в скрипте?</p>]]></content>
			<author>
				<name><![CDATA[fgslm]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40966</uri>
			</author>
			<updated>2020-07-23T13:25:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140858#p140858</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как заставить клавишу не вызывать саму себя?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140840#p140840" />
			<content type="html"><![CDATA[<p>Ну значит он сам как-то клавиатурные посылы обрабатывает.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-07-22T22:11:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140840#p140840</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как заставить клавишу не вызывать саму себя?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140839#p140839" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />По всей видимости проблема проявляется только в PyCharm.</p><p>Lines most recently executed:<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>
Script lines most recently executed (oldest first).  Press [F5] to refresh.  The seconds elapsed between a line and the one after it is in parentheses to the right (if not 0).  The bottommost line&#039;s elapsed time is the number of seconds since it executed.

---- C:\Users\mkone\scripts\ahk\alt_remap\toForum.ahk
001: Return (4.09)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.01)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.01)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.01)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.03)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.01)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.01)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.03)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.01)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.03)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.01)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.01)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.01)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.01)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.03)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.01)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (0.02)
001: SetKeyDelay,-1
001: Send,{Blind}&lt;!{/ DownR}
001: Return
001: SetKeyDelay,-1
001: Send,{Blind}{/ Up}
001: Return (9.77)
</code></pre></div></div></div><p>KeyHistory:<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>
Window: C:\Users\mkone\scripts\ahk\alt_remap\toForum.ahk - AutoHotkey v1.1.32.00
Keybd hook: yes
Mouse hook: no
Enabled Timers: 0 of 0 ()
Interrupted threads: 0
Paused threads: 0 of 0 (0 layers)
Modifiers (GetKeyState() now) = LShift 
Modifiers (Hook&#039;s Logical) = LShift 
Modifiers (Hook&#039;s Physical) = 
Prefix key is down: no

NOTE: To disable the key history shown below, add the line &quot;#KeyHistory 0&quot; anywhere in the script.  The same method can be used to change the size of the history buffer.  For example: #KeyHistory 100  (Default is 40, Max is 500)

The oldest are listed first.  VK=Virtual Key, SC=Scan Code, Elapsed=Seconds since the previous event.  Types: h=Hook Hotkey, s=Suppressed (blocked), i=Ignored because it was generated by an AHK script, a=Artificial, #=Disabled via #IfWinActive/Exist, U=Unicode character (SendInput).

VK  SC	Type	Up/Dn	Elapsed	Key		Window
-------------------------------------------------------------------------------------------------------------
A4  038	h	d	0.02	LAlt           	
A0  02A	i	d	0.00	LShift         	
A4  038	h	u	0.00	LAlt           	
BC  033	i	d	0.00	,              	
BC  033	i	u	0.00	,              	
A0  02A	i	u	0.00	LShift         	
A4  038	i	d	0.00	LAlt           	
DC  02B	i	d	0.00	/              	
A4  038	i	u	0.00	LAlt           	
DC  02B	i	u	0.00	/              	
A4  038	h	d	0.01	LAlt           	
A4  038	h	u	0.00	LAlt           	
A0  02A	i	d	0.00	LShift         	
BC  033	i	d	0.00	,              	
BC  033	i	u	0.00	,              	
A0  02A	i	u	0.00	LShift         	
A4  038	i	d	0.00	LAlt           	
DC  02B	i	d	0.00	/              	
A4  038	i	u	0.00	LAlt           	
DC  02B	i	u	0.00	/              	
A4  038	h	d	0.02	LAlt           	
A4  038	h	u	0.00	LAlt           	
A0  02A	i	d	0.00	LShift         	
BC  033	i	d	0.00	,              	
BC  033	i	u	0.00	,              	
A0  02A	i	u	0.00	LShift         	
A4  038	i	d	0.00	LAlt           	
DC  02B	i	d	0.00	/              	
A4  038	i	u	0.00	LAlt           	
DC  02B	i	u	0.00	/              	
A4  038	h	d	0.02	LAlt           	
A0  02A	i	d	0.00	LShift         	
A4  038	h	u	0.00	LAlt           	
BC  033	i	d	0.00	,              	
BC  033	i	u	0.00	,              	
A4  038	i	d	0.00	LAlt           	
DC  02B	i	d	0.00	/              	
A4  038	i	u	0.00	LAlt           	
A0  02A	i	d	0.00	LShift         	
DC  02B	i	u	0.00	/      


</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[mkone112]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40951</uri>
			</author>
			<updated>2020-07-22T22:07:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140839#p140839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как заставить клавишу не вызывать саму себя?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140827#p140827" />
			<content type="html"><![CDATA[<p>Не происходит, если записать код как есть в вашем примере. И не должно.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-07-22T18:25:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140827#p140827</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как заставить клавишу не вызывать саму себя?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140823#p140823" />
			<content type="html"><![CDATA[<p>Пробовал по всякому, например так:<br /></p><div class="codebox"><pre><code>$LAlt::Send &lt;!/</code></pre></div><p>происходит бесконечная посылка &lt;!/</p>]]></content>
			<author>
				<name><![CDATA[mkone112]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40951</uri>
			</author>
			<updated>2020-07-22T17:23:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140823#p140823</id>
		</entry>
</feed>
