--- In [email protected], "entropyreduction" <alancampbelllists+ya...@...> wrote: > > --- In [email protected], "Sheri" <sherip99@> wrote: > > > local haoMenuItem = hAO.get_accessible_child("Edit", "menu item") > > > > Unfortunately with that change to the script, it crashes on this bit: > > > local haoPaste = haoMenuPU.get_accessible_child("Paste\tCtrl+V", "menu > > item") > > Works on my W2K machine, crashes as does yours on XP. > > No idea how to fix that, and fed up with problem for now. >
Maybe you should defer a solution to a later version. Just comment out the offending part of the script. Seems like there are other things now implemented in the com plugin (e.g., error reporting) that could work on an IAccessible, but they don't seem to be plugged-in. Otherwise (if you want to keep investigating).. Not sure what you mean by works (i.e., on W2K)? What is the value of haoPaste when the script runs under W2K? I think there is a problem with your get_accessible_child function when get_accessible_children returns simple elements instead of objects. <http://msdn.microsoft.com/en-us/library/dd318448%28VS.85%29.aspx> ..says in part: When initializing a VARIANT parameter, be sure to specify VT_I4 in the vt member in addition to specifying the child ID value (or CHILDID_SELF) in the lVal member. Regards, Sheri
