<?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=6803&amp;type=atom" />
	<updated>2012-02-12T12:08:23Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6803</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как применить скрипт?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=56707#p56707" />
			<content type="html"><![CDATA[<p>Сделано.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2012-02-12T12:08:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=56707#p56707</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как применить скрипт?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=56706#p56706" />
			<content type="html"><![CDATA[<p>Думаю, надо перекинуть.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2012-02-12T11:33:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=56706#p56706</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как применить скрипт?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=56705#p56705" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>Если в трее появилась иконка (должна по идее), то в её контекстном меню есть пункт Exit.</p><p>Как вариант, добавьте в в конец скрипта строчку<br /></p><div class="codebox"><pre><code>F12:: ExitApp</code></pre></div><p>и он будет завершаться по нажатию F12.</p><p>Мобильного телефона у меня нет и кошельков никаких тоже, так что ограничимся спасибом. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p></blockquote></div><p>спасибо!</p><br /><div class="quotebox"><cite>alexii пишет:</cite><blockquote><div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>Мобильного телефона у меня нет и кошельков никаких тоже…</p></blockquote></div><p>У нас есть много общего <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" />.</p><p>Перекинуть потом тему в соответствующий раздел: <a href="http://forum.script-coding.com/viewforum.php?id=13">AutoHotkey</a>?</p></blockquote></div><p>я не против</p>]]></content>
			<author>
				<name><![CDATA[anzor_30]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27587</uri>
			</author>
			<updated>2012-02-12T11:12:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=56705#p56705</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как применить скрипт?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=56702#p56702" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>Мобильного телефона у меня нет и кошельков никаких тоже…</p></blockquote></div><p>У нас есть много общего <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" />.</p><p>Перекинуть потом тему в соответствующий раздел: <a href="http://forum.script-coding.com/viewforum.php?id=13">AutoHotkey</a>?</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2012-02-12T10:13:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=56702#p56702</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как применить скрипт?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=56701#p56701" />
			<content type="html"><![CDATA[<p>Если в трее появилась иконка (должна по идее), то в её контекстном меню есть пункт Exit.</p><p>Как вариант, добавьте в в конец скрипта строчку<br /></p><div class="codebox"><pre><code>F12:: ExitApp</code></pre></div><p>и он будет завершаться по нажатию F12.</p><p>Мобильного телефона у меня нет и кошельков никаких тоже, так что ограничимся спасибом. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2012-02-12T09:48:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=56701#p56701</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как применить скрипт?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=56698#p56698" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>А зачем его устанавливать? Сохраните в файл с расширением .ahk. А чтобы скрипт работал, установите программу AutoHotkey с сайта autohotkey.com. После этого двойной щелчок по файлу скрипта спасёт отца русской демократии. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p></blockquote></div><p>Я ВАС ОБОЖАЮ! Еще 1 вопрос: как этот скрипт сбросить?<br />П.С.: Кидайте вам моб. номер, отблагодарю! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[anzor_30]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27587</uri>
			</author>
			<updated>2012-02-12T09:19:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=56698#p56698</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как применить скрипт?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=56696#p56696" />
			<content type="html"><![CDATA[<p>А зачем его устанавливать? Сохраните в файл с расширением .ahk. А чтобы скрипт работал, установите программу AutoHotkey с сайта autohotkey.com. После этого двойной щелчок по файлу скрипта спасёт отца русской демократии. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2012-02-12T05:45:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=56696#p56696</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как применить скрипт?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=56695#p56695" />
			<content type="html"><![CDATA[<p>Я чайник, я ничего не понимаю в скриптинге. НО ОЧЕНЬ нужно применить ортогональное пермещение мыши (то есть строго по горизонтали или по вертикали). ПОМОГИТЕ ПОЖАЛУЙСТА УСТАНОВИТЬ СКРИПТ НИЖЕ, ОЧЕНЬ НУЖНО!!! Тому, кто поможет положу на мобильник 100 рублей <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><div class="codebox"><pre><code>SetBatchLines, -1
   SetMouseDelay, -1
   CoordMode, Mouse
   OnExit, Exit

   hHook := DllCall(&quot;SetWindowsHookEx&quot;
      , Int, WH_MOUSE_LL := 14
      , Int, RegisterCallback(&quot;LowLevelMouseProc&quot;, &quot;Fast&quot;)
      , UInt, DllCall(&quot;GetModuleHandle&quot;, UInt, 0)
      , UInt, 0)
   Return

Exit:
   DllCall(&quot;UnhookWindowsHookEx&quot;, UInt, hHook)
   ExitApp

~LCtrl::
   MouseGetPos,, y_prev
   Direction = horizontal
   Return

~LShift::
   MouseGetPos, x_prev
   Direction = vertical
   Return

~LCtrl Up::   Direction =
~LShift Up:: Direction =

LowLevelMouseProc(nCode, wParam, lParam)
{
   global Direction, x_prev, y_prev

   if (nCode &lt; 0 || !Direction || wParam != 0x200)   ; WM_MOUSEMOVE = 0x200
      Return DllCall(&quot;CallNextHookEx&quot;, UInt, 0, Int, nCode, UInt, wParam, UInt, lParam)

   if Direction = horizontal
      x := NumGet(lParam+0), y := y_prev

   if Direction = vertical
      y := NumGet(lParam+0, 4), x := x_prev

   MouseMove, x, y, 0
   Return 1
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[anzor_30]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27587</uri>
			</author>
			<updated>2012-02-11T23:35:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=56695#p56695</id>
		</entry>
</feed>
