<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Как заблокировать курсор мыши по хоткею?]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=5768&amp;type=atom" />
	<updated>2011-05-03T00:57:14Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=5768</id>
		<entry>
			<title type="html"><![CDATA[Re: Как заблокировать курсор мыши по хоткею?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=48043#p48043" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?id=5329">AHK: удерживание курсора мыши в определенном окне</a></p>]]></content>
			<author>
				<name><![CDATA[kirtech]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26525</uri>
			</author>
			<updated>2011-05-03T00:57:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=48043#p48043</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как заблокировать курсор мыши по хоткею?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=48041#p48041" />
			<content type="html"><![CDATA[<p>Может есть еще идеи?</p>]]></content>
			<author>
				<name><![CDATA[sergeant.coolagin]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25809</uri>
			</author>
			<updated>2011-05-02T20:49:58Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=48041#p48041</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как заблокировать курсор мыши по хоткею?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=48035#p48035" />
			<content type="html"><![CDATA[<p>На 64-битной не пробовал, возможно, такой способ не прокатит.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-05-02T18:46:34Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=48035#p48035</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как заблокировать курсор мыши по хоткею?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=48034#p48034" />
			<content type="html"><![CDATA[<p><img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /> . У меня Windows 7 64-bit. Даже (WM_MOUSEMOVE := 0x200) не работает. Компилировать скрипт пробовал и от имени админа запускал.</p>]]></content>
			<author>
				<name><![CDATA[sergeant.coolagin]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25809</uri>
			</author>
			<updated>2011-05-02T18:26:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=48034#p48034</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как заблокировать курсор мыши по хоткею?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=48033#p48033" />
			<content type="html"><![CDATA[<p>Странно, у меня в Windows XP работает, блокируется движение курсора при нажатии левой кнопки. Попробуй вместо <em>WM_MOUSEMOVE := 0x200</em> написать <em>(WM_MOUSEMOVE := 0x200)</em>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-05-02T17:55:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=48033#p48033</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как заблокировать курсор мыши по хоткею?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=48032#p48032" />
			<content type="html"><![CDATA[<p>Так оно вообще не работает. Скрипт вроде как запущен, но ничего не происходит. Я нормально пользуюсь левой кнопкой мыши в Windows и в игре. Мышка не блокируется по нажатию на левую кнопку мыши.</p>]]></content>
			<author>
				<name><![CDATA[sergeant.coolagin]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25809</uri>
			</author>
			<updated>2011-05-02T16:58:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=48032#p48032</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как заблокировать курсор мыши по хоткею?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=48031#p48031" />
			<content type="html"><![CDATA[<p>Вот так можно ещё попробовать:<br /></p><div class="codebox"><pre><code>   #Persistent
   OnExit, Exit
   hHookKeybd := 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, hHookKeybd)
   ExitApp

LowLevelMouseProc(nCode, wParam, lParam)
{
   if nCode &lt; 0
      Return DllCall(&quot;CallNextHookEx&quot;, UInt, 0, Int, nCode, UInt, wParam, UInt, lParam)
   else if (GetKeyState(&quot;LButton&quot;, &quot;P&quot;) &amp;&amp; wParam = WM_MOUSEMOVE := 0x200)
      Return 1
   else
      Return DllCall(&quot;CallNextHookEx&quot;, UInt, 0, Int, nCode, UInt, wParam, UInt, lParam)
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-05-02T16:37:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=48031#p48031</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Как заблокировать курсор мыши по хоткею?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=48008#p48008" />
			<content type="html"><![CDATA[<p>Попробовал в проге Autohotkey:<br /></p><div class="codebox"><pre><code>*$lbutton:: 
{
BlockInput, MouseMove
}
Return
*$lbutton up::
{
BlockInput, MouseMoveOff
}
Return</code></pre></div><p>Но в играх это не работает. А нужно для игр. В винде блокирует, а в играх - нет. Скрипт очень простенький на любом языке получится. Через autohoykey вообще получится такое сделать? Подскажите на каком языке вообще лучше писать такой скриптик, чтобы полностью блокировал курсор мыши по хоткею.</p>]]></content>
			<author>
				<name><![CDATA[sergeant.coolagin]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25809</uri>
			</author>
			<updated>2011-05-02T04:38:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=48008#p48008</id>
		</entry>
</feed>
