<?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>http://forum.script-coding.com/viewtopic.php?id=8682</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=8682&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK:Назначить кнопку активации скрипта.».]]></description>
		<lastBuildDate>Mon, 23 Sep 2013 20:29:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK:Назначить кнопку активации скрипта.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=75516#p75516</link>
			<description><![CDATA[<p>Надеюсь этот пример вам поможет.<br /></p><div class="codebox"><pre><code>pause
loop, {
    Msgbox Проверка работоспособности.
    sleep, 5000
    }
f2::pause</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Zmey25)]]></author>
			<pubDate>Mon, 23 Sep 2013 20:29:25 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=75516#p75516</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Назначить кнопку активации скрипта.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=75478#p75478</link>
			<description><![CDATA[<div class="quotebox"><cite>nikolay281644 пишет:</cite><blockquote><p><a href="http://forum.script-coding.com/viewtopic.php?pid=69475#p69475">Извиняюсь, что возможно не допонял правила форума......Пытаюсь найти , что не так оформил....</a></p></blockquote></div><p>И название темы должно начинатся с большой буквы, и <span class="bbu">отражать её суть</span>.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Fri, 20 Sep 2013 09:32:10 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=75478#p75478</guid>
		</item>
		<item>
			<title><![CDATA[AHK:Назначить кнопку активации скрипта.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=75476#p75476</link>
			<description><![CDATA[<p>Есть скрипт :<br />#NoEnv<br />SendMode Input</p><p>_auto := true ;Toggle for the anti-recoil being on or off. default is on</p><p>~LButton::autofire() ; When the LButton is pressed run the autofire() function<br />+LButton::_auto := ! _auto ;Shift + LButton used to toggle the anti-recoil on and off<br />F1::ExitApp ; F1 used to exit the ahk script file</p><p>; autofire() function, name is misleading could easily be antiRecoil()<br />autofire()<br />{<br />&nbsp; global _auto <br />&nbsp; if _auto ; if _auto == true. i.e. is anti-recoil on? <br />&nbsp; { ; anti-recoil on?&nbsp; If yes do this<br />&nbsp; &nbsp; Loop ; Continuously loop until a &#039;break&#039; command<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; if GetKeyState(&quot;LButton&quot;, &quot;P&quot;) ; If LButton is pressed<br />&nbsp; &nbsp; &nbsp; { ; LButton pressed? If yes do this<br />&nbsp; &nbsp; &nbsp; &nbsp; Sleep 85 ; sleep for 85 milliseconds<br />&nbsp; &nbsp; &nbsp; &nbsp; mouseXY(0, 6) ;Call the mouseXY() function which moves the mouse the specified distance. mouseXY( X, Y,)<br />&nbsp; &nbsp; &nbsp; &nbsp; Sleep 45 ; sleep for 45milliseconds<br />&nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; else ;LButton pressed? If no do this, i.e. exit the loop<br />&nbsp; &nbsp; &nbsp; &nbsp; break ;will stop the loop<br />&nbsp; &nbsp; } ;; loop<br />&nbsp; } ;; if<br />} ;; autofire() ; anti-recoil on? If no do nothing</p><p>mouseXY(x,y)<br />{<br />&nbsp; DllCall(&quot;mouse_event&quot;,uint,1,int,x,int,y,uint,0,int,0) ; moves the mouse could easily be the built in autohotkey MouseMove, X, Y<br />}</p><br /><br /><br /><p>ПОдскажите, на какую кнопку его запускать( он запускается сразу, как запустишь) и как его выключать.<br />Также подскажите, я бы хотел сделать так, чтобы на F2 он запускался, и на F2 останавливался, или на CAPSLOCK. В общем как изменить в скрипте, чтобы назначить кнопку OFF и ON</p><p>Заранее спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (nikolay281644)]]></author>
			<pubDate>Fri, 20 Sep 2013 06:12:54 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=75476#p75476</guid>
		</item>
	</channel>
</rss>
