<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Вопрос по WinGetPos]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=17014&amp;type=atom" />
	<updated>2022-03-09T21:46:43Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=17014</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос по WinGetPos]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=152556#p152556" />
			<content type="html"><![CDATA[<p>Справка же лёгкая, что-то не выйдет - поможем, пытайтесь!</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-03-09T21:46:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=152556#p152556</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос по WinGetPos]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=152551#p152551" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />а как это сделать?Можете привести пример,пожалуйста.</p>]]></content>
			<author>
				<name><![CDATA[Monarch]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42402</uri>
			</author>
			<updated>2022-03-09T17:46:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=152551#p152551</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос по WinGetPos]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=152550#p152550" />
			<content type="html"><![CDATA[<p>Как вариант - записывать позиции кликов в процентом отношении от монитора. Разрешение 1280x1024 не подходит т.к. квадратное - у большинства идут широкоформатные мониторы и будут проблемы.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-03-09T17:22:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=152550#p152550</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос по WinGetPos]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=152544#p152544" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />отредактировал.</p>]]></content>
			<author>
				<name><![CDATA[Monarch]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42402</uri>
			</author>
			<updated>2022-03-08T21:33:34Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=152544#p152544</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос по WinGetPos]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=152543#p152543" />
			<content type="html"><![CDATA[<p><strong>Monarch</strong>, добро пожаловать на форум! Ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на оформление <a href="https://forum.script-coding.com/misc.php?action=rules#code-formatting">кода</a>.<br />Вопросы, связанные с играми, должны быть в соответствующей ветке, переношу.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-03-08T21:27:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=152543#p152543</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Вопрос по WinGetPos]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=152542#p152542" />
			<content type="html"><![CDATA[<p>Вообщем.Создал ахк для упрощения игр на серверах gta 5 rp(быстро снимать с себя все и тому прочее) когда создавал делал под свое разрешение(1280x1024) залил на ютуб<br />люди просят на разные.Ну обыскал я интернет,нашел способ через WinGetPos и не совсем разобрался.</p><div class="codebox"><pre><code>
Gui Add, Button, x8 y168 w251 h23 gSave, Сохранить текущие клавиши
Gui Add, Hotkey, x8 y48 w120 h21 vKey1, % Key1
Save:
Key1:
WinGetPos, , , W, H,:,
	switch W &quot;x&quot; H
	{
		case &quot;1280x1024&quot;: 
Sleep 100	
SendInput, {I}
        case &quot;1920x1080&quot;: 
Sleep 100
SendInput, {R}			

		Default:
			MsgBox нет такого разрешения
	}
	return
</code></pre></div><p>Вот часть кода.<br />Для чего я так сделал?-Сам не знаю,смотрю как можно делать по другому для меня это вообще темный лес.<br />Что я хочу от него?-Что бы при разрешении 1920-1080. нажимало на другие кнопки(ахк под 1920 уже сделал)а это разрешение само читало а не через чекбокс.<br />Зарание СПАСИБО!<br />Прошу помогите.</p>]]></content>
			<author>
				<name><![CDATA[Monarch]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42402</uri>
			</author>
			<updated>2022-03-08T21:08:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=152542#p152542</id>
		</entry>
</feed>
