<?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=16170&amp;type=atom" />
	<updated>2021-03-11T16:13:54Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16170</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ускорить определение размера указателя мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146732#p146732" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong> спасибо, вроде побыстрее стало!<br />Правда коренным образом ситуацию не исправило, так как проблема крылась не столько в скорости а сколько в ошибке алгоритма.<br />Ошибку нашел и исправил, теперь всё хорошо работает.</p><p>Вот так, жест срабатывает хорошо.<br /></p><div class="codebox"><pre><code>{
send, {RButton} 
Sleep, 100
send, v
return
}
else
send, {MButton down}
KeyWait, MButton, u
send, {MButton up}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[OmTatSat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33453</uri>
			</author>
			<updated>2021-03-11T16:13:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146732#p146732</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ускорить определение размера указателя мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146731#p146731" />
			<content type="html"><![CDATA[<p>Используете &#039;SetBatchLines -1&#039;&nbsp; - возможно ускорит.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-03-11T15:51:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146731#p146731</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: ускорить определение размера указателя мышки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=146726#p146726" />
			<content type="html"><![CDATA[<p>Здравствуйте, есть такой код<br /></p><div class="codebox"><pre><code>; exif view
#IfWinActive, 4pda.ru
MButton::
VarSetCapacity(CurrentCursorStruct, A_PtrSize + 16)

NumPut(A_PtrSize+16, CurrentCursorStruct, &quot;uInt&quot;) ;for some reason cbSize is set to 0 after each call
  DllCall(&quot;GetCursorInfo&quot;, &quot;ptr&quot;, &amp;CurrentCursorStruct)
 
  hCursor := NumGet(CurrentCursorStruct, 8, &quot;ptr&quot;)
 
  ;Tooltip, hCursor: %hCursor%
  if (hCursor &lt; 0) or (hCursor &gt; 100000)
{
send, {RButton} 
Sleep, 100
send, v
return
}
else
send, {MButton}
return</code></pre></div><p>Проблема в том, что на зажатие mbutton и свайп вниз стоит действие, с этим кодом этот жест срабатывает не всегда, как понимаю из-за задержки при выполнении кода. <br />По сути, когда навожу на изображение - указатель мыши становится прозрачным и меняет размер, именно нахождение мыши над изображением и определяет код.</p><p>Существуют ли варианты сделать то же самое с уменьшенными задержками?</p>]]></content>
			<author>
				<name><![CDATA[OmTatSat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33453</uri>
			</author>
			<updated>2021-03-11T06:50:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=146726#p146726</id>
		</entry>
</feed>
