<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Splashimage длина полосы или картинка]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5469&amp;type=atom" />
	<updated>2011-02-07T11:39:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5469</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44942#p44942" />
			<content type="html"><![CDATA[<p>Вот что нашел на офф форуме. Но написано, что этот хук легко определяется и античит может подумать, что это чит.<br /><a href="http://www.autohotkey.net/~MasterFocus/AHK/Lib/GPF/Doc/">http://www.autohotkey.net/~MasterFocus/AHK/Lib/GPF/Doc/</a></p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-02-07T11:39:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44942#p44942</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44917#p44917" />
			<content type="html"><![CDATA[<p>Да.</p><p>Windows XP SP3</p>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2011-02-05T16:40:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44917#p44917</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44916#p44916" />
			<content type="html"><![CDATA[<p>Странно, а у меня не видно этого прицела.<br />vinternete, CS 1.6 запускается в обычном режиме (FullScreen)?</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-02-05T13:20:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44916#p44916</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44914#p44914" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><div class="quotebox"><cite>InFlames пишет:</cite><blockquote><p>Задача сводится к тому, что бы создать какую либо фигуру (крест, например) поверх полноэкранного приложения</p></blockquote></div><p>Ага, теперь понял смысл кода из первого поста. Изображение постоянно перерисовывается, и поэтому видимо поверх полноэкранного приложения.<br />Тогда так:<br /></p><div class="codebox"><pre><code>drawxhair(516,399)
Return

drawXhair(xcoord,ycoord)
{
   loop
   {
      Splashimage 3:,% &quot;CW00FF00 B W5 H1 Y&quot; ycoord &quot;X&quot; xcoord-6
      Splashimage 4:,% &quot;CW00FF00 B W5 H1 Y&quot; ycoord &quot;X&quot; xcoord+2
      Splashimage 5:,% &quot;CW00FF00 B H5 W1 X&quot; xcoord &quot;Y&quot; ycoord-6
      Splashimage 6:,% &quot;CW00FF00 B H5 W1 X&quot; xcoord &quot;Y&quot; ycoord+2
      Sleep, 10
   }
}</code></pre></div></blockquote></div><p>В кс 1.6 работает замечательно, в BF2 в окне тоже работает превосходно, спасибо за помощь!</p>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2011-02-05T13:14:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44914#p44914</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44904#p44904" />
			<content type="html"><![CDATA[<p>Видимо это немного другое, чем полноэкранный режим игры.</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-02-05T12:01:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44904#p44904</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44898#p44898" />
			<content type="html"><![CDATA[<p>У меня никаких игр не установлено, так что испытывал на полноэкранном варианте работы видеоплеера.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-02-05T11:38:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44898#p44898</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44886#p44886" />
			<content type="html"><![CDATA[<p>У меня Windows7</p><p>В каком приложении Вы проверяли?</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-02-04T23:10:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44886#p44886</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44885#p44885" />
			<content type="html"><![CDATA[<p>А у меня на XP виден!</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-02-04T23:04:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44885#p44885</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44884#p44884" />
			<content type="html"><![CDATA[<p>Всё равно, крестик исчезает при запуске полноэкранного приложения.</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-02-04T22:53:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44884#p44884</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44883#p44883" />
			<content type="html"><![CDATA[<p>Можно ещё так попробовать. Требует наличия <a href="http://www.autohotkey.net/~tic/Gdip.ahk">Gdip.ahk</a> в пользовательской библиотеке.<br /></p><div class="codebox"><pre><code>   X = 516
   Y = 399
   
   SetWinDelay, 0
   
   HWND_TOPMOST := -1, SWP_NOMOVE := 2, SWP_NOSIZE := 1, WS_EX_LAYERED := 0x80000

   Gui, -Caption +E%WS_EX_LAYERED% +LastFound +AlwaysOnTop +ToolWindow +Disabled
   WinGet, ID
   Gui, Show, NA
   
   If !pToken := Gdip_Startup()
   {
      MsgBox, 48, Ошибка GDI+!
         , Убедитесь в наличии gdiplus.dll в вашей системе!
      ExitApp
   }
   
   hBM := CreateDIBSection(12, 12)
   hDC := CreateCompatibleDC()
   oBM := SelectObject(hDC, hBM)
   
   G := Gdip_GraphicsFromHDC(hDC)
   
   pPen := Gdip_CreatePen(0xFF00FF00, 2)
   Gdip_DrawLine(G, pPen, 0, 6, 4, 6), Gdip_DrawLine(G, pPen, 8, 6, 12, 6)
   Gdip_DrawLine(G, pPen, 6, 0, 6, 4), Gdip_DrawLine(G, pPen, 6, 8, 6, 12)
   Gdip_DeletePen(pPen)

   UpdateLayeredWindow(ID, hDC, X-6, Y-6, 12, 12)
   
   SelectObject(hDC, oBM)
   DeleteObject(hBM)
   DeleteDC(hDC)
   Gdip_DeleteGraphics(G)
   Gdip_Shutdown(pToken)
   
   Loop
   {
      DllCall(&quot;SetWindowPos&quot;, UInt, ID, Int, HWND_TOPMOST
         , Int, 0, Int, 0, Int, 0, Int, 0, Int, SWP_NOMOVE|SWP_NOSIZE)
      Sleep, 10
   }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-02-04T22:05:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44883#p44883</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44881#p44881" />
			<content type="html"><![CDATA[<p>Жаль конечно. Хотелось бы иметь возможность создания Gui поверх полноэкранных приложений.</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-02-04T21:18:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44881#p44881</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44880#p44880" />
			<content type="html"><![CDATA[<p>Ну, я в сети ничего не нашёл, как вешать окна поверх полноэкранных приложений.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-02-04T20:58:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44880#p44880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44879#p44879" />
			<content type="html"><![CDATA[<p>Этого креста все равно не видно, когда запущена игра. И 10 мс всё равно дает значительную нагрузку на процессор, в итоге курсор постоянно меняет свое состояние на app_starting, а в игре падает FPS.</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-02-04T20:53:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44879#p44879</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44876#p44876" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>InFlames пишет:</cite><blockquote><p>Задача сводится к тому, что бы создать какую либо фигуру (крест, например) поверх полноэкранного приложения</p></blockquote></div><p>Ага, теперь понял смысл кода из первого поста. Изображение постоянно перерисовывается, и поэтому видимо поверх полноэкранного приложения.<br />Тогда так:<br /></p><div class="codebox"><pre><code>drawxhair(516,399)
Return

drawXhair(xcoord,ycoord)
{
   loop
   {
      Splashimage 3:,% &quot;CW00FF00 B W5 H1 Y&quot; ycoord &quot;X&quot; xcoord-6
      Splashimage 4:,% &quot;CW00FF00 B W5 H1 Y&quot; ycoord &quot;X&quot; xcoord+2
      Splashimage 5:,% &quot;CW00FF00 B H5 W1 X&quot; xcoord &quot;Y&quot; ycoord-6
      Splashimage 6:,% &quot;CW00FF00 B H5 W1 X&quot; xcoord &quot;Y&quot; ycoord+2
      Sleep, 10
   }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-02-04T20:39:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44876#p44876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Splashimage длина полосы или картинка]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44873#p44873" />
			<content type="html"><![CDATA[<p>Это перекрестие должно быть четко по центру и не двигаться.<br />Задача сводится к тому, что бы создать какую либо фигуру (крест, например) поверх полноэкранного приложения. Splashimage не будет отображаться в игре, запущенной в полный экран.<br />Может быть на WinApi это возможно.</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-02-04T20:09:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44873#p44873</id>
		</entry>
</feed>
