<?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=5685</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=5685&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Изменение текущего курсора».]]></description>
		<lastBuildDate>Fri, 01 Apr 2011 19:31:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Изменение текущего курсора]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=47284#p47284</link>
			<description><![CDATA[<p>Спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Fri, 01 Apr 2011 19:31:25 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=47284#p47284</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Изменение текущего курсора]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=47282#p47282</link>
			<description><![CDATA[<div class="codebox"><pre><code>   OnExit, Exit

   OCR_NORMAL := 32512    ; обычный курсор в виде стрелки
   OCR_HAND := 32649    ; курсор в виде руки

   NORMAL_CursorHandle := DllCall( &quot;LoadCursor&quot;, Uint,0, Int, OCR_NORMAL) ; загрузить системный OCR_NORMAL-курсор
   HAND_CursorHandle   := DllCall( &quot;LoadCursor&quot;, Uint,0, Int, OCR_HAND)   ; загрузить системный OCR_HAND-курсор
   Return

Exit:   ; восстановление курсора:
   DllCall(&quot;SystemParametersInfo&quot;, UInt, SPI_SETCURSORS:=0x57, UInt, 0, UInt, 0, UInt, 0)
   Return

9::
   if !hand
      DllCall(&quot;SetSystemCursor&quot;, UInt, HAND_CursorHandle, Int, OCR_NORMAL), hand := 1
   Return
   
; восстановление курсора:
0:: DllCall(&quot;SystemParametersInfo&quot;, UInt, SPI_SETCURSORS:=0x57, UInt, 0, UInt, 0, UInt, 0), hand := &quot;&quot;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Fri, 01 Apr 2011 19:15:00 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=47282#p47282</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Изменение текущего курсора]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=47280#p47280</link>
			<description><![CDATA[<p>Прошу помочь. Нужно по нажатию [9] превратить курсор в руку,&nbsp; а по нажатию [0] превратить курсор в стрелку.<br /></p><div class="codebox"><pre><code>OCR_NORMAL := 32512    ; обычный курсор в виде стрелки
OCR_HAND := 32649    ; курсор в виде руки

NORMAL_CursorHandle := DllCall( &quot;LoadCursor&quot;, Uint,0, Int, OCR_NORMAL) ; загрузить системный OCR_NORMAL-курсор
HAND_CursorHandle   := DllCall( &quot;LoadCursor&quot;, Uint,0, Int, OCR_HAND)   ; загрузить системный OCR_HAND-курсор

9:: DllCall(&quot;SetSystemCursor&quot;, UInt, HAND_CursorHandle,    Int, OCR_NORMAL) ; заменить текущий OCR_NORMAL-курсор на системный OCR_HAND-курсор

0:: DllCall(&quot;SetSystemCursor&quot;, UInt, NORMAL_CursorHandle,    Int, OCR_NORMAL) ; заменить текущий OCR_NORMAL-курсор на системный OCR_NORMAL-курсор</code></pre></div><p>Проблемы: Если нажать [9] дважды, курсор возвращается в противоположное состояние. То же и при нажатии [0].</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Fri, 01 Apr 2011 19:01:02 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=47280#p47280</guid>
		</item>
	</channel>
</rss>
