--- In [email protected], "Sheri" <sheri...@...> wrote:
>
> > and the modified comPluginDemoScriptAccessible.powerpro therein.
>
> [snip]
>
> New version gets:
>
> ERROR: com.get_accessible_child: Bad input params no such children
>
> Error occurred near line 177 of script comPluginDemoScriptAccessible:
> local haoMenuItem = hAO.get_accessible_child(" Edit", "menu item")
>
> Is it any different when you run it?
Oh argh. Yes, I put extra spaces in so I'd be accessing non-existent child.
Should be:
local haoMenuItem = hAO.get_accessible_child("Edit", "menu item")
> [snip (re Search method with ansi strings)]
>
> > That means my retry code isn't doing it's stuff. I'll have to find > some
> > function that accepts only strings.
>
> It's good enough. Remember, this is the same result VBScript gets when
> numbers are sent to the Search function.
Ja, but mine is supposed to be BETTER!!!
> > >
> > > I identified the following issues:
> > > ------------------
> > > Regarding comPluginDemoScriptWMInetworkAdapters
> > >
> > > ERROR: com.method: Can't handle type of returned value
> > >
> > > Error occurred near line 58 of script
> > > comPluginDemoScriptWMInetworkAdapters:
> > > outLine("Adapter Type: " ++ objNwrkAdpt.AdapterType)
> >
> >
> > > (and similar error for numerous other properties in this script)
> >
> > could be coming back VT_EMPTY or VT_NULL, which dll in
> > comPlugin0.72_100218.zip not returns as null string. If still
> > producing error, should now tell you the type that it can't
> > handle
>
>
> No more com errors in the script but there is now a Powerpro error, due to a
> typo.
>
> Line 63 has Drive.deviceid s/b dDrive.deviceid
Oops, will fix.
> >
> > > ------------------
> > > Regarding comPluginDemoScriptFileSysObj
> > >
> > > seems to work, but gets this error
> > >
> > > ERROR: com.release: Object handle, isn't
> > >
> > > Error occurred near line 73 of script comPluginDemoScriptFileSysObj:
> > > objFolderEnum = com.release(objFolderEnum)
> > > ------------------
> >
> > Darn, that was a silly mistake. Fixed.
>
> Script wasn't included in the new zip, but my previous copy now works without
> error.
Good.
> >
> > > Regarding comPluginDemoScriptImageMagick
> >
> > > I couldn't create the object until I restarted Powerpro; I think the
> > > failure was due to the failure to release objects and/or unload the
> > > plugin in the other demo scripts I'd processed before this one.
> >
> > Maybe; let me now if it still gets trouble.
>
> I reprocessed all the other scripts again, then that one, and it didn't recur.
Good.
> One other issue I forgot to mention. In order to test comPluginDemoScriptGFL
> I installed xnView mentioned in the docs but that was not what was required.
> I needed <http://download.xnview.com/GflAxLight-win.zip> and then had to
> manually copy the dll to system32 and register it. And then had to restart
> Powerpro, because com continued to say it couldn't create the object until I
> did. I think once it has previously failed to create an object it isn't
> trying again.
Will fix docs, ta.
> Feel free to include the following script with new release (starts or shows
> Word's object browser -- works with Word 2003, maybe other versions -- I run
> it from a button and find it useful.)
>
> local wordapp=com.create_object("Word.Application")
> wordapp.ShowVisualBasicEditor=1
> win.setfocus(win.handle("=winword"))
> if (not visiblewindow("References -*"))
> win.sendkeys(?"{sinp}{to *}{F2}%T{enter}")
> wordapp.release
> com.unload
> quit
Will incorporate.