<?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=5454&amp;type=atom" />
	<updated>2019-01-18T12:14:25Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5454</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: координаты и разрешение экрана]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131407#p131407" />
			<content type="html"><![CDATA[<p>P.S.<br /></p><div class="codebox"><pre><code>if A_ScreenWidth = 800
 X1:=635, X2:=680, Y1:=Y2:=570
Else
 X1:=815, X2:=875, Y1:=Y2:=735

Click, %X1%, %Y1%
Click, %X2%, %Y2%
MsgBox %X1%x%Y1%`n%X2%x%Y2%</code></pre></div><p>&quot;разрешения <strong>экранов</strong> разные&quot;<br />Если будет больше одного экрана, то для второго примерно так - </p><div class="codebox"><pre><code> X1:=635+A_ScreenWidth, X2:=680+A_ScreenWidth, Y1:=Y2:=570+A_ScreenHeight</code></pre></div>]]></content>
			<author>
				<name><![CDATA[-Sema-]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39521</uri>
			</author>
			<updated>2019-01-18T12:14:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131407#p131407</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: координаты и разрешение экрана]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131404#p131404" />
			<content type="html"><![CDATA[<p>Решение забыли дописать (проформы для) ато выглядит незакончено.<br /></p><div class="codebox"><pre><code>if A_ScreenWidth = 800
 {
 X1:=635 
 X2:=680 
 MsgBox 1
 Y1:=Y2:=570 
 }
Else ; if A_ScreenWidth &gt; 800
 {
 X1:=815 
 X2:=875 
 MsgBox 2
 Y1:=Y2:=735 
 }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[-Sema-]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39521</uri>
			</author>
			<updated>2019-01-18T11:32:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131404#p131404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: координаты и разрешение экрана]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44761#p44761" />
			<content type="html"><![CDATA[<p>Хм, а это отличный вариант, я то сразу не понял как применить, спасибо за помощь.</p>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2011-02-02T19:40:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44761#p44761</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: координаты и разрешение экрана]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44754#p44754" />
			<content type="html"><![CDATA[<p>Зачем давать пользователю выбирать разрешение, если это может сделать скрипт сам. Пользователь может и не знать своего разрешения, более того, даже не знать, где его посмотреть. YMP написал, как определить разрешение.</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-02-02T16:54:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44754#p44754</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: координаты и разрешение экрана]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44753#p44753" />
			<content type="html"><![CDATA[<p>Вобщем сделал я как хотел<br /></p><div class="codebox"><pre><code>Gui, Add, DropDownList,x56 y697 w220 h10 gChoose R3, 800x600|1024x768
Gui, Show
return
Choose:
   if A_GuiControl = 800x600
      Goto, 1
   if A_GuiControl = 1024x768
      Goto, 2
return
2:
X1:=815 
X2:=875 
MsgBox 2
Y1:=Y2:=735 
Return
1:
X1:=635 
X2:=680 
MsgBox 1
Y1:=Y2:=570 
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2011-02-02T16:25:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44753#p44753</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: координаты и разрешение экрана]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44742#p44742" />
			<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>2011-02-02T12:57:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44742#p44742</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: координаты и разрешение экрана]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44741#p44741" />
			<content type="html"><![CDATA[<p>Так мне не надо разрешение экрана, мне надо чтобы под каждое разрешение экрана были свои координаты x:y.<br />Суть скрипта кликать в определенном участке экрана, но в зависимости от разрешения, это место находится в разных координатах.</p>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2011-02-02T12:28:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44741#p44741</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: координаты и разрешение экрана]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44738#p44738" />
			<content type="html"><![CDATA[<p>Разрешение экрана и без пользователя можно узнать. Встроенные переменные A_ScreenWidth и A_ScreenHeight.<br /></p><div class="codebox"><pre><code>MsgBox, Разрешение экрана: %A_ScreenWidth%x%A_ScreenHeight%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2011-02-02T12:10:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44738#p44738</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: координаты и разрешение экрана]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=44736#p44736" />
			<content type="html"><![CDATA[<p>Привет, есть у меня скрипт который при нажатии кнопки происходит клик в заданных координатах, но поскольку разрешения экранов разные то соответственно надо чтобы пользователь мог выбирать разрешение (drop menu).<br />как это реализовать? если не сложно напишите пожалуйста пример (в дроп меню 800x600 и 1024х768.&nbsp; Если 800x600 то x1=1 y1=2, если 1024x768 то x1=3 y1=4)<br />Это возможно реализовать в коде? или надо использовать ini?</p>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2011-02-02T12:01:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=44736#p44736</id>
		</entry>
</feed>
