Kongregate BotD (Open URL)

Post gaming related scripts
User avatar
Masonjar13
Posts: 1555
Joined: 20 Jul 2014, 10:16
Location: Не Россия
Contact:

Kongregate BotD (Open URL)

04 May 2016, 10:09

Retrieves the URL to the BotD game.

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
}
OS: Windows 10 Pro | Editor: Notepad++
My Personal Function Library | Old Build - New Build

Return to “Gaming Scripts (v1)”

Who is online

Users browsing this forum: No registered users and 67 guests