<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Spotify Global hot keys]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16534&amp;type=atom" />
	<updated>2021-08-15T12:37:03Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16534</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Spotify Global hot keys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149251#p149251" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong> наверное из-за того, что вы не пользуетесь программой Spotify.<br />В ней нет возможности управлять хоткеями при не активном окне. И в сети не видел полностью устраивающего решения этой проблемы.<br />Так-то сервис топовый, хорошо подбирает музыку под вкусы человека.</p>]]></content>
			<author>
				<name><![CDATA[OmTatSat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33453</uri>
			</author>
			<updated>2021-08-15T12:37:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149251#p149251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Spotify Global hot keys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149250#p149250" />
			<content type="html"><![CDATA[<p>Ни из названия темы, ни из первого сообщения не понял, о чём тема.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2021-08-15T07:45:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149250#p149250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Spotify Global hot keys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149249#p149249" />
			<content type="html"><![CDATA[<p>Фикс кнопки Numpad5 при выключенном Spotify.<br />Фикс кнопки Numpad3.</p>]]></content>
			<author>
				<name><![CDATA[OmTatSat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33453</uri>
			</author>
			<updated>2021-08-15T06:19:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149249#p149249</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Spotify Global hot keys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149248#p149248" />
			<content type="html"><![CDATA[<p>Добавил хоткеи кнопок:<br />Добавить в медиатеку. Like<br />Мне не нравится этот трек. Dislike</p>]]></content>
			<author>
				<name><![CDATA[OmTatSat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33453</uri>
			</author>
			<updated>2021-08-14T20:57:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149248#p149248</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Spotify Global hot keys]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149241#p149241" />
			<content type="html"><![CDATA[<p>В сети не нашел ни одного полностью рабочего варианта.<br />По этому делюсь своим вариантом, в некоторых местах использован код от других авторов.<br />Хоткеи работают всегда.<br />Spotify при сворачивании и закрытии окна прячется в трей.<br />Хоткеи повешаны на NumPad клавиатуру.<br />Можно включить переключение песен (нажатием &quot;NumPad /&quot;) как внутренними хоткеями Spotify так и медиа клавишами виндовса - на win10 показывает OSD переключенной песни.<br />Добавил постоянные дополнительные хоткеи на медиа клавиши виндовса - для тех у кого нет мультимедиа клавиатуры.<br />Добавил хоткеи кнопок:<br />Добавить в медиатеку. Like<br />Мне не нравится этот трек. Dislike</p><div class="codebox"><pre><code>
;http://forum.script-coding.com/viewtopic.php?pid=149241#p149241

SetBatchLines, -1
globalmediakeys := 1
WinGet, activewin , ID, A
DetectHiddenWindows, On 
IfWinNotExist, ahk_exe Spotify.exe
{
	RunWait Spotify.exe, % A_AppData &quot;\Spotify&quot;
	sleep, 2000
}
else Run Spotify.exe
	global wntitle :=&quot;ahk_id&quot;getSpotifyHwnd()
;ControlFocus, Chrome_RenderWidgetHostHWND1,  %wntitle%
sleep, 1400
send, !{tab}
sleep, 200
;send, !{tab}
WinActivate, &quot;ahk_id&quot;activewin
;ToolTip, %activewin%

Numpad9::																;Добавить в медиатеку. Like
{
oAcc := Acc_Get(&quot;Object&quot;, &quot;4.1.2.1.1.1.2.1.1.3.1.1.3.1.1&quot;, 0, wntitle)
oAcc.accDoDefaultAction(0)
vOutput := oAcc.accname(0)
ToolTip, % vOutput
Sleep, 5000
ToolTip
return
}
4.1.2.1.1.1.2.1.1.3.1.1.3.1.1
Numpad3::																;Мне не нравится этот трек. Dislike
{
oAcc := Acc_Get(&quot;Object&quot;, &quot;4.1.2.1.1.1.2.1.1.3.1.1.4&quot;, 0, wntitle)
oAcc.accDoDefaultAction(0)
Sleep, 500
	oAcc := Acc_Get(&quot;Object&quot;, &quot;4.1.2.1.1.1.3.1.1.1&quot;, 0, wntitle) ;Мне не нравится этот трек
	;oAcc := Acc_Get(&quot;Object&quot;, &quot;4.1.2.1.1.1.3.1.1.2&quot;, 0, wntitle) ;Мне не нравится группа
	Sleep, 200
	oAcc.accDoDefaultAction(0)
	;ToolTip, oAcc.accname(0)
	vOutput := oAcc.accname(0)
ToolTip, % vOutput
Sleep, 5000
ToolTip
return
}



Numpad5::						 ;  Play/Pause
{
		if (globalmediakeys = 1)
		Send      {Media_Play_Pause}
		else
spotifyKey(&quot;{Space}&quot;)
return
}
Numpad8::						 ;  Next
{
		if (globalmediakeys = 1)
		{
			;ToolTip, global
		Send      {Media_Next}
		return
		}
		else
spotifyKey(&quot;^{Right}&quot;)
return
}
Numpad2::						 ;  Previous
{
		if (globalmediakeys = 1)
		Send      {Media_Prev}
		else
spotifyKey(&quot;^{Left}&quot;)
return
}
Numpad6::spotifyKey(&quot;+{Right}&quot;)  ;  Seek forward
Numpad4::spotifyKey(&quot;+{Left}&quot;)   ;  Seek backward
NumpadAdd::						 ; Volume up
{
		if (globalmediakeys = 1)
		Send      {Volume_Up}
		else
spotifyKey(&quot;^{Up}&quot;)
return
}
NumpadSub::						 ;  Volume down
{
		if (globalmediakeys = 1)
		Send      {Volume_Down}
		else
spotifyKey(&quot;^{Down}&quot;)
return
}
Numpad0::
{
	IfWinActive, ahk_exe Spotify.exe
		{
			;ToolTip, act
		WinHide, %spotifyHwnd%
		
		AltTabEmu()
		}
	else
		{
			;ToolTip, else
		Run, Spotify.exe, % A_AppData &quot;\Spotify&quot;
		WinActivate, ahk_exe Spotify.exe
		}
	return
}




; ON/OFF use win mediakeys to see OSD when changed songs
NumpadDiv::
{
	;ToolTip, globalmediakeys=%globalmediakeys%
	sleep, 1000
	if(globalmediakeys = 1)
	{
	globalmediakeys := 0
	ToolTip, GlobalMediaKeys OFF
	sleep, 1000
	ToolTip
	return
	}
	if(globalmediakeys = 0)
	{
	globalmediakeys := 1
	ToolTip, GlobalMediaKeys ON
	sleep, 1000
	ToolTip
	return
	}
}

#IfWinNotExist, ahk_exe Spotify.exe
Numpad5::
{
	WinGet, activewin , ID, A
RunWait Spotify.exe, % A_AppData &quot;\Spotify&quot;
sleep, 2000
	global wntitle :=&quot;ahk_id&quot;getSpotifyHwnd()
	spotifyKey(&quot;{Space}&quot;)
	send, !{tab}
WinActivate, &quot;ahk_id&quot;activewin
return
}
Numpad0::
{
	ToolTip, notexist
RunWait Spotify.exe, % A_AppData &quot;\Spotify&quot;
sleep, 2000
	global wntitle :=&quot;ahk_id&quot;getSpotifyHwnd()
	send, !{tab}
	sleep, 200
	WinActivate, ahk_exe Spotify.exe
	return
}
#If


#If MouseIsOverButtons(wntitle)
LButton::
	CoordMode, Mouse
	MouseGetPos, mX, mY, Hwndc, , 2
	winGetPos, mmX, mmY,,, ahk_id%Hwndc%
	hwndnow := &quot;ahk_id&quot;Hwndc
	posX := mX - mmX
if(posX &lt; 57 OR posX &gt; 113 AND hwndnow != wntitle)
	{
	WinHide, A
	AltTabEmu()
	return
	}
if(posX &gt; 57 OR posX &lt; 113 AND hwndnow != wntitle)
	WinGet, MinMax, MinMax, A
if(MinMax = 0)
	WinMaximize, A
else
	WinRestore, A
return


;Permanent extra win media hotkeys
&gt;!&gt;Space::Send      {Media_Play_Pause}      ; AltR + Space
&gt;!&gt;Left::Send       {Media_Prev}            ; AltR + Left
&gt;!&gt;Right::Send      {Media_Next}            ; AltR + Right
&gt;!&gt;Delete::Send     {Volume_Mute}           ; AltR + Delete
&gt;!&gt;Up::Send         {Volume_Up}             ; AltR + Up
&gt;!&gt;Down::Send       {Volume_Down}           ; AltR + Down






; Get the HWND of the Spotify main window.
getSpotifyHwnd() {
	SetFormat, IntegerFast, hex
	WinGet, spotifyHwnd, ID, ahk_exe spotify.exe
	; We need the app&#039;s third top level window, so get next twice.
	spotifyHwnd := DllCall(&quot;GetWindow&quot;, &quot;uint&quot;, spotifyHwnd, &quot;uint&quot;, 2)
	spotifyHwnd := DllCall(&quot;GetWindow&quot;, &quot;uint&quot;, spotifyHwnd, &quot;uint&quot;, 2)
	Return spotifyHwnd
}


; Send a key to Spotify.
spotifyKey(key) {
		;spotifyHwnd := getSpotifyHwnd()
		; Chromium ignores keys when it isn&#039;t focused.
		; Focus the document window without bringing the app to the foreground.
		
	IfWinNotActive, ahk_exe Spotify.exe
		{
			ControlFocus, Chrome_RenderWidgetHostHWND1,  %wntitle%
			;ToolTip, contkeyssend
		ControlSend, , %key%, %wntitle%
		;AltTabEmu()
		return
		}
	IfWinActive, ahk_exe Spotify.exe
	{
		Send,  %key%
		;ToolTip, keyssend
		return
	}
	Return
}

AltTabEmu() {
	hWnd := WinExist(&quot;A&quot;)
	Loop {
		hWnd := DllCall(&quot;GetWindow&quot;, &quot;Uint&quot;, hWnd, &quot;Ptr&quot;, 2)
		WinGetTitle Title, ahk_id %hWnd%
	} Until Title
	WinActivate ahk_id %hWnd%
}

MouseIsOverButtons(WinTitle) {
MouseGetPos, , , Win
winGetPos, mmX, mmY, w,h, ahk_id%win%
WinGet, procname, ProcessName , ahk_id%win%
;ToolTip, % WinTitle &quot;`n&quot; Win &quot;`n&quot; mmX &quot;x&quot; mmY &quot;`n&quot; w &quot;x&quot; h &quot;`n&quot; &quot;wntitle: &quot; wntitle &quot;`n&quot;&quot;procname: &quot; procname
	return (procname = &quot;Spotify.exe&quot; AND WinTitle != &quot;ahk_id&quot;Win AND w &gt; 100 AND w &lt; 200)
   }
   
   
   
; http://www.autohotkey.com/board/topic/77303-acc-library-ahk-l-updated-09272012/
; https://dl.dropbox.com/u/47573473/Web%20Server/AHK_L/Acc.ahk
;------------------------------------------------------------------------------
; Acc.ahk Standard Library
; by Sean
; Updated by jethrow:
; 	Modified ComObjEnwrap params from (9,pacc) --&gt; (9,pacc,1)
; 	Changed ComObjUnwrap to ComObjValue in order to avoid AddRef (thanks fincs)
; 	Added Acc_GetRoleText &amp; Acc_GetStateText
; 	Added additional functions - commented below
; 	Removed original Acc_Children function
; last updated 2/25/2010
;------------------------------------------------------------------------------

Acc_Init()
{
	Static	h
	If Not	h
		h:=DllCall(&quot;LoadLibrary&quot;,&quot;Str&quot;,&quot;oleacc&quot;,&quot;Ptr&quot;)
}
Acc_ObjectFromEvent(ByRef _idChild_, hWnd, idObject, idChild)
{
	Acc_Init()
	If	DllCall(&quot;oleacc\AccessibleObjectFromEvent&quot;, &quot;Ptr&quot;, hWnd, &quot;UInt&quot;, idObject, &quot;UInt&quot;, idChild, &quot;Ptr*&quot;, pacc, &quot;Ptr&quot;, VarSetCapacity(varChild,8+2*A_PtrSize,0)*0+&amp;varChild)=0
	Return	ComObjEnwrap(9,pacc,1), _idChild_:=NumGet(varChild,8,&quot;UInt&quot;)
}

Acc_ObjectFromPoint(ByRef _idChild_ = &quot;&quot;, x = &quot;&quot;, y = &quot;&quot;)
{
	Acc_Init()
	If	DllCall(&quot;oleacc\AccessibleObjectFromPoint&quot;, &quot;Int64&quot;, x==&quot;&quot;||y==&quot;&quot;?0*DllCall(&quot;GetCursorPos&quot;,&quot;Int64*&quot;,pt)+pt:x&amp;0xFFFFFFFF|y&lt;&lt;32, &quot;Ptr*&quot;, pacc, &quot;Ptr&quot;, VarSetCapacity(varChild,8+2*A_PtrSize,0)*0+&amp;varChild)=0
	Return	ComObjEnwrap(9,pacc,1), _idChild_:=NumGet(varChild,8,&quot;UInt&quot;)
}

Acc_ObjectFromWindow(hWnd, idObject = -4)
{
	Acc_Init()
	If	DllCall(&quot;oleacc\AccessibleObjectFromWindow&quot;, &quot;Ptr&quot;, hWnd, &quot;UInt&quot;, idObject&amp;=0xFFFFFFFF, &quot;Ptr&quot;, -VarSetCapacity(IID,16)+NumPut(idObject==0xFFFFFFF0?0x46000000000000C0:0x719B3800AA000C81,NumPut(idObject==0xFFFFFFF0?0x0000000000020400:0x11CF3C3D618736E0,IID,&quot;Int64&quot;),&quot;Int64&quot;), &quot;Ptr*&quot;, pacc)=0
	Return	ComObjEnwrap(9,pacc,1)
}

Acc_WindowFromObject(pacc)
{
	If	DllCall(&quot;oleacc\WindowFromAccessibleObject&quot;, &quot;Ptr&quot;, IsObject(pacc)?ComObjValue(pacc):pacc, &quot;Ptr*&quot;, hWnd)=0
	Return	hWnd
}

Acc_GetRoleText(nRole)
{
	nSize := DllCall(&quot;oleacc\GetRoleText&quot;, &quot;Uint&quot;, nRole, &quot;Ptr&quot;, 0, &quot;Uint&quot;, 0)
	VarSetCapacity(sRole, (A_IsUnicode?2:1)*nSize)
	DllCall(&quot;oleacc\GetRoleText&quot;, &quot;Uint&quot;, nRole, &quot;str&quot;, sRole, &quot;Uint&quot;, nSize+1)
	Return	sRole
}

Acc_GetStateText(nState)
{
	nSize := DllCall(&quot;oleacc\GetStateText&quot;, &quot;Uint&quot;, nState, &quot;Ptr&quot;, 0, &quot;Uint&quot;, 0)
	VarSetCapacity(sState, (A_IsUnicode?2:1)*nSize)
	DllCall(&quot;oleacc\GetStateText&quot;, &quot;Uint&quot;, nState, &quot;str&quot;, sState, &quot;Uint&quot;, nSize+1)
	Return	sState
}

Acc_SetWinEventHook(eventMin, eventMax, pCallback)
{
	Return	DllCall(&quot;SetWinEventHook&quot;, &quot;Uint&quot;, eventMin, &quot;Uint&quot;, eventMax, &quot;Uint&quot;, 0, &quot;Ptr&quot;, pCallback, &quot;Uint&quot;, 0, &quot;Uint&quot;, 0, &quot;Uint&quot;, 0)
}

Acc_UnhookWinEvent(hHook)
{
	Return	DllCall(&quot;UnhookWinEvent&quot;, &quot;Ptr&quot;, hHook)
}
/*	Win Events:
	pCallback := RegisterCallback(&quot;WinEventProc&quot;)
	WinEventProc(hHook, event, hWnd, idObject, idChild, eventThread, eventTime)
	{
		Critical
		Acc := Acc_ObjectFromEvent(_idChild_, hWnd, idObject, idChild)
		; Code Here:
	}
*/

; Written by jethrow
Acc_Role(Acc, ChildId=0) {
	try return ComObjType(Acc,&quot;Name&quot;)=&quot;IAccessible&quot;?Acc_GetRoleText(Acc.accRole(ChildId)):&quot;invalid object&quot;
}
Acc_State(Acc, ChildId=0) {
	try return ComObjType(Acc,&quot;Name&quot;)=&quot;IAccessible&quot;?Acc_GetStateText(Acc.accState(ChildId)):&quot;invalid object&quot;
}
Acc_Location(Acc, ChildId=0, byref Position=&quot;&quot;) { ; adapted from Sean&#039;s code
	try Acc.accLocation(ComObj(0x4003,&amp;x:=0), ComObj(0x4003,&amp;y:=0), ComObj(0x4003,&amp;w:=0), ComObj(0x4003,&amp;h:=0), ChildId)
	catch
		return
	Position := &quot;x&quot; NumGet(x,0,&quot;int&quot;) &quot; y&quot; NumGet(y,0,&quot;int&quot;) &quot; w&quot; NumGet(w,0,&quot;int&quot;) &quot; h&quot; NumGet(h,0,&quot;int&quot;)
	return	{x:NumGet(x,0,&quot;int&quot;), y:NumGet(y,0,&quot;int&quot;), w:NumGet(w,0,&quot;int&quot;), h:NumGet(h,0,&quot;int&quot;)}
}
Acc_Parent(Acc) { 
	try parent:=Acc.accParent
	return parent?Acc_Query(parent):
}
Acc_Child(Acc, ChildId=0) {
	try child:=Acc.accChild(ChildId)
	return child?Acc_Query(child):
}
Acc_Query(Acc) { ; thanks Lexikos - www.autohotkey.com/forum/viewtopic.php?t=81731&amp;p=509530#509530
	try return ComObj(9, ComObjQuery(Acc,&quot;{618736e0-3c3d-11cf-810c-00aa00389b71}&quot;), 1)
}
Acc_Error(p=&quot;&quot;) {
	static setting:=0
	return p=&quot;&quot;?setting:setting:=p
}
Acc_Children(Acc) {
	if ComObjType(Acc,&quot;Name&quot;) != &quot;IAccessible&quot;
		ErrorLevel := &quot;Invalid IAccessible Object&quot;
	else {
		Acc_Init(), cChildren:=Acc.accChildCount, Children:=[]
		if DllCall(&quot;oleacc\AccessibleChildren&quot;, &quot;Ptr&quot;,ComObjValue(Acc), &quot;Int&quot;,0, &quot;Int&quot;,cChildren, &quot;Ptr&quot;,VarSetCapacity(varChildren,cChildren*(8+2*A_PtrSize),0)*0+&amp;varChildren, &quot;Int*&quot;,cChildren)=0 {
			Loop %cChildren%
				i:=(A_Index-1)*(A_PtrSize*2+8)+8, child:=NumGet(varChildren,i), Children.Insert(NumGet(varChildren,i-8)=9?Acc_Query(child):child), NumGet(varChildren,i-8)=9?ObjRelease(child):
			return Children.MaxIndex()?Children:
		} else
			ErrorLevel := &quot;AccessibleChildren DllCall Failed&quot;
	}
	if Acc_Error()
		throw Exception(ErrorLevel,-1)
}
Acc_ChildrenByRole(Acc, Role) {
	if ComObjType(Acc,&quot;Name&quot;)!=&quot;IAccessible&quot;
		ErrorLevel := &quot;Invalid IAccessible Object&quot;
	else {
		Acc_Init(), cChildren:=Acc.accChildCount, Children:=[]
		if DllCall(&quot;oleacc\AccessibleChildren&quot;, &quot;Ptr&quot;,ComObjValue(Acc), &quot;Int&quot;,0, &quot;Int&quot;,cChildren, &quot;Ptr&quot;,VarSetCapacity(varChildren,cChildren*(8+2*A_PtrSize),0)*0+&amp;varChildren, &quot;Int*&quot;,cChildren)=0 {
			Loop %cChildren% {
				i:=(A_Index-1)*(A_PtrSize*2+8)+8, child:=NumGet(varChildren,i)
				if NumGet(varChildren,i-8)=9
					AccChild:=Acc_Query(child), ObjRelease(child), Acc_Role(AccChild)=Role?Children.Insert(AccChild):
				else
					Acc_Role(Acc, child)=Role?Children.Insert(child):
			}
			return Children.MaxIndex()?Children:, ErrorLevel:=0
		} else
			ErrorLevel := &quot;AccessibleChildren DllCall Failed&quot;
	}
	if Acc_Error()
		throw Exception(ErrorLevel,-1)
}
Acc_Get(Cmd, ChildPath=&quot;&quot;, ChildID=0, WinTitle=&quot;&quot;, WinText=&quot;&quot;, ExcludeTitle=&quot;&quot;, ExcludeText=&quot;&quot;) {
	static properties := {Action:&quot;DefaultAction&quot;, DoAction:&quot;DoDefaultAction&quot;, Keyboard:&quot;KeyboardShortcut&quot;}
	AccObj :=   IsObject(WinTitle)? WinTitle
			:   Acc_ObjectFromWindow( WinExist(WinTitle, WinText, ExcludeTitle, ExcludeText), 0 )
	if ComObjType(AccObj, &quot;Name&quot;) != &quot;IAccessible&quot;
		ErrorLevel := &quot;Could not access an IAccessible Object&quot;
	else {
		StringReplace, ChildPath, ChildPath, _, %A_Space%, All
		AccError:=Acc_Error(), Acc_Error(true)
		Loop Parse, ChildPath, ., %A_Space%
			try {
				if A_LoopField is digit
					Children:=Acc_Children(AccObj), m2:=A_LoopField ; mimic &quot;m2&quot; output in else-statement
				else
					RegExMatch(A_LoopField, &quot;(\D*)(\d*)&quot;, m), Children:=Acc_ChildrenByRole(AccObj, m1), m2:=(m2?m2:1)
				if Not Children.HasKey(m2)
					throw
				AccObj := Children[m2]
			} catch {
				ErrorLevel:=&quot;Cannot access ChildPath Item #&quot; A_Index &quot; -&gt; &quot; A_LoopField, Acc_Error(AccError)
				if Acc_Error()
					throw Exception(&quot;Cannot access ChildPath Item&quot;, -1, &quot;Item #&quot; A_Index &quot; -&gt; &quot; A_LoopField)
				return
			}
		Acc_Error(AccError)
		StringReplace, Cmd, Cmd, %A_Space%, , All
		properties.HasKey(Cmd)? Cmd:=properties[Cmd]:
		try {
			if (Cmd = &quot;Location&quot;)
				AccObj.accLocation(ComObj(0x4003,&amp;x:=0), ComObj(0x4003,&amp;y:=0), ComObj(0x4003,&amp;w:=0), ComObj(0x4003,&amp;h:=0), ChildId)
			  , ret_val := &quot;x&quot; NumGet(x,0,&quot;int&quot;) &quot; y&quot; NumGet(y,0,&quot;int&quot;) &quot; w&quot; NumGet(w,0,&quot;int&quot;) &quot; h&quot; NumGet(h,0,&quot;int&quot;)
			else if (Cmd = &quot;Object&quot;)
				ret_val := AccObj
			else if Cmd in Role,State
				ret_val := Acc_%Cmd%(AccObj, ChildID+0)
			else if Cmd in ChildCount,Selection,Focus
				ret_val := AccObj[&quot;acc&quot; Cmd]
			else
				ret_val := AccObj[&quot;acc&quot; Cmd](ChildID+0)
		} catch {
			ErrorLevel := &quot;&quot;&quot;&quot; Cmd &quot;&quot;&quot; Cmd Not Implemented&quot;
			if Acc_Error()
				throw Exception(&quot;Cmd Not Implemented&quot;, -1, Cmd)
			return
		}
		return ret_val, ErrorLevel:=0
	}
	if Acc_Error()
		throw Exception(ErrorLevel,-1)
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[OmTatSat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33453</uri>
			</author>
			<updated>2021-08-13T08:16:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149241#p149241</id>
		</entry>
</feed>
