<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; Точка в центре экрана поверх DerectX приложений]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=9840</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9840&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Точка в центре экрана поверх DerectX приложений».]]></description>
		<lastBuildDate>Tue, 21 Oct 2014 13:24:51 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Точка в центре экрана поверх DerectX приложений]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=87627#p87627</link>
			<description><![CDATA[<p>BYS screen marker попробуй но там самому центр екрана нужно найти.</p>]]></description>
			<author><![CDATA[null@example.com (dmitrushin00)]]></author>
			<pubDate>Tue, 21 Oct 2014 13:24:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=87627#p87627</guid>
		</item>
		<item>
			<title><![CDATA[Re: Точка в центре экрана поверх DerectX приложений]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=85572#p85572</link>
			<description><![CDATA[<p>Есть еще один метод, но используй на свой страх и риск, я про бан аккаунта.<br />Врубаешь CE,выбираешься процес, далее D3D--&gt;Hook Direct3D. Затем опять жмешь D3D и там выбираешь &quot;Set custom crosshair&quot;. File--&gt;load и выбираешься картинку.</p>]]></description>
			<author><![CDATA[null@example.com (Dworkin)]]></author>
			<pubDate>Fri, 01 Aug 2014 21:51:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=85572#p85572</guid>
		</item>
		<item>
			<title><![CDATA[Re: Точка в центре экрана поверх DerectX приложений]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=85408#p85408</link>
			<description><![CDATA[<p>Отлично, а как насчёт приложений, которые могут и в DX11 Свои окна поверх всех окон выводить. Правда они на C++ написаны, но это не важно. Сейчас в AUI3 ковыряюсь, там имеются UDF библиотеки, которые можно подключать в AU3 скрипты. Там много чего полезного есть. Знаю человека, который организовал полный вывод поверх всех окон&nbsp; * в центре экрана с помощью этого языка. Как он это сделал рассказывать не хочет. Вот сижу коваряюсь в UDF-ах. Правда начал знакомство с AU3 только дней 10 назад и многое мне не понятно. Может кто-нибудь знает как на этом языке писать? У вас это наверняка быстрее получится.</p>]]></description>
			<author><![CDATA[null@example.com (Selja8)]]></author>
			<pubDate>Wed, 30 Jul 2014 04:42:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=85408#p85408</guid>
		</item>
		<item>
			<title><![CDATA[Re: Точка в центре экрана поверх DerectX приложений]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=85406#p85406</link>
			<description><![CDATA[<p><a href="http://www.autohotkey.com/board/topic/42069-lib-gpf-v11c-overlaying-direct3d-games-dx-89-fixed/">GPF v1.1c</a> - особо не вчитывался, но похоже нужно подменять dll файлы в системе чтобы работало и работает только с DX8-DX9.</p><p>Описание и примеры на английском:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>Notes</p><p>This library was tested ONLY with DirectX8 game Warcraft III<br />Overlayed elements also get ontop of the game&#039;s custom mouse cursor<br />Be aware that the hook method used by this library is highly detectable and may get your online game account banned!<br />Warcraft III tested on Garena will not get you banned<br />BattleField 2 may perform a MD5 check and detect the extra DLL file(s)<br />Punkbuster anti-cheat system may perform same/similar routine that won&#039;t let you use this library online<br />Functions</p><p>General Functions</p><p>GPF_Main( )</p><p>Toggle function (load/unload the library). </p><p>Return values: +1 , +2 , -1 , -2 <br />A positive value indicates success. A negative value indicates failure. <br />+1 and -1 are related to loading the library. +2 and -2 are related to unloading it.<br />GPF_ShowFPS( bShowFPS )</p><p>bShowFPS is a boolean (0/1). Indicates display of FPS info. </p><p>It is always shown in the upper left screen corner and is not changeable in size or color. </p><p>Function returns ErrorLevel (0 if performed successfully).<br />GPF_GetScreenSize( SizeX , SizeY )</p><p>SizeX/Y are the ouput variables for current width and height (in pixels) of game screen. Both are set to 0 if screen size cannot be determined. </p><p>This function does not work when the game is minimized. </p><p>Function returns ErrorLevel (0 if performed successfully).<br />Text-related Functions</p><p>GPF_SetSingleLine( ObjNum , PosX , PosY , Text , ARGB , UseBlackBG , FontSize , UseBold , FontFamily )</p><p>ObjNum indicates the single-line text field (0-4) to be set. <br />PosX/Y indicate position (upper left corner of text field). <br />Text is a single-line text. Maximum length is 127 or 128, I&#039;m not sure. <br />ARGB sets transparency (0-255) and color. Number format must be hexadecimal. Example: 0xFF000000 - black text, no transparency. <br />UseBlackBG is a boolean (0/1). Indicates usage of a black background for the text field. <br />FontSize is the size of the font in &quot;logical device units&quot; (I don&#039;t know what this means, so just pick a value and try it out). <br />UseBold is a boolean (0/1). Indicates usage of bold effect. <br />FontFamily is a boolean (0/1). 0 is SWISS type (proportional font like Arial), and 1 is MODERN type (monospace font like Courier New). </p><p>Function returns ErrorLevel (0 if performed successfully).<br />GPF_SetMultiLine( ObjNum , PosX , PosY , Text , ARGB , UseBlackBG , FontSize , UseBold , SizeX , SizeY , FontFamily )</p><p>ObjNum indicates the multi-line text field (0-4) to be set. <br />PosX/Y indicate position (upper left corner of text field). <br />Text is a multi-line text. Maximum length is 1023 or 1024, I&#039;m not sure. <br />ARGB sets transparency (0-255) and color. Number format must be hexadecimal. Example: 0xFF000000 - black text, no transparency. <br />UseBlackBG is a boolean (0/1). Indicates usage of a black background for the text field. <br />FontSize is the size of the font in &quot;logical device units&quot; (I don&#039;t know what this means, so just pick a value and try it out). <br />UseBold is a boolean (0/1). Indicates usage of bold effect. <br />SizeX/Y set the boundaries of text field. Text will be shown only within this box. Values in pixels and based on current screen resolution. <br />FontFamily is a boolean (0/1). 0 is SWISS type (proportional font like Arial), and 1 is MODERN type (monospace font like Courier New). </p><p>Function returns ErrorLevel (0 if performed successfully).<br />GPF_ShowSingleLine( ObjNum , ShowText )</p><p>ObjNum indicates the single-line text field (0-4) to be displayed. <br />ShowText is a boolean (0/1). Indicates if text will be displayed or not. </p><p>Function returns ErrorLevel (0 if performed successfully).<br />GPF_ShowMultiLine( ObjNum , ShowText )</p><p>ObjNum indicates the multi-line text field (0-4) to be displayed. <br />ShowText is a boolean (0/1). Indicates if text will be displayed or not. </p><p>Function returns ErrorLevel (0 if performed successfully).<br />Picture-related Functions</p><p>GPF_SetPicture( FileFullPath )</p><p>FileFullPath is the full path of the desired picture. </p><p>Allowed formats are BMP, DDS, DIB, HDR, JPG, PFM, PNG, PPM and TGA. <br />There is no transparency except for picture&#039;s own transparent color. <br />Having a picture size with the powers of 2 is recommended for compatibility with some graphics cards (e.g. better use 256x256 than 200x200). </p><p>Function returns ErrorLevel (0 if performed successfully).<br />GPF_ShowPicture( ShowPic , PosX , PosY )</p><p>ShowPic is a boolean (0/1). Indicates if picture will be displayed or not. <br />PosX/Y indicate position (upper left corner of picture). </p><p>Function returns ErrorLevel (0 if performed successfully).<br />GPF_TakeScreenShot( bFormat , SaveFullPath )</p><p>bFormat is a boolean (0/1). Indicates format of saved screenshot. 0 = BMP and 1 = JPG. <br />SaveFullPath is the full path of saved screenshot (including file extension). </p><p>If a previous screenshot request is still pending (being processed), a subsequent call to this function will fail. <br />Function returns ErrorLevel (0 if performed successfully). <br />Note that 0 indicates that the request has successfully been passed. It does not indicate that the screenshot has already been taken. <br />Checking existance of screenshot file would be a good workaround.<br />Remarks</p><p>&quot;Based on current screen resolution&quot;: whenever this is stated, it means that a picture or text-field will not be scaled for windowed games. Let&#039;s say you&#039;re playing a game in fullscreen mode. If you have a 256x256 picture, it will be displayed normally. Now, if you switch to windowed mode and scale it to 50% of fullscreen size, the picture will not be scaled and will look like a 512x512 picture ingame.<br />Examples</p><p>Download Example 1<br />; =========================================</p><p>#Include GPF_v1.1c.ahk</p><p>var_ObjNumber := 0 ; ------------ from 0 to 4<br />var_PosX := 420 ; --------------- text X position<br />var_PosY := 230 ; --------------- text Y position<br />;&nbsp; &nbsp;var_SizeX := 500 ; ---------- X multiline field size<br />;&nbsp; &nbsp;var_SizeY := 500 ; ---------- Y multiline field size<br />var_TextLine := &quot;LineTest1!&quot; ;--- text<br />var_ARGB := 0xFF000000 ; -------- Alpha,Red,Green,Blue<br />var_UseBlackBG := 0 ; ----------- boolean, use black background<br />var_UseBold := 1 ; -------------- boolean, use bold text<br />var_FontSize := 20 ; ------------ font size (in units)<br />var_FontFamily := 0 ; ----------- 0 = SWISS (proportional) --- 1 = MODERN (monospace)<br />var_ShowText := 0 ; ------------- boolean, show text or not</p><p>Return</p><p>; =========================================</p><p>; F12 toggles the overlayed text by toggling<br />; library loaded or not via GPF_Main()<br />F12::</p><p>; If not loaded, open/load library, otherwise close/free library<br />;<br />; Return values for GPF_Main():<br />;&nbsp; 1 = Success (load library)<br />; -1 = Fail (load library)<br />;&nbsp; 2 = Sucess (free library)<br />; -2 = Fail (free library)</p><p>GPF_Main()</p><p>; If library isn&#039;t loaded at this point, other<br />; functions will return ErrorLevel different<br />; than 0 and will simply not work (as expected).</p><p>; Boolean for showing text TRUE<br />var_ShowText := 1</p><p>; Current var_ObjNumer is 0, so it sets the data of the first SingLine Text Field<br />GPF_SetSingleLine(var_ObjNumber,var_PosX,var_PosY,var_TextLine,var_ARGB,var_UseBlackBG,var_FontSize,var_UseBold,var_FontFamily)</p><p>; Shows the SingleLine Text Field number 0 (the first one)<br />GPF_ShowSingleLine(var_ObjNumber,var_ShowText)</p><p>Sleep, 1000</p><p>; Now previous text will be replaced by a new one<br />GPF_SetSingleLine(var_ObjNumber,var_PosX,var_PosY,&quot;Test number 2!&quot;,var_ARGB,var_UseBlackBG,var_FontSize,var_UseBold,var_FontFamily)</p><p>Return</p><p>; =========================================<br />Download Example 2<br />; =========================================</p><p>;<br />; Example function - f_Change_SL_Text_0<br />;<br />; Function to change only the text parameter<br />; of SingleLine Text Field number 0.<br />; All other parameters are fixed.<br />; A static variable checks if text really changed.<br />; Must have GPF_v1.1c.ahk included, of course.<br />;</p><p>f_Change_SL_Text_0(newText)<br />{<br />&nbsp; static oldText<br />&nbsp; if ( oldText = newText )<br />&nbsp; &nbsp; return &quot;NoChange&quot;&nbsp; ;&nbsp; indicates I&#039;m performing an unecessary attempt to change text<br />&nbsp; oldText := newText<br />&nbsp; return GPF_SetSingleLine(0,100,100,oldText,0xFFFFFFFF,0,20,1,0)<br />}</p><p>; =========================================<br />Download Example 3<br />; =========================================<br />;<br />; This example shows usage of picture functions<br />;<br />; =========================================</p><p>#Include GPF_v1.1c.ahk</p><p>; -- Picture X position<br />var_PosX := 100<br />; -- Picture Y position<br />var_PosY := 150<br />; -- Boolean for showing picture<br />var_ShowPic := 0<br />; -- Picture to be shown (MUST BE FULL PATH)<br />var_PicFullPath := &quot;C:\My Folder\This is a full path\picture.png&quot;</p><p>Return</p><p>; ~~~~~~~~~~~~~~~~~~~~</p><p>; -- Pressing F10 will toggle library via GPF_Main()<br />F10::GPF_Main()</p><p>; -- Pressing F11 will set desired picture<br />F11::GPF_SetPicture(var_PicFullPath)</p><p>; -- Pressing F12 will toggle<br />; picture display once the library<br />; is loaded and the picture is set<br />F12::</p><p>var_ShowPic := !var_ShowPic</p><p>GPF_ShowPicture(var_ShowPic,var_PosX,var_PosY)</p><p>Return</p><p>; =========================================</p></div></div>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Wed, 30 Jul 2014 03:45:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=85406#p85406</guid>
		</item>
		<item>
			<title><![CDATA[Re: Точка в центре экрана поверх DerectX приложений]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=85405#p85405</link>
			<description><![CDATA[<p>Я что-то подобное сделал через OSD от MSI Afterburner, путем переименования названия &quot;Fan speed&quot; в &quot;( )&quot; и помещения этого в центр экрана, там можно и точку между кавычек поставить и плюсик, но есть ощутимый минус - это проценты сбоку (то есть по сути сам мониторинг).</p><p>На скриншотах можно посмотреть как это выглядит на примере Mass Effect 3 <a href="http://forums.guru3d.com/showpost.php?p=4873573&amp;postcount=1813">http://forums.guru3d.com/showpost.php?p … count=1813</a></p>]]></description>
			<author><![CDATA[null@example.com (Kokkolar)]]></author>
			<pubDate>Wed, 30 Jul 2014 00:43:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=85405#p85405</guid>
		</item>
		<item>
			<title><![CDATA[Re: Точка в центре экрана поверх DerectX приложений]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=85381#p85381</link>
			<description><![CDATA[<p>Через overlay. Вот есть тема: <a href="http://www.autohotkey.com/board/topic/42069-lib-gpf-v11c-overlaying-direct3d-games-dx-89-fixed/">http://www.autohotkey.com/board/topic/4 … -89-fixed/</a>. Только не для всех игр работает. В варкрафте точно работает.</p>]]></description>
			<author><![CDATA[null@example.com (Dworkin)]]></author>
			<pubDate>Tue, 29 Jul 2014 09:48:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=85381#p85381</guid>
		</item>
		<item>
			<title><![CDATA[Re: Точка в центре экрана поверх DerectX приложений]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=85349#p85349</link>
			<description><![CDATA[<p>Если я всё правильно путаю, то такое возможно. Как всё разузнаю, отпишусь.</p>]]></description>
			<author><![CDATA[null@example.com (Selja8)]]></author>
			<pubDate>Tue, 29 Jul 2014 04:37:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=85349#p85349</guid>
		</item>
		<item>
			<title><![CDATA[Re: Точка в центре экрана поверх DerectX приложений]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=85309#p85309</link>
			<description><![CDATA[<p><a href="https://www.google.ru/webhp?sourceid=chrome-instant&amp;ion=1&amp;espv=2&amp;ie=UTF-8#newwindow=1&amp;q=%D0%BF%D0%BE%D0%B2%D0%B5%D1%80%D1%85%20directx&amp;qscrl=1">Это, вроде, еще не придумали как сделать.</a></p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Mon, 28 Jul 2014 06:26:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=85309#p85309</guid>
		</item>
		<item>
			<title><![CDATA[Точка в центре экрана поверх DerectX приложений]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=85306#p85306</link>
			<description><![CDATA[<p>Нужен &quot;RedDot&quot;, прицел висящий в центре экрана для игр в полноэкранном режиме. Конкретно интересует игра rust. Может кто помочь нарисовать точку поверх окна с игрой?</p>]]></description>
			<author><![CDATA[null@example.com (Tamposhka)]]></author>
			<pubDate>Mon, 28 Jul 2014 04:45:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=85306#p85306</guid>
		</item>
	</channel>
</rss>
