<html><head></head><body><div class="ydp8872eb42yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false">
        <div dir="ltr" data-setdir="false">Wondering if anyone might have an insight on this.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">If we add a vb6 listbox to the ROT, and try to access it using GetObject</div><div dir="ltr" data-setdir="false">we can not access any of its methods with an error "Member not found"</div><div dir="ltr" data-setdir="false"><br></div> <div>import win32com.client<br><br>form1 = win32com.client.GetObject('PyComTest.Form1')<br>form1.caption = "hi from vb!!"  # works<br>#form1.Move(0) #pywintypes.com_error: (-2147352573, 'Member not found.', None, None)<br><br>List1 = win32com.client.GetObject('PyComTest.List1')<br>#List1.AddItem('************************') #pywintypes.com_error: (-2147352573, 'Member not found.', None, None)<br>List1.Clear() #pywintypes.com_error: (-2147352573, 'Member not found.', None, None)</div><div><br></div><div>------------------------------------------------------<br></div><div dir="ltr" data-setdir="false"><div dir="ltr" data-setdir="false"><span>as a sanity check both do work from vb script</span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><div>Set form1 = GetObject("PyComTest.Form1")<br>form1.caption = "test"<br>form1.Move(0)<br><br>Set List1 = GetObject("PyComTest.List1")<br>List1.AddItem "********* VBS SAYS HELLO ***************"</div><div><br></div></div></div><div><div>Currently using a vb6 standard exe manually adding objects to the ROT, and python 311 exe to run the scripts externally. <br></div>I have not yet tried with a vb6 activex exe. </div><div><br></div><div dir="ltr" data-setdir="false">Most things do work like textboxes, form methods etc. <br></div></div><div id="ydpb44906d5yahoo_quoted_7042896479" class="ydpb44906d5yahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
            </div>
        </div></body></html>