<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14670&amp;type=atom" />
	<updated>2019-03-25T20:18:08Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14670</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133160#p133160" />
			<content type="html"><![CDATA[<p>Нее, ну так неинтересно. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><p>Добавил в AhkSpy.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-03-25T20:18:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133160#p133160</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133156#p133156" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>CurrentAutomationId возвращает строку, а вот CurrentControlType возвращает номер который есть и в Inspect. Как из него получить строку используя <br />стандартную библиотеку не соображу.</p></blockquote></div><p>Надо просто посмотреть, как получает его враппер от <strong>nepter</strong>.<br /></p><div class="codebox"><pre><code>; Control Type Identifiers
UIA_ControlType(n){
	static id:={Button:50000,Calendar:50001,CheckBox:50002,ComboBox:50003,Edit:50004,Hyperlink:50005,Image:50006,ListItem:50007,List:50008,Menu:50009,MenuBar:50010,MenuItem:50011,ProgressBar:50012,RadioButton:50013,ScrollBar:50014,Slider:50015,Spinner:50016,StatusBar:50017,Tab:50018,TabItem:50019,Text:50020,ToolBar:50021,ToolTip:50022,Tree:50023,TreeItem:50024,Custom:50025,Group:50026,Thumb:50027,DataGrid:50028,DataItem:50029,Document:50030,SplitButton:50031,Window:50032,Pane:50033,Header:50034,HeaderItem:50035,Table:50036,TitleBar:50037,Separator:50038}
	, name:={50000:&quot;UIA_ButtonControlTypeId&quot;,50001:&quot;UIA_CalendarControlTypeId&quot;,50002:&quot;UIA_CheckBoxControlTypeId&quot;,50003:&quot;UIA_ComboBoxControlTypeId&quot;,50004:&quot;UIA_EditControlTypeId&quot;,50005:&quot;UIA_HyperlinkControlTypeId&quot;,50006:&quot;UIA_ImageControlTypeId&quot;,50007:&quot;UIA_ListItemControlTypeId&quot;,50008:&quot;UIA_ListControlTypeId&quot;,50009:&quot;UIA_MenuControlTypeId&quot;,50010:&quot;UIA_MenuBarControlTypeId&quot;,50011:&quot;UIA_MenuItemControlTypeId&quot;,50012:&quot;UIA_ProgressBarControlTypeId&quot;,50013:&quot;UIA_RadioButtonControlTypeId&quot;,50014:&quot;UIA_ScrollBarControlTypeId&quot;,50015:&quot;UIA_SliderControlTypeId&quot;,50016:&quot;UIA_SpinnerControlTypeId&quot;,50017:&quot;UIA_StatusBarControlTypeId&quot;,50018:&quot;UIA_TabControlTypeId&quot;,50019:&quot;UIA_TabItemControlTypeId&quot;,50020:&quot;UIA_TextControlTypeId&quot;,50021:&quot;UIA_ToolBarControlTypeId&quot;,50022:&quot;UIA_ToolTipControlTypeId&quot;,50023:&quot;UIA_TreeControlTypeId&quot;,50024:&quot;UIA_TreeItemControlTypeId&quot;,50025:&quot;UIA_CustomControlTypeId&quot;,50026:&quot;UIA_GroupControlTypeId&quot;,50027:&quot;UIA_ThumbControlTypeId&quot;,50028:&quot;UIA_DataGridControlTypeId&quot;,50029:&quot;UIA_DataItemControlTypeId&quot;,50030:&quot;UIA_DocumentControlTypeId&quot;,50031:&quot;UIA_SplitButtonControlTypeId&quot;,50032:&quot;UIA_WindowControlTypeId&quot;,50033:&quot;UIA_PaneControlTypeId&quot;,50034:&quot;UIA_HeaderControlTypeId&quot;,50035:&quot;UIA_HeaderItemControlTypeId&quot;,50036:&quot;UIA_TableControlTypeId&quot;,50037:&quot;UIA_TitleBarControlTypeId&quot;,50038:&quot;UIA_SeparatorControlTypeId&quot;}
	if n is integer
		return name[n]
	else return id[n]
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-03-25T17:14:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133156#p133156</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133154#p133154" />
			<content type="html"><![CDATA[<p>Я её стандартной и называл, только в ней <a href="http://www.autohotkey.com/board/topic/94619-ahk-l-screen-reader-a-tool-to-get-text-anywhere/">ссылка на топик</a> <strong>nepter</strong>.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-03-25T16:58:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133154#p133154</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133152#p133152" />
			<content type="html"><![CDATA[<p>Да.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-03-25T16:39:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133152#p133152</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133151#p133151" />
			<content type="html"><![CDATA[<p><a href="https://github.com/jethrow/UIA_Interface">Этот?</a></p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-03-25T16:38:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133151#p133151</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133149#p133149" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Я бы делал через враппер от jethrow</p></blockquote></div><p>Есть ссылка?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-03-25T16:34:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133149#p133149</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133147#p133147" />
			<content type="html"><![CDATA[<p>Он использует враппер от <strong>nepter</strong>, который в свою очередь давал мне ошибку:<br /><a href="https://www.autohotkey.com/boards/viewtopic.php?p=233872#p233872">https://www.autohotkey.com/boards/viewt … 72#p233872</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-03-25T16:30:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133147#p133147</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133146#p133146" />
			<content type="html"><![CDATA[<p>В этом примере <a href="https://www.autohotkey.com/boards/viewtopic.php?t=28866#p135539">https://www.autohotkey.com/boards/viewt … 66#p135539</a> есть, используя библиотеку <strong>sancarn</strong>, так что автоит не понадобится.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-03-25T16:26:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133146#p133146</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133145#p133145" />
			<content type="html"><![CDATA[<p>Понял отличие от Inspect, у меня из ElementFromHandle, надо ElementFromPoint, тогда значения совпадают.&nbsp; CurrentAutomationId возвращает строку, а вот CurrentControlType возвращает номер который есть и в Inspect. Как из него получить строку используя стандартную библиотеку не соображу.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-03-25T16:24:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133145#p133145</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133143#p133143" />
			<content type="html"><![CDATA[<p>Я бы делал через враппер от <strong>jethrow</strong>.<br />Если не получится, то можно посмотреть, как это делается в автоит и перенести.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-03-25T16:21:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133143#p133143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133141#p133141" />
			<content type="html"><![CDATA[<p>В общем пришёл к выводу, что могут быть интересны AutomationId и ControlType, но извлечь такие же как в &quot;Inspect&quot; не получается. У меня они или пусты, или отличаются от Inspect.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-03-25T16:04:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133141#p133141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133137#p133137" />
			<content type="html"><![CDATA[<p><a href="https://www.autohotkey.com/boards/viewtopic.php?t=28866#p135539">https://www.autohotkey.com/boards/viewt … 66#p135539</a><br />О, вот это <span class="bbu">иногда</span> работает. Бывает что возвращает всякие - tsbTaskItems, DataGridView, tsMenu, menuStrip1...</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-03-25T14:20:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133137#p133137</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133134#p133134" />
			<content type="html"><![CDATA[<p>Ну это сложно, надо для каждого контрола делать. UIA вроде как определяет тип контрола - UIA_<strong>ComboBox</strong>ControlTypeId.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2019-03-25T13:58:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133134#p133134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133133#p133133" />
			<content type="html"><![CDATA[<p>Я имел в виду, что если тебе надо определить определить название окна, то посмотреть через чит энжайн, где оно определяется и в дальнейшем использовать полученные отступы. Я так делал при подсчете выделенных клипов в премьере.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-03-25T13:48:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133133#p133133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определить оригинальное имя окна класса WindowsForms]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=133132#p133132" />
			<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>2019-03-25T13:39:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=133132#p133132</id>
		</entry>
</feed>
