<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Часть окна меняющая цвет на заданный]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11693&amp;type=atom" />
	<updated>2016-06-09T09:44:41Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11693</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Часть окна меняющая цвет на заданный]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105015#p105015" />
			<content type="html"><![CDATA[<p><span style="color: green">Участник <strong>shahlik007</strong> заблокирован за нежелание выполнять правила форума.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-06-09T09:44:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105015#p105015</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Часть окна меняющая цвет на заданный]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105009#p105009" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Я вас слушаю</p>]]></content>
			<author>
				<name><![CDATA[shahlik007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33768</uri>
			</author>
			<updated>2016-06-09T06:03:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105009#p105009</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Часть окна меняющая цвет на заданный]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104997#p104997" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>shahlik007 пишет:</cite><blockquote><p><strong>serzh82saratov</strong><br />Ох , ни фига себе!</p></blockquote></div><p><span style="color: green"><strong>shahlik007</strong>, у нас принято реагировать на требования модераторов, если хотите продолжать пользоваться форумом. У вас времени до завтрашнего вечера.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-06-08T20:58:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104997#p104997</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Часть окна меняющая цвет на заданный]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104967#p104967" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#SingleInstance force  
 
Gui, Margin, 0, 0
Gui, +AlwaysOnTop +ToolWindow 
Gui, Add, Edit, x0 y0 w111 Center vEdit
Gui, Add, Progress, xp y+0 h111 w111 vColorProgress BackgroundWhite 
Gui, Show 
SetTimer, GetColor, 50 

GetColor:
	MouseGetPos, MouseX, MouseY
	PixelGetColor, color, %MouseX%, %MouseY%, RGB 
	GuiControl, , Edit, % color
	GuiControl, -Redraw, ColorProgress
	GuiControl, % &quot;+Background&quot; SubStr(color, 3), ColorProgress
	GuiControl, +Redraw, ColorProgress
	Return
	
Pause:: Pause

GuiClose:
	ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-06-08T15:12:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104967#p104967</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Часть окна меняющая цвет на заданный]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104961#p104961" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong><br />Прежде всего я хочу разобраться в этом , а не стилить часть чужого скрипта!<br />Просто помогите тремя строчками</p>]]></content>
			<author>
				<name><![CDATA[shahlik007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33768</uri>
			</author>
			<updated>2016-06-08T14:58:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104961#p104961</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Часть окна меняющая цвет на заданный]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104957#p104957" />
			<content type="html"><![CDATA[<p>Если нужно готовое решение, на форуме выложен AhkSpy.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2016-06-08T14:43:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104957#p104957</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Часть окна меняющая цвет на заданный]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104955#p104955" />
			<content type="html"><![CDATA[<p>Решил написать себе помощника в создании скриптов.<br />Начал я с проверки цвета пикселей , но просмотреть выбранный мною цвет не получается.</p><p>коротко о поставленной задаче:<br />1.Создать квадратик в окне.<br />2.Взять координаты мыши.<br />3.Взять цвет пикселя на этих координатах.<br />4.Поменять цвет квадратика.</p><p>Не сложилось с пунктами 1 и 4,<br />весь код:<br /></p><div class="codebox"><pre><code>Gui,+AlwaysOnTop
Gui, Submit, NoHide
Gui, Add , text , x10 y10 , Mouse pos:
Gui, Add , text , x70 y10 , Mouse pos:
Gui, Add , text , x10 y30 , Pixelcolor:
Gui, Add , text , x70 y30 , pAlt
Gui, Add , text , x70 y50 , pSlow
Gui, Add , text , x70 y70 , pRGB
Gui, Add , text , x110 y70 , =
Gui, Add , text , x110 y50 , =
Gui, Add , text , x110 y30 , =
Gui, Add , text , x35 y90 ,Дописать команду AHK
Gui, Add , text , vState1  w80     x125 y30 ,%pAlt%
Gui, Add , text , vState2  w80     x125 y50 ,%pSlow%
Gui, Add , text , vState3  w80     x125 y70 ,%pRGB%
Gui, Add , text , vState4  w80     x140 y10 ,%XY%
Gui, Add , Checkbox , w15 h15 x15 y90 vF1
Gui, Add , Button , gCopy1  w60 h20    x220 y5  ,Copy
Gui, Add , Button , gCopy2  w60 h20    x220 y25 ,Copy
Gui, Add , Button , gCopy3  w60 h20    x220 y45 ,Copy
Gui, Add , Button , gCopy4  w60 h20    x220 y65 ,Copy

Guicontrol ,,F1,1
Gui, Show ,x900 y300 w300 h150,помогатор
hd=0
return

!ctrl::
Gui,hide
return

ctrl::
Gui, Show ,x900 y300 w300 h150, помогатор
Gui, Submit, NoHide
MouseGetPos   , mouseX , mouseY
PixelGetColor , pAlt  , %mouseX% , %mouseY% , Alt
PixelGetColor , pSlow , %mouseX% , %mouseY% , Slow
PixelGetColor , pRGB  , %mouseX% , %mouseY% , RGB
GuiControl,,state1,%pAlt%
GuiControl,,state2,%pSlow%
GuiControl,,state3,%pRGB%
GuiControl,,state4,X=%mouseX% Y=%mouseY%
return

Copy1:
Gui, Submit, NoHide
if(F1=1)
{
Clipboard=Mouseclick, Left, %mouseX%, %mouseY%
}
else
{
Clipboard=%mouseX% %mouseY%
}
return

Copy2:
Gui, Submit, NoHide
if(F1=1)
{
Clipboard=PixelGetColor , pAlt  , %mouseX% , %mouseY% , Alt`rif(pAlt=%pAlt%)`r{`rдействие`r}
}
else{
Clipboard=%pAlt%
}
return

Copy3:
Gui, Submit, NoHide
if (F1=1)
{
Clipboard=PixelGetColor , pSlow , %mouseX% , %mouseY% , Slow`rif(pSlow=%pSlow%)`r{`rдействие`r}
}
else{
Clipboard=%pSlow%
}
return

Copy4:
Gui, Submit, NoHide
if (F1=1)
{
Clipboard=PixelGetColor , pRGB  , %mouseX% , %mouseY% ,RGB`rif(pRGB=%pRGB%)`r{`rдействие`r}
}
else{
Clipboard=%pRGB%
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[shahlik007]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33768</uri>
			</author>
			<updated>2016-06-08T14:25:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104955#p104955</id>
		</entry>
</feed>
