<?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=8850&amp;type=atom" />
	<updated>2013-11-03T04:50:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8850</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK:двойной клик не работает]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=76854#p76854" />
			<content type="html"><![CDATA[<p><strong><a href="http://forum.script-coding.com/profile.php?id=26155">Zanoza</a></strong> посмотри мою тему - <a href="http://forum.script-coding.com/viewtopic.php?id=8855">AHK: Рабочий скрипт одиночного/двойного/удержания нажатия на клавишу</a> там решены все твои проблемы.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2013-11-03T04:50:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=76854#p76854</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:двойной клик не работает]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=76841#p76841" />
			<content type="html"><![CDATA[<p>Еще такой вариант у меня работает:</p><div class="codebox"><pre><code>loop
{
  if (GetKeyState(&quot;ctrl&quot;,&quot;P&quot;)=1)
  {
    keywait,ctrl,T0.2
    if errorlevel=1
      ctrltimeout=1
    errorlevel=
  }
  else
    ctrltimeout=0
}
Return


Ctrl::
if ctrltimeout=1
  return
1=1  ; какие либо действия
Return
</code></pre></div><br /><p>Later:<br />А у меня тут не текстовая клавиша, да еще и не на двойное нажатие, я ошибся, извиняюсь, пора отдохнуть.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-11-02T11:07:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=76841#p76841</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:двойной клик не работает]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=76839#p76839" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alectric пишет:</cite><blockquote><p>Попробуй ждать отпускания кнопки сразу после хоткея.<br /></p><div class="codebox"><pre><code>keywait,e,U</code></pre></div></blockquote></div><p>Да помогло спасибо<br />вот так работает<br /></p><div class="codebox"><pre><code>starttime := A_TickCount
doubleclick:=0
~e::  
keywait,e,U
elapsedtime := A_TickCount - starttime
IF (elapsedtime &lt; 250) and (doubleclick=1)
    {
    SetKeyDelay , 30 , 30    
    Send , {vk52} 
    doubleclick:=0
    }
else
    {
    doubleclick := 1
    }
starttime := A_TickCount
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Zanoza]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26155</uri>
			</author>
			<updated>2013-11-02T10:56:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=76839#p76839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:двойной клик не работает]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=76804#p76804" />
			<content type="html"><![CDATA[<p>Попробуй ждать отпускания кнопки сразу после хоткея.<br /></p><div class="codebox"><pre><code>keywait,e,U</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2013-11-02T05:44:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=76804#p76804</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:двойной клик не работает]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=76799#p76799" />
			<content type="html"><![CDATA[<p>Может есть у кого-то идеи помогите разобраться пожалуйста.<br />Взято <a href="http://forum.script-coding.com/viewtopic.php?id=8651">http://forum.script-coding.com/viewtopic.php?id=8651</a></p>]]></content>
			<author>
				<name><![CDATA[Zanoza]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26155</uri>
			</author>
			<updated>2013-11-02T01:58:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=76799#p76799</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK:двойной клик не работает]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=76798#p76798" />
			<content type="html"><![CDATA[<p>Вот пример кода для двойного клика мышки&nbsp; боковой клавиши.<br />Сам вопрос заключаться в том что если я меняю клавишу мыши на клавишу например&quot; Е &quot;<br />то при зажатии она постоянно спамит . А на мышке нет.&nbsp; Почему так?&nbsp; &nbsp; </p><div class="codebox"><pre><code>starttime := A_TickCount
doubleclick:=0
XButton1::  
elapsedtime := A_TickCount - starttime
IF (elapsedtime &lt; 250) and (doubleclick=1)
    {
    SetKeyDelay , 30 , 30    
    Send , {vk52} 
    doubleclick:=0
    }
else
    {
    doubleclick := 1
    }
starttime := A_TickCount
return</code></pre></div><p>XButton1&nbsp; или RButton - нормально&nbsp; работает но если заменить на клавишу &quot;Е&quot; к примеру и&nbsp; ее зажать&nbsp; то она спамит , а не хотелось бы.</p>]]></content>
			<author>
				<name><![CDATA[Zanoza]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26155</uri>
			</author>
			<updated>2013-11-02T01:25:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=76798#p76798</id>
		</entry>
</feed>
