Good morning everyone, I have a question about the "ComObj" (specifically internet explorer).
·
Is it possible to enter properties as variables?
····························································· For example:
f(a, b, c, d) {
Return a.getElementBy%b%(c).%d%
}
····························································· So I could do something like;
a:=ComObjCreate("InternetExplorer.Application")
Msgbox % f(a,"ID","Example1","innerText") ;; show InnerText Example1 (ID)
Msgbox % f(a,"TagName","Example2","value") ;; show Value of Example2 (TagName)
·····························································
Sorry my bad English. Thanks in advance.
"Dynamic" ComObj("InternetExplorer.Application") Topic is solved
Re: "Dynamic" ComObj("InternetExplorer.Application") Topic is solved
Code: Select all
f(a, b, c, d) {
Return a["getElementBy" . b](c)[d]
}
Also you might find that getElementByTagName doesn't exist.
There is only getElementsByTagName.
getElementById will work normally though - but getElementsById might fail.
Recommends AHK Studio
Re: "Dynamic" ComObj("InternetExplorer.Application")
It is the first time that I post in the forum; and the response was very quick! 0.0
Thank you very much!!! ^^
Thank you very much!!! ^^