<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: экранная лупа на AutoHotkey]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=6638&amp;type=atom" />
	<updated>2012-06-11T20:09:03Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=6638</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60882#p60882" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Grey пишет:</cite><blockquote><p>Хорошо я попробовал:</p></blockquote></div><p>Ну в код вникать я не стал, но там в функции &quot;ChangeZoom&quot; используются возвращаемые значения неверного типа.<br /></p><div class="quotebox"><cite>код пишет:</cite><blockquote><p>hdC:=DllCall(&quot;GetDC&quot;, &quot;Ptr&quot;, 0)<br />должно быть:<br />hdC:=DllCall(&quot;GetDC&quot;, &quot;ptr&quot;, 0<strong>, &quot;ptr&quot;</strong>)</p></blockquote></div><p>Далее- в &quot;NumPut&quot; почти никогда не указывается тип значения. Не знаю в каком именно месте это необходимо сделать, но я проставил везде и окно скрипта появилось.<br />Хотя работает <a href="http://www.youtube.com/watch?v=B-jQfN3n7tc">немножко по-дэбильному</a>, но это, наверно, проблема не x64 <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-06-11T20:09:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60882#p60882</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60854#p60854" />
			<content type="html"><![CDATA[<p>Хорошо я попробовал:</p><div class="codebox"><pre><code>#NoEnv
SetBatchLines, -1
CoordMode, Pixel
Run, % &quot;net stop uxsms&quot;,, Hide
hModule:=DllCall(&quot;LoadLibrary&quot;, &quot;Str&quot;, &quot;gdiplus.dll&quot;)
VarSetCapacity(GdiplusStartupInput, A_PtrSize=8 ? 24:16, 0)
NumPut(1, GdiplusStartupInput, 0, &quot;Char&quot;)
DllCall(&quot;gdiplus\GdiplusStartup&quot;, &quot;Ptr*&quot;, pToken
                                , &quot;Ptr&quot;, &amp;GdiplusStartupInput
                                , &quot;Ptr&quot;, 0)
VarSetCapacity(BITMAPINFO, 44, 0)
NumPut(40, BITMAPINFO, 0), NumPut(1, BITMAPINFO, 12, &quot;UShort&quot;)
NumPut(32, BITMAPINFO, 14, &quot;UShort&quot;), NumPut(0, BITMAPINFO, 16)
VarSetCapacity(Size, 8, 0), ChangeZoom(10)
SetTimer, UpdWindow, 250
OnExit, ExitScript

1::ChangeZoom(5)
2::ChangeZoom(10)
3::ChangeZoom(15)

UpdWindow:
   Loop, % Var1
      GdipDrawLine(A_Index-1)
   NumPut(Var0, Size, 0), NumPut(Var0, Size, 4)
   DllCall(&quot;UpdateLayeredWindow&quot;, &quot;Ptr&quot;, GUIhWnd
                                , &quot;Ptr&quot;, 0
                                , &quot;Ptr&quot;, 0
                                , &quot;Ptr&quot;, &amp;Size
                                , &quot;Ptr&quot;, hMemDC
                                , &quot;Int64*&quot;, 0
                                , &quot;Ptr&quot;, 0
                                , &quot;Ptr*&quot;, 0x01FF0000
                                , &quot;UInt&quot;, 2)
   Return

ExitScript:
   DllCall(&quot;gdiplus\GdiplusShutdown&quot;, &quot;Ptr&quot;, pToken)
   DllCall(&quot;FreeLibrary&quot;, &quot;Ptr&quot;, hModule)
   Run, % &quot;net start uxsms&quot;,, Hide
   ExitApp

GdipDrawLine(Y)
{
   global
   Loop, % Var1
   {
      PixelGetColor, CurrentColor, A_ScreenWidth//2-Var2+A_Index-1
                                 , A_ScreenHeight//2-Var2+Y, RGB
      DllCall(&quot;gdiplus\GdipSetSolidFillColor&quot;, &quot;Ptr&quot;, pBrush
                                             , &quot;UInt&quot;, CurrentColor
                                                     | 0xFF000000)
      DllCall(&quot;gdiplus\GdipFillRectangle&quot;, &quot;Ptr&quot;, pGraphics
                                         , &quot;Ptr&quot;, pBrush
                                         , &quot;Float&quot;, (A_Index-1)*Var3
                                         , &quot;Float&quot;, Y*Var3
                                         , &quot;Float&quot;, Var3
                                         , &quot;Float&quot;, Var3)
   }
}

ChangeZoom(ZSize)
{
   global
   Gui, Destroy
   Var0:=ZSize=5 ? 155:ZSize=10 ? 150:165
   Var1:=ZSize=5 ?  31:ZSize=10 ?  15: 11
   Var2:=ZSize=5 ?  15:ZSize=10 ?   7:  5
   Var3:=ZSize=5 ?   5:ZSize=10 ?  10: 15
   Gui, +AlwaysOnTop -Caption +E0x80000 +HwndGUIhWnd +Owner
   Gui, Show, % &quot;w&quot;Var0 &quot; h&quot;Var0
   WinMove, % &quot;ahk_id&quot;GUIhWnd,, A_ScreenWidth//2-Var0/2
                              , A_ScreenHeight//2-Var0/2
   NumPut(Var0, BITMAPINFO, 4), NumPut(Var0, BITMAPINFO, 8)
   hdC:=DllCall(&quot;GetDC&quot;, &quot;Ptr&quot;, 0)
   hBitmap:=DllCall(&quot;CreateDIBSection&quot;, &quot;Ptr&quot;, hDC
                                      , &quot;Ptr&quot;, &amp;BITMAPINFO
                                      , &quot;UInt&quot;, 0
                                      , &quot;Ptr&quot;, 0
                                      , &quot;Ptr&quot;, 0
                                      , &quot;UInt&quot;, 0)
   DllCall(&quot;ReleaseDC&quot;, &quot;Ptr&quot;, 0, &quot;Ptr&quot;, hDC)
   hMemDC:=DllCall(&quot;CreateCompatibleDC&quot;, &quot;Ptr&quot;, 0)
   DllCall(&quot;SelectObject&quot;, &quot;Ptr&quot;, hMemDC, &quot;Ptr&quot;, hBitmap)
   DllCall(&quot;gdiplus\GdipCreateFromHDC&quot;, &quot;Ptr&quot;, hMemDC
                                      , &quot;Ptr*&quot;, pGraphics)
   DllCall(&quot;gdiplus\GdipCreateSolidFill&quot;, &quot;Int&quot;, 0, &quot;Ptr*&quot;, pBrush)
   TrayTip,, % ZSize &quot;x&quot;
}</code></pre></div><p>у меня не сработало на х64, интересно какой код будет у Вас. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> </p><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>...писать не хочется.</p></blockquote></div><p>Если честно, то да, не хочется.</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-06-10T18:59:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60854#p60854</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60841#p60841" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Плюс ещё не забывать о выравнивании.</p></blockquote></div><p>Ну дык оно тоже есть и в x86 и в x64 <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-06-09T22:54:38Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60841#p60841</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60839#p60839" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Александр_ пишет:</cite><blockquote><p>Да ладно, там всего одно правило- видишь указатель/хендл/{параметр, который можно использовать как указатель(например LPARAM)}, пишешь &quot;ptr&quot;.</p></blockquote></div><p>Плюс ещё нужно добавлять в конце &quot;Ptr&quot;, когда функция возвращает поинтер либо хэндл, ибо по умолчанию &quot;Int&quot;.</p><div class="quotebox"><cite>Александр_ пишет:</cite><blockquote><p>При составлении структур тоже самое, только прибавляешь PtrSize- отступы ты при любом раскладе должен считать.</p></blockquote></div><p>Плюс ещё не забывать о выравнивании.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-06-09T22:05:26Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60839#p60839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60838#p60838" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Видимо, у <strong>Grey</strong>&#039;я нет доступа к 64-битной системе, а код, который невозможно проверить, писать не хочется. Кстати, дополнительные усилия требуются, когда дело доходит до составления структур.</p></blockquote></div><p>Да ладно, там всего одно правило- видишь указатель/хендл/{параметр, который можно использовать как указатель(например LPARAM)}, пишешь &quot;ptr&quot;. При составлении структур тоже самое, только прибавляешь PtrSize- отступы ты при любом раскладе должен считать.</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-06-09T21:55:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60838#p60838</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60836#p60836" />
			<content type="html"><![CDATA[<p>Видимо, у <strong>Grey</strong>&#039;я нет доступа к 64-битной системе, а код, который невозможно проверить, писать не хочется. Кстати, дополнительные усилия требуются, когда дело доходит до составления структур.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-06-09T21:48:02Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60836#p60836</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60835#p60835" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Grey пишет:</cite><blockquote><p>Писалось для AHK_L Unicode x86.</p></blockquote></div><p>Может имеет смысл писать код, совместимый как с x86, так и с x64? Тем более, что дополнительных усилий для этого не требуется.</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-06-09T21:33:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60835#p60835</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60834#p60834" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Gabe_#33 пишет:</cite><blockquote><p>...в какой строке находится значение с зумом?</p></blockquote></div><p>Это эмуляция увеличения, тут на общий вид влияют несколько значений (я представил их в коде ввиде переменных):</p><div class="codebox"><pre><code>#NoEnv
SetBatchLines, -1
CoordMode, Pixel
;DllCall(&quot;dwmapi\DwmEnableComposition&quot;, &quot;UInt&quot;, False)
Run, % &quot;net stop uxsms&quot;,, Hide
hModule:=DllCall(&quot;LoadLibrary&quot;, &quot;Str&quot;, &quot;gdiplus.dll&quot;)
VarSetCapacity(GdiplusStartupInput, 16, 0)
NumPut(1, GdiplusStartupInput, 0, &quot;Char&quot;)
DllCall(&quot;gdiplus\GdiplusStartup&quot;, &quot;UInt*&quot;, pToken
                                , &quot;UInt&quot;, &amp;GdiplusStartupInput)
VarSetCapacity(BITMAPINFO, 40, 0), NumPut(40, BITMAPINFO, 0)
NumPut(1, BITMAPINFO, 12, &quot;UShort&quot;), NumPut(32, BITMAPINFO, 14, &quot;UShort&quot;)
NumPut(0, BITMAPINFO, 16), ChangeZoom(10)
SetTimer, UpdWindow, 250
OnExit, ExitScript

1::ChangeZoom(5)
2::ChangeZoom(10)
3::ChangeZoom(15)

UpdWindow:
   Loop, % Var1
      GdipDrawLine(A_Index-1)
   DllCall(&quot;UpdateLayeredWindow&quot;, &quot;UInt&quot;, GUIhWnd
                                , &quot;UInt&quot;, 0
                                , &quot;UInt&quot;, 0
                                , &quot;Int64*&quot;, Var0|Var0&lt;&lt;32
                                , &quot;UInt&quot;, hMemDC
                                , &quot;Int64*&quot;, 0
                                , &quot;UInt&quot;, 0
                                , &quot;UInt*&quot;, 0x01FF0000
                                , &quot;UInt&quot;, 2)
   Return

ExitScript:
   DllCall(&quot;gdiplus\GdiplusShutdown&quot;, &quot;UInt&quot;, pToken)
   DllCall(&quot;FreeLibrary&quot;, &quot;UInt&quot;, hModule)
;   DllCall(&quot;dwmapi\DwmEnableComposition&quot;, &quot;UInt&quot;, True)
   Run, % &quot;net start uxsms&quot;,, Hide
   ExitApp

GdipDrawLine(Y)
{
   global
   Loop, % Var1
   {
      PixelGetColor, CurrentColor, A_ScreenWidth//2-Var2+A_Index-1
                                 , A_ScreenHeight//2-Var2+Y, RGB
      DllCall(&quot;gdiplus\GdipSetSolidFillColor&quot;, &quot;UInt&quot;, pBrush
                                             , &quot;UInt&quot;, CurrentColor
                                                     | 0xFF000000)
      DllCall(&quot;gdiplus\GdipFillRectangle&quot;, &quot;UInt&quot;, pGraphics
                                         , &quot;UInt&quot;, pBrush
                                         , &quot;Float&quot;, (A_Index-1)*Var3
                                         , &quot;Float&quot;, Y*Var3
                                         , &quot;Float&quot;, Var3
                                         , &quot;Float&quot;, Var3)
   }
}

ChangeZoom(ZSize)
{
   global
   Gui, Destroy
   Var0:=ZSize=5 ? 155:ZSize=10 ? 150:165
   Var1:=ZSize=5 ?  31:ZSize=10 ?  15: 11
   Var2:=ZSize=5 ?  15:ZSize=10 ?   7:  5
   Var3:=ZSize=5 ?   5:ZSize=10 ?  10: 15
   Gui, +AlwaysOnTop -Caption +E0x80000 +HwndGUIhWnd +Owner
   Gui, Show, % &quot;w&quot;Var0 &quot; h&quot;Var0
   WinMove, % &quot;ahk_id&quot;GUIhWnd,, A_ScreenWidth//2-Var0/2
                              , A_ScreenHeight//2-Var0/2
   NumPut(Var0, BITMAPINFO, 4), NumPut(Var0, BITMAPINFO, 8)
   hBitmap:=DllCall(&quot;CreateDIBSection&quot;, &quot;UInt&quot;, hDC
                                      , &quot;UInt&quot;, &amp;BITMAPINFO
                                      , &quot;UInt&quot;, 0
                                      , &quot;UInt*&quot;, 0
                                      , &quot;UInt&quot;, 0
                                      , &quot;UInt&quot;, 0)
   DllCall(&quot;ReleaseDC&quot;, &quot;UInt&quot;, 0, &quot;UInt&quot;, hDC)
   hMemDC:=DllCall(&quot;CreateCompatibleDC&quot;, &quot;UInt&quot;, 0)
   DllCall(&quot;SelectObject&quot;, &quot;UInt&quot;, hMemDC, &quot;UInt&quot;, hBitmap)
   DllCall(&quot;gdiplus\GdipCreateFromHDC&quot;, &quot;UInt&quot;, hMemDC
                                      , &quot;UInt*&quot;, pGraphics)
   DllCall(&quot;gdiplus\GdipCreateSolidFill&quot;, &quot;Int&quot;, 0, &quot;UInt*&quot;, pBrush)
   TrayTip,, % ZSize &quot;x&quot;
}</code></pre></div><div class="quotebox"><cite>Gabe_#33 пишет:</cite><blockquote><p>Возможно ли убрать вот это - ... Если да то как?</p></blockquote></div><p>При таком уведомлении, <em>кликнуть</em> по нему, и в появившенмся окне выставить <em>галочку</em> в <em>чекбоксе</em> об отказе в дальнейших уведомлениях, или использовать альтернативный вариант который в коде выше. </p><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>...в связи с тем, что сейчас существуют несколько альтернативных версий AHK, ...желательно указывать, для какой версии написан код...</p></blockquote></div><p>Писалось для AHK_L Unicode x86.</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-06-09T21:27:24Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60834#p60834</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60824#p60824" />
			<content type="html"><![CDATA[<p><strong>Grey</strong>, в связи с тем, что сейчас существуют несколько альтернативных версий AHK, главные из которых AHK_L Unicode x86 и AHK_L Unicode x64, желательно указывать, для какой версии написан код, либо писать <a href="http://l.autohotkey.net/docs/Compat.htm#ptr">универсальный</a> (но всё равно версию стоит указать, т. к. некоторые ещё используют AHK-basic).</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-06-08T15:19:57Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60824#p60824</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60812#p60812" />
			<content type="html"><![CDATA[<p>Grey,а в какой строке находится значение с зумом?<br />Возможно ли убрать вот это - &quot;Цветовая схема изменена на упрощённый стиль&quot;при включении скрипта.Что бы цветовая схема не затрагивалась. Если да то как?</p>]]></content>
			<author>
				<name><![CDATA[Gabe_#33]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27760</uri>
			</author>
			<updated>2012-06-07T14:22:58Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60812#p60812</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60804#p60804" />
			<content type="html"><![CDATA[<p>Выше был пример со слежением за самим курсором, вот пример (не редактирую код выше специально, чтобы можно было понять разницу) с фокусировкой на центр экрана:</p><div class="codebox"><pre><code>#NoEnv
SetBatchLines, -1
CoordMode, Pixel
DllCall(&quot;dwmapi\DwmEnableComposition&quot;, &quot;UInt&quot;, False)
Gui, +AlwaysOnTop -Caption +E0x80000 +HwndGUIhWnd +Owner
Gui, Show, w150 h150, 10xZoom
WinMove, % &quot;ahk_id&quot;GUIhWnd,, A_ScreenWidth//2-76, A_ScreenHeight//2-76
hModule:=DllCall(&quot;LoadLibrary&quot;, &quot;Str&quot;, &quot;gdiplus.dll&quot;)
VarSetCapacity(GdiplusStartupInput, 16, 0)
NumPut(1, GdiplusStartupInput, 0, &quot;Char&quot;)
DllCall(&quot;gdiplus\GdiplusStartup&quot;, &quot;UInt*&quot;, pToken, &quot;UInt&quot;, &amp;GdiplusStartupInput)
VarSetCapacity(BITMAPINFO, 40, 0)
NumPut(40, BITMAPINFO, 0)
NumPut(150, BITMAPINFO, 4) ; biWidth
NumPut(150,BITMAPINFO, 8) ; biHeight
NumPut(1, BITMAPINFO, 12, &quot;UShort&quot;)
NumPut(32, BITMAPINFO, 14, &quot;UShort&quot;)
NumPut(0, BITMAPINFO, 16)
hBitmap:=DllCall(&quot;CreateDIBSection&quot;, &quot;UInt&quot;, hDC
                                   , &quot;UInt&quot;, &amp;BITMAPINFO
                                   , &quot;UInt&quot;, 0
                                   , &quot;UInt*&quot;, 0
                                   , &quot;UInt&quot;, 0
                                   , &quot;UInt&quot;, 0)
DllCall(&quot;ReleaseDC&quot;, &quot;UInt&quot;, 0, &quot;UInt&quot;, hDC)
hMemDC:=DllCall(&quot;CreateCompatibleDC&quot;, &quot;UInt&quot;, 0)
DllCall(&quot;SelectObject&quot;, &quot;UInt&quot;, hMemDC, &quot;UInt&quot;, hBitmap)
DllCall(&quot;gdiplus\GdipCreateFromHDC&quot;, &quot;UInt&quot;, hMemDC, &quot;UInt*&quot;, pGraphics)
DllCall(&quot;gdiplus\GdipCreateSolidFill&quot;, &quot;Int&quot;, Color1, &quot;UInt*&quot;, pBrush)
SetTimer, UpdWindow, 50
OnExit, ExitScript
Return

UpdWindow:
   Loop, 15
      GdipDrawLine(A_Index-1)
   DllCall(&quot;UpdateLayeredWindow&quot;, &quot;UInt&quot;, GUIhWnd
                                , &quot;UInt&quot;, 0
                                , &quot;UInt&quot;, 0
                                , &quot;Int64*&quot;, 0x09600000096 ; 150x150
                                , &quot;UInt&quot;, hMemDC
                                , &quot;Int64*&quot;, 0
                                , &quot;UInt&quot;, 0
                                , &quot;UInt*&quot;, 0x01FF0000
                                , &quot;UInt&quot;, 2)
   Return

ExitScript:
   DllCall(&quot;gdiplus\GdiplusShutdown&quot;, &quot;UInt&quot;, pToken)
   DllCall(&quot;FreeLibrary&quot;, &quot;UInt&quot;, hModule)
   DllCall(&quot;dwmapi\DwmEnableComposition&quot;, &quot;UInt&quot;, True)
   ExitApp

GdipDrawLine(Y)
{
   global
   Loop, 15
   {
      PixelGetColor, CurrentColor, A_ScreenWidth//2-7+A_Index-1
                                 , A_ScreenHeight//2-7+Y, RGB
      DllCall(&quot;gdiplus\GdipSetSolidFillColor&quot;, &quot;UInt&quot;, pBrush
                                             , &quot;UInt&quot;, CurrentColor|0xFF000000)
      DllCall(&quot;gdiplus\GdipFillRectangle&quot;, &quot;UInt&quot;, pGraphics
                                         , &quot;UInt&quot;, pBrush
                                         , &quot;Float&quot;, (A_Index-1)*10
                                         , &quot;Float&quot;, Y*10
                                         , &quot;Float&quot;, 10
                                         , &quot;Float&quot;, 10)
   }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-06-06T22:38:06Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60804#p60804</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60801#p60801" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>OFF пишет:</cite><blockquote><div class="quotebox"><cite>creature.ws пишет:</cite><blockquote><p>OFF: Вероятно, <strong>Gabe_#33</strong> действительно важен однозначный ответ [возможно|невозможно] .</p></blockquote></div><p>Именно он и важен. Виноват,я не много не привык сразу выражать &quot;формулировки&quot;...Как могу так общаюсь.Не в коем случае не заказываю...потому как сам увлекаюсь написанием,построением скриптов.</p></blockquote></div><div class="quotebox"><cite>OFF пишет:</cite><blockquote><p>Возможно ли?<br />---<br />Да<br />---<br /> я Точ то получилось у меня...но вот тут не много не получается...Как быть здесь?<br />---<br />Сделай так и так<br />---<br /> я А если здесь то то....<br />---<br />Сделай так.<br />---<br /> я Ок спасибо</p><p>Разве есть что то не то?Али формулировки внеземные?<br />Признаю,я не излишне опытен в общении на форумах,но я учусь.А флуд легко удаляется,ничего в этом страшного нет.</p></blockquote></div><p>По теме - То что получилось у меня,из имеющегося скрипта экранной лупы это заставить её отображать информацию в из указанных координат а не то что под курсором,тут сталкнулся с осложностью.Лупа показывает сама себя если указать координаты откуда показывать и непосредственно саму лупу установить на этиже координаты.Можно ли здесь чегонибудь придумать,или эта функция вообще не подходит?</p>]]></content>
			<author>
				<name><![CDATA[Gabe_#33]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27760</uri>
			</author>
			<updated>2012-06-06T22:28:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60801#p60801</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60800#p60800" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#NoEnv
SetBatchLines, -1
CoordMode, Pixel
CoordMode, Mouse
DllCall(&quot;dwmapi\DwmEnableComposition&quot;, &quot;UInt&quot;, False)
Gui, +AlwaysOnTop -Caption +E0x80000 +HwndGUIhWnd +Owner
Gui, Show, w150 h150, 10xZoom
WinMove, % &quot;ahk_id&quot;GUIhWnd,, A_ScreenWidth//2-76, A_ScreenHeight//2-76
hModule:=DllCall(&quot;LoadLibrary&quot;, &quot;Str&quot;, &quot;gdiplus.dll&quot;)
VarSetCapacity(GdiplusStartupInput, 16, 0)
NumPut(1, GdiplusStartupInput, 0, &quot;Char&quot;)
DllCall(&quot;gdiplus\GdiplusStartup&quot;, &quot;UInt*&quot;, pToken, &quot;UInt&quot;, &amp;GdiplusStartupInput)
VarSetCapacity(BITMAPINFO, 40, 0)
NumPut(40, BITMAPINFO, 0)
NumPut(150, BITMAPINFO, 4) ; biWidth
NumPut(150,BITMAPINFO, 8) ; biHeight
NumPut(1, BITMAPINFO, 12, &quot;UShort&quot;)
NumPut(32, BITMAPINFO, 14, &quot;UShort&quot;)
NumPut(0, BITMAPINFO, 16)
hBitmap:=DllCall(&quot;CreateDIBSection&quot;, &quot;UInt&quot;, hDC
                                   , &quot;UInt&quot;, &amp;BITMAPINFO
                                   , &quot;UInt&quot;, 0
                                   , &quot;UInt*&quot;, 0
                                   , &quot;UInt&quot;, 0
                                   , &quot;UInt&quot;, 0)
DllCall(&quot;ReleaseDC&quot;, &quot;UInt&quot;, 0, &quot;UInt&quot;, hDC)
hMemDC:=DllCall(&quot;CreateCompatibleDC&quot;, &quot;UInt&quot;, 0)
DllCall(&quot;SelectObject&quot;, &quot;UInt&quot;, hMemDC, &quot;UInt&quot;, hBitmap)
DllCall(&quot;gdiplus\GdipCreateFromHDC&quot;, &quot;UInt&quot;, hMemDC, &quot;UInt*&quot;, pGraphics)
DllCall(&quot;gdiplus\GdipCreateSolidFill&quot;, &quot;Int&quot;, Color1, &quot;UInt*&quot;, pBrush)
SetTimer, ChaseCursor, 50
OnExit, ExitScript
Return

ChaseCursor:
   MouseGetPos, XPos, YPos
   Loop, 15
      GdipDrawLine(A_Index-1)
   DllCall(&quot;UpdateLayeredWindow&quot;, &quot;UInt&quot;, GUIhWnd
                                , &quot;UInt&quot;, 0
                                , &quot;UInt&quot;, 0
                                , &quot;Int64*&quot;, 0x09600000096 ; 150x150
                                , &quot;UInt&quot;, hMemDC
                                , &quot;Int64*&quot;, 0
                                , &quot;UInt&quot;, 0
                                , &quot;UInt*&quot;, 0x01FF0000
                                , &quot;UInt&quot;, 2)
   Return

ExitScript:
   DllCall(&quot;gdiplus\GdiplusShutdown&quot;, &quot;UInt&quot;, pToken)
   DllCall(&quot;FreeLibrary&quot;, &quot;UInt&quot;, hModule)
   DllCall(&quot;dwmapi\DwmEnableComposition&quot;, &quot;UInt&quot;, True)
   ExitApp

GdipDrawLine(Y)
{
   global
   Loop, 15
   {
      PixelGetColor, CurrentColor, XPos-7+A_Index-1, YPos-7+Y, RGB
      DllCall(&quot;gdiplus\GdipSetSolidFillColor&quot;, &quot;UInt&quot;, pBrush
                                             , &quot;UInt&quot;, CurrentColor|0xFF000000)
      DllCall(&quot;gdiplus\GdipFillRectangle&quot;, &quot;UInt&quot;, pGraphics
                                         , &quot;UInt&quot;, pBrush
                                         , &quot;Float&quot;, (A_Index-1)*10
                                         , &quot;Float&quot;, Y*10
                                         , &quot;Float&quot;, 10
                                         , &quot;Float&quot;, 10)
   }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-06-06T22:17:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60800#p60800</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60799#p60799" />
			<content type="html"><![CDATA[<p>OFF: Вероятно, <strong>Gabe_#33</strong> действительно важен однозначный ответ [возможно|невозможно] на поставленный вопрос, иначе бы формулировка была «А сделайте-ка мне …».</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-06-06T20:21:48Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60799#p60799</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: экранная лупа на AutoHotkey]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=60798#p60798" />
			<content type="html"><![CDATA[<p><strong>OFF:</strong> Больше на заказ работ похоже, чем на вопрос! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-06-06T20:12:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=60798#p60798</id>
		</entry>
</feed>
