<?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=17854&amp;type=atom" />
	<updated>2023-07-07T16:51:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17854</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158684#p158684" />
			<content type="html"><![CDATA[<p>WinMenuSelectItem не работает:</p><div class="codebox"><pre><code>	If instr(ControlType, &quot;TMemo&quot;) ; клик в центре
		{
			WinMenuSelectItem, A,, 1&amp;
			; Send {1} ; = select 10 min
			; ControlClick, TButton1, A ; press OK
			Return
		}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2023-07-07T16:51:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158684#p158684</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158675#p158675" />
			<content type="html"><![CDATA[<p>Вот есть специальная библиотека для работы с GUI меню. Может кто-то пробовал?<br /><a href="https://www.autohotkey.com/boards/viewtopic.php?f=6&amp;t=104999">https://www.autohotkey.com/boards/viewt … p;t=104999</a></p><p>Тогда можно 3 кнопочки нарисовать на окне напоминалки при каждом появлении окна: +10 мин, +30 мин и +1 ч. <br />И соответственно при нажатии на каждую автоматически открывать меню, выбирать нужный пункт и жать ОК.</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2023-07-06T17:42:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158675#p158675</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158674#p158674" />
			<content type="html"><![CDATA[<p>Не работает, ahk_id каждый раз разный.</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2023-07-06T15:58:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158674#p158674</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158673#p158673" />
			<content type="html"><![CDATA[<p>Заработало:<br /></p><div class="codebox"><pre><code>	~LButton Up:: 
	MouseGetPos, , , , ControlType
	if instr(ControlType, &quot;TButton1&quot;)
		{
			Send {Alt Down}{Tab}{Alt Up}
			Return
		}
	
	Else 
		{
			WinWaitActive, ahk_id 0x1d1594
			Send {1} ; = select 10 min
			; ControlClick, TButton1, A ; press OK
			Return
		}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2023-07-06T15:36:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158673#p158673</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158672#p158672" />
			<content type="html"><![CDATA[<p>При активном окне напоминания есть 2 варианта:<br />1 - нажатие ОК, это работает.<br />2 - нажатие на пункт меню и открытие меню.</p><p>т.е. по одному событию надо различить на что нажато было.</p><div class="codebox"><pre><code>; AAClock alarm
#IfWinActive ahk_class TfrmOnAlarm
	~LButton Up::  
	MouseGetPos, , , , ControlType
	if instr(ControlType, &quot;TButton1&quot;)  ; нажатие ОК
		Send {Alt Down}{Tab}{Alt Up}
	
	if (нажатие на пункт меню и меню открылось.)
		
		Send {1} ; = select 10 min
		ControlClick, TButton1, A ; press OK
	Return
#IfWinActive</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2023-07-06T15:14:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158672#p158672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158671#p158671" />
			<content type="html"><![CDATA[<p>После нажатия на кнопку &quot;напомнить позже&quot;, меню открылось:</p><p><span class="postimg"><img src="https://i.imgur.com/g9e1d8m.jpg" alt="https://i.imgur.com/g9e1d8m.jpg" /></span></p><p>Parent Window:</p><p><span class="postimg"><img src="https://i.imgur.com/y11XZSY.jpg" alt="https://i.imgur.com/y11XZSY.jpg" /></span></p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2023-07-06T15:03:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158671#p158671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158670#p158670" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong><br />Уже нашел, просто написал почему не находило.<br />Попробую позже.</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2023-07-06T11:05:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158670#p158670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158669#p158669" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stuermer пишет:</cite><blockquote><p>ahkspy? Гуглом не нашел</p></blockquote></div><p>Тут нет пробела.<br /></p><div class="quotebox"><cite>stuermer пишет:</cite><blockquote><p>WinWaitActive, WinTitle,, 2</p></blockquote></div><p>Почитайте про WinTitle. И WinWaitActive скорее всего не подходит в данном случае.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2023-07-06T10:40:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158669#p158669</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158668#p158668" />
			<content type="html"><![CDATA[<p>1 - если искать с пробелом &quot;ahk spy&quot;, то не находит, попробуйте.<br />2 - </p><div class="codebox"><pre><code>WinWaitActive, WinTitle,, 2</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2023-07-06T10:02:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158668#p158668</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158667#p158667" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stuermer пишет:</cite><blockquote><p>Гуглом не нашел, можно ссылку?</p></blockquote></div><p>Странный у вас гугл. Ссылка у меня в подписи.</p><p><span class="postimg"><img src="https://i.imgur.com/CG95QNl.png" alt="https://i.imgur.com/CG95QNl.png" /></span><br /></p><div class="quotebox"><cite>stuermer пишет:</cite><blockquote><p>У менЮ ведь нету Window Title</p></blockquote></div><p>Представим что есть, как бы выглядел ваш код?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2023-07-05T18:03:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158667#p158667</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158666#p158666" />
			<content type="html"><![CDATA[<p>Я думал вы имеете ввиду Window Spy от AHK. А что такое ahkspy? Гуглом не нашел, можно ссылку?</p><p>Вижу, что ahk_class разный, так как написать проверку, что меню открыто?</p><p>Меню открывать все равно только мышью по координатам? У менЮ ведь нету Window Title.</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2023-07-05T17:56:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158666#p158666</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158665#p158665" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stuermer пишет:</cite><blockquote><p>ahk_class TfrmOnAlarm</p></blockquote></div><p>Вы не видите что ahk_class разный?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2023-07-05T16:02:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158665#p158665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158664#p158664" />
			<content type="html"><![CDATA[<p>Это не ахкспай.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2023-07-05T16:01:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158664#p158664</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158663#p158663" />
			<content type="html"><![CDATA[<p>Если следить за мышью и открыть меню:<br /><span class="postimg"><img src="https://i.imgur.com/wkU7pSY.jpg" alt="https://i.imgur.com/wkU7pSY.jpg" /></span></p><p>Parent:<br /><span class="postimg"><img src="https://i.imgur.com/qOcULH1.jpg" alt="https://i.imgur.com/qOcULH1.jpg" /></span></p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2023-07-05T13:47:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158663#p158663</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Элементы управления диалога]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=158662#p158662" />
			<content type="html"><![CDATA[<p>Скиньте два скрина ахкспай, parent и меню.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2023-07-05T10:58:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=158662#p158662</id>
		</entry>
</feed>
