<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12492&amp;type=atom" />
	<updated>2017-02-25T06:39:25Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12492</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113228#p113228" />
			<content type="html"><![CDATA[<p>В общем, при загрузке DeadHunt её клиентская область равна разрешению экрана, в меню она становится меньше и остаётся таковой в самой игре, что визуально никак не проявляется. Если в настройках сменить разрешение, то в дальнейшем клиентская область остаётся равной экрану до выхода из игры. Лучше здесь использовать размер окна, с ним таких изменений не происходит.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2017-02-25T06:39:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113228#p113228</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113222#p113222" />
			<content type="html"><![CDATA[<p>АНК последний, Windows 10 x64, игра DeadHunt. Но при ближайшем рассмотрении эта игра ведёт себя странно, в ней оба варианта ActiveAppFullScreen (с переменными и с SysGet) то работают, то нет. Но isWindowFullScreen(&quot;A&quot;) стабильно не работает. Видимо, просто совпало. Сначала isWindowFullScreen и ActiveAppFullScreen обе не работали, потом я заменил у себя переменные на SysGet и моя функция заработала. Значит, просто чудила игра. Надо разбираться, что с ней не так. В Fallout 4 работают все три варианта, в Crysis тоже.</p><p>В общем, эта тема сложнее, чем казалась изначально.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2017-02-25T04:22:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113222#p113222</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113209#p113209" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>Про какую-нибудь программу ничего не скажу, а на играх я проверял, там при пониженном разрешении работает только вариант с SysGet.</p></blockquote></div><p>Проверяли сейчас на актуальной версии автохотки?<br />На какой системе и на какой игре?<br />Специально установил на Win7 Heroes of Might and Magic 3, которая запускается под разрешением 800 на 600.<br />A_ScreenWidth показал 800.<br />Также посмотрел исходник автохотки:<br /><a href="https://github.com/Lexikos/AutoHotkey_L/blob/master/source/script2.cpp">https://github.com/Lexikos/AutoHotkey_L … cript2.cpp</a><br />Там есть такая функция для A_ScreenWidth, A_ScreenHeight:<br /></p><div class="codebox"><pre><code>VarSizeType BIV_ScreenWidth_Height(LPTSTR aBuf, LPTSTR aVarName)
{
	return aBuf
		? (VarSizeType)_tcslen(ITOA(GetSystemMetrics(aVarName[13] ? SM_CYSCREEN : SM_CXSCREEN), aBuf))
		: MAX_INTEGER_LENGTH;
}</code></pre></div><p>И такая для sysget:<br /></p><div class="codebox"><pre><code>	case SYSGET_CMD_METRICS: // In this case, aCmd is the value itself.
return output_var.Assign(GetSystemMetrics(ATOI(aCmd))); // Input and output are both signed integers.</code></pre></div><p>Из чего можно сделать вывод, что и в первом и во втором случае идет обращение к GetSystemMetrics function.<br /><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms724385(v=vs.85).aspx">https://msdn.microsoft.com/en-us/librar … s.85).aspx</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-02-24T18:27:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113209#p113209</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113192#p113192" />
			<content type="html"><![CDATA[<p>Все работает, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-02-24T13:55:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113192#p113192</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113179#p113179" />
			<content type="html"><![CDATA[<p>Ну, если только это, то таймер не нужен. Просто добавить проверку.<br /></p><div class="codebox"><pre><code>
Lwin &amp; Я::
If ActiveAppNotFullScreen() {
    Menu, MyMenu, Show  ; Показывать меню по нажатию Win-Z или Ctrl+Правый клик. ,
}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2017-02-24T11:13:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113179#p113179</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113177#p113177" />
			<content type="html"><![CDATA[<p>YMP, применил ваш способ с таймером - результат отрицательный. Возможно я что-то неправильно делаю, потому предоставлю весь код:<br /></p><div class="codebox"><pre><code>
#include D:\Обитель Белки\Cache\VA.ahk

Menu, MyMenu, Add, Создать скрипт с скопированным кодом, Create
Menu, MyMenu, Add, Запустить скрипт путь которого скопирован, RunClipboard
Menu, MyMenu, Add, Запустить биндер, RunBinder
Menu, MyMenu, Add, Открыть Cache, OpenCache
Menu, MyMenu, Add, Открыть GTA SA User Files\SAMP, OpenGTASAUF
Menu, MyMenu, Add, Очистить Uninvite.ini, DelUn
return	

Create:
path := A_Desktop &quot;\AutoHotkeyScript.ahk&quot;
IfExist, %path%
goto z
else
goto zz
z:
FileDelete, %path%
goto zz
zz:
lll := &quot;&quot; . ClipGetText([CodePage]) . &quot;&quot;
FileAppend, %lll%, %path%
return

RunClipboard: ; Если скрипт существует - запускает скрипт
path:= &quot;&quot; . ClipGetText([CodePage]) . &quot;&quot;
Run, %path%, UseErrorLevel
return

RunBinder:
Run, D:\Обитель Белки\AHK\Биндер\Samp binds - мои.ahk
return

OpenCache:
Run, D:\Обитель Белки\AHK\Биндер\Cache
return

OpenGTASAUF:
Run, %A_MyDocuments%\GTA San Andreas User Files\SAMP
return

DelUn:
FileDelete, D:\Обитель Белки\AHK\Биндер\Cache\uninvite.txt
FileAppend,, D:\Обитель Белки\AHK\Биндер\Cache\uninvite.txt
return

Lwin &amp; Я::
Menu, MyMenu, Show  ; Показывать меню по нажатию Win-Z или Ctrl+Правый клик. ,
return


Pause:: return

^Pause:: return

!Pause:: return
</code></pre></div><p>Мне нужно, чтобы при нажатии Win + Z не выскакивало окно в играх. <br />Steazy, я не знаю как это сделать, если вы мне поможете, то пожалуйста.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-02-24T10:47:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113177#p113177</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113171#p113171" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Или если я запущу какую-нибудь программу в режиме 640 на 480, то также A_ScreenWidth покажет верное разрешение.</p></blockquote></div><p>Про какую-нибудь программу ничего не скажу, а на играх я проверял, там при пониженном разрешении работает только вариант с SysGet.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2017-02-24T07:34:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113171#p113171</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113170#p113170" />
			<content type="html"><![CDATA[<p>Почему?<br />Только что запустил vlc в режиме 640x480, поставил его на полный экран - код определил, что приложение у меня fullscreen.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-02-24T07:33:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113170#p113170</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113168#p113168" />
			<content type="html"><![CDATA[<p>Ну как что? Не определяется игра в этом случае, как полноэкранное приложение, т.е. код не выполняет свою функцию.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2017-02-24T07:26:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113168#p113168</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113167#p113167" />
			<content type="html"><![CDATA[<p>Ну и что из этого?<br />Если мануально сменить разрешение экрана, то A_ScreenWidth тоже изменится.<br />Или если я запущу какую-нибудь программу в режиме 640 на 480, то также A_ScreenWidth покажет верное разрешение.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-02-24T07:22:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113167#p113167</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113166#p113166" />
			<content type="html"><![CDATA[<p>Приз уходит <strong>Flasher</strong>&#039;у! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Игра может работать с другим разрешением экрана.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2017-02-24T07:10:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113166#p113166</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113165#p113165" />
			<content type="html"><![CDATA[<p><strong>YMP</strong>, если идентичны не всегда, а в справке указано, что они идентичны - значит это баг.<br />А баг не поддается угадыванию.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-02-24T06:58:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113165#p113165</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113164#p113164" />
			<content type="html"><![CDATA[<p>Анаморфирование при смене разрешения в играх? Не?<br />Или это как-то с печатной областью связано?</p><p>P.S. Сам, наверное, на золотой плюс за раскрытие секрета фирмы тянет. <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-02-24T06:54:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113164#p113164</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113163#p113163" />
			<content type="html"><![CDATA[<p>Идентичны не всегда,&nbsp; в этом и ненадёжность. А вот когда они неидентичны, пока никто не догадался. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2017-02-24T06:37:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113163#p113163</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: IfWinNotActive для всех полноэкранных приложений]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113162#p113162" />
			<content type="html"><![CDATA[<p>А в чем разница?<br />В справке написано, что они идентичны:<br /></p><div class="quotebox"><blockquote><p>SM_CXSCREEN, SM_CYSCREEN: Width and height of the screen of the primary display monitor, in pixels. These are the same as the built-in variables A_ScreenWidth and A_ScreenHeight.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-02-24T06:21:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113162#p113162</id>
		</entry>
</feed>
