StringyLow

u/StringyLow


r/autoit•

Using AutoIt, I'm trying to remove a Table of Contents from an HTML document before I copy the text and save it, but I'm getting a "Subscript used on non-accessible variable" error. Any ideas?

The relevant code:

$bodyContent = _IEGetObjById($wikiIE, "bodyContent")

$bodyContent.removeChild($bodyContent.childNodes[0])

--------------------------------------------------------------

Figured it out. I think the above example works for lists. The code below works for DIVs, etc...

Get a reference to the DOM element to delete and tell the parent node to r

20