I am attempting to select a 'copy-to-clipboard' function within a website that is buried pretty deep within the DOM. As proof of concept, I'd like to have AutoHotKey .click() the anchor element, and then display it's contents in a MsgBox. From the javascript console in IE I can manipulate it just fine using the below code:
t = document.getElementById("id-value")
t.getElementsByTagName("td")[1].click()
These two lines do what I want it to do... when I place them within an AHK script, it just kind of hangs out... below you'll find my AHK script
#SingleInstance, Force
#Include, C:\Users\rspeight\Desktop\AHK_Scripts\IEFuncs.ahk
IE("https://validURL", true)
sleep, 3000
t:= document.getElementByID("2752")
t.getElementByTagName("td")[1].click()
MsgBox, Did this work?
Return
any help would be greatly appreciated.