--- In [email protected], "entropyreduction"
<alancampbelllists+ya...@...> wrote:
>
[snip]
>
> Ahso. Wasn't doing proper error checking in
> get_accessible_child/get_accessible_children,
> and they wern't returning null string if they failed.
>
> Try comPlugin0.72_100218.zip.
>
> 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?
I don't recall but probably this part of the script never worked. I think you
were trying to get it to return the items in the drop down Edit menu. Most
likely the Edit item on the menubar needs to be invoked somehow before that
menu becomes accessible.
[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.
> >
> > 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
>
> > ------------------
> > 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.
>
> > 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.
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.
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
>
> Thanks for all the testing.
>
You're welcome.
Regards,
Sheri