Hi,
I've been using AutoIt off and on for a while, but I'm new to FF.au3, and to this Forum. My questions directly deal with FF.au3, but I can't tell if this thread has become specialized to the point where it only deals with the actual development of FF.au3 now. I hope I will not offend if I post here, and not in General Help and Support.
I have two questions:
First, I have been successful at using _FFSearch to put a selection on text within a web page. This is text that I know will exist there somewhere, and _FFSearch finds it and selects it with no problem. My task is to then select the following 30 or so characters as well, and I don't know what they will be. I do not want to use _FFReadText, and then run string functions on it because the text of the entire page is way too big. The simplest approach seems to me to extend the selection by a fixed number of characters, like 30, or until a newline is encountered. So, my first question/request would be for guidance, if it is possible, in using the built-in functions of FF.au3, like _FFAction, _FFSearch, and _FFReadText in ways or with parameters that I don't know exist to extend the selection or capture the whole line up to a newline.
My Second question follows directly from the first. Having found _FFCmd, I thought that there might be a simple way to modify the Selection so as to extend it. With a few hours research on the gecko DOM (https://developer.mozilla.org/en/gecko_dom_reference) I found "sel.extend(parentNode, offset) (https://developer.mozilla.org/en/DOM/Selection/extend)". I couldn't get this to work, probably because I couldn't provide "parentNode". Am I barking up the wrong tree?
So, my second question/request two fold: a. what would be the way to use _FFCmd to extend the selection by 30 characters? and b. since there is so much that can be done with _FFCmd by going straight to the properties and methods of the browser object, how is that done really? Where do you go for a clear description of the objects, methods and properties of FireFox layed out in such a way that it is clear how to use _FFCmd with them to get into the browser and the document? It seems the Mozilla Developer site has the object structure, but not layed out in a useful way, and it also seems that there are a few pieces missing to the puzzle as to how to use the info with _FFCmd, particularly if outside the scope of "window.content.document".
Once again, I hope I'm not putting this in the wrong place by posting here.
Thanks