Code: Select all
getBotD(){
static url:="www.kongregate.com"
wb:=comObjCreate("InternetExplorer.Application")
wb.silent:=1
navToUrl(url,wb)
BotDURL:=wb.document.getElementsByClassName("badge_link")[0].href
wb.quit
return BotDURL
}
navToUrl(url,byRef wb,userAgent=""){
wb.navigate(url,0,0,0,userAgent)
waitLoad(wb)
}
waitLoad(byRef wb){
while(wb.readyState!=4 || wb.document.readyState!="complete" || wb.busy)
sleep 100
}