<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Яркость мониторов LG, управление программой forteManager]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6155&amp;type=atom" />
	<updated>2011-08-27T16:37:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6155</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Яркость мониторов LG, управление программой forteManager]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50916#p50916" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Grey пишет:</cite><blockquote><p>OFF: С моим монитором Samsung прилагалась программа Magic Tune, которую я даже из конверта не доставал</p></blockquote></div><p>Не знаю как в Cамсунгах, а на LG кнопки так устроены, что пользоваться ими не возможно, программа чуть облегчает жизнь, но очень много действий надо сделать, что бы добраться до ползунка. А здесь еще и бонус, регулировка в зависимости от запущенного приложения, особенно удобно запуская плееры и телик с пульта автоматом увеличивается яркость.</p>]]></content>
			<author>
				<name><![CDATA[surefire]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27143</uri>
			</author>
			<updated>2011-08-27T16:37:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50916#p50916</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Яркость мониторов LG, управление программой forteManager]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50915#p50915" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>surefire пишет:</cite><blockquote><p>Это совсем разные параметры.</p></blockquote></div><p>Я в общем-то и не спорю, выложеный Вами код, будет для кого-то актуальным.</p><p>OFF: С моим монитором Samsung прилагалась программа Magic Tune, которую я даже из конверта не доставал, довольствуясь кнопкой автоподстройки, ну или преднастроенными вариантами в определённых случаях. <em>Дело вкуса</em>, как говорится.</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-08-27T16:27:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50915#p50915</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Яркость мониторов LG, управление программой forteManager]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50914#p50914" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Grey пишет:</cite><blockquote><p><a href="http://forum.script-coding.com/viewtopic.php?id=4093">Этот</a> скрипт, работает вне <em>брэндовой</em> зависимости. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p></blockquote></div><p>Скрипт на который вы указали не меняет физически яркость монитора, а управляет только видеокартой. Мой скрипт управляет настройкой монитора LG.</p><p>Это совсем разные параметры.</p>]]></content>
			<author>
				<name><![CDATA[surefire]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27143</uri>
			</author>
			<updated>2011-08-27T15:33:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50914#p50914</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Яркость мониторов LG, управление программой forteManager]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50913#p50913" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>surefire пишет:</cite><blockquote><p>...для работы с мониторами LG...</p></blockquote></div><p><a href="http://forum.script-coding.com/viewtopic.php?id=4093">Этот</a> скрипт, работает вне <em>брэндовой</em> зависимости. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-08-27T15:12:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50913#p50913</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Яркость мониторов LG, управление программой forteManager]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=50911#p50911" />
			<content type="html"><![CDATA[<p>Предлагаю 2 функции для работы с мониторами LG, программа forteManager 3.18 должна быть запущена и висеть в трее.</p><div class="codebox"><pre><code>

; Устанавливает яркость монитора, от 0 до 100%.
forteSetBrightnes(level) {
   DetectHiddenWindows, on
   if (level &gt; 100)
           level := 100
   PostMessage, 0x405, 1, (level &gt; 0 ? level - 1 : 1) , msctls_trackbar325, forteManager ahk_class #32770
   PostMessage, 0x111, (level &gt; 0 ? 1051 : 1053), 0, #327709, forteManager ahk_class #32770
}

; Получает текущую яркость монитора
forteGetBrightnes() {
   DetectHiddenWindows, on
   SendMessage, 0x400, 0, 0, msctls_trackbar325, forteManager ahk_class #32770
   return %ErrorLevel%
}</code></pre></div><p>Пару примеров как использовать для хоткеев:</p><div class="codebox"><pre><code>

Loop {
  WinWait, ahk_class IpTvPlayerVideoWndClass
  lastbright := forteGetBrightnes()
  forteSetBrightnes(100)
  WinWaitClose, ahk_class IpTvPlayerVideoWndClass
  forteSetBrightnes(lastbright)
}

#3::
 forteSetBrightnes(30)
return

#7::
 forteSetBrightnes(70)
return

#up::
forteSetBrightnes(forteGetBrightnes()+20)
return

#down::
forteSetBrightnes(forteGetBrightnes()-20)
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[surefire]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27143</uri>
			</author>
			<updated>2011-08-27T09:13:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=50911#p50911</id>
		</entry>
</feed>
