<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Где нужно размещать SetBatchLines, SetMouseDelay... ?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9797&amp;type=atom" />
	<updated>2014-07-11T13:28:39Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9797</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Где нужно размещать SetBatchLines, SetMouseDelay... ?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84704#p84704" />
			<content type="html"><![CDATA[<p><strong>Hydrogenium</strong>, а почему бы самому не проверить и не ответить на свой вопрос? <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /><br />Добавь первой строкой в нужной тебе функции такой код<br /></p><div class="codebox"><pre><code>MsgBox % A_BatchLines &quot;`n&quot; A_DefaultMouseSpeed
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2014-07-11T13:28:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84704#p84704</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Где нужно размещать SetBatchLines, SetMouseDelay... ?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84701#p84701" />
			<content type="html"><![CDATA[<p>Есть запускной файл ahk, в нём код типа:</p><div class="codebox"><pre><code>
#NoEnv        
#Persistent        
#SingleInstance Force 
#WinActivateForce 

SetDefaultMouseSpeed, 0 
SetMouseDelay, -1       
SetBatchLines, -1       

#Include 1.ahk
#Include 2.ahk
</code></pre></div><p>Если я в нём поставлю строчки:</p><div class="codebox"><pre><code>
SetDefaultMouseSpeed, 0 
SetMouseDelay, -1       
SetBatchLines, -1  </code></pre></div><p>Они будут распространяться на все подгружаемые модули (и функции в модулях) ?<br />Или чтобы их использовать надо писать в каждой процедуре/функции ?</p><p>Типа так :</p><div class="codebox"><pre><code>MouseMoveAndClick(x, y)
{       
    SetDefaultMouseSpeed, 0 
    SetMouseDelay, -1      
    SetBatchLines, -1      
    
    MouseGetPos saveX, saveY    
   
    WinGet, active_id, ID, A
    CoordMode, Mouse, Client
    Click %x%, %y%
    CoordMode, Mouse, Relative

    MouseMove %saveX%, %saveY%  
} 
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2014-07-11T09:46:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84701#p84701</id>
		</entry>
</feed>
