Iam new to autohotkey ihave made this script whish work for the username (because it owns an id) but won't work for the passord field i know it's something about an array and i must too choose the desired one
Code: Select all
My_User_Name := "*****"
My_Pass_Word := "****"
web_browser := ComObjCreate("InternetExplorer.Application")
web_browser.Visible := true
web_browser.Navigate("http://www.fieldclimate.com/")
while web_browser.busy ; a while loop is a way to keep the script testing an IF like expression
sleep 100 ; IF web_browser.busy is true then sleep 100 milliseconds
sleep 1000 ; extra time
username_input := web_browser.document.getElementById("id_username")
username_input.value := My_User_Name
password_input := web_browser.document.getElementByName("password").getElementByTagName("INPUT")[7]
password_input.value := My_Pass_Word
MsgBox, That's what iam talking about
web_browser.document.getElementsByTagName("A")[5].click() ;IE4.document.getElementsByClassName("submitBtn")[0].click()
web_browser.document.getElementsById("export_excel").click()
Return