Jump to content



odeesuba

Member Since 03 Apr 2011
Offline Last Active Dec 13 2019 11:56 AM
-----

Posts I've Made

In Topic: "The Cell you requested is outside the range of table"

17 March 2013 - 12:11 PM

The gmail settings look wrong check the setting in a post TJ made a while back.


In Topic: Get Local Variables Inside Define to Another?

16 March 2013 - 11:13 AM

Open Threads()
define Open Threads {
    loop(2) {
        thread {
            in new browser {
                Run Fill Form()
            }
        }
    }
}
define Run Fill Form {
    add list to list(%Data, $list from text($Get Variables Set As Local(), ","), "Don\'t Delete", "Local")
    navigate("http://www.ubotstudio.com/playground/simple-form", "Wait")
    wait for element(<first name field>, "", "Appear")
    type text(<first name field>, $list item(%Data, 0), "Standard")
    type text(<last name field>, $list item(%Data, 1), "Standard")
    wait(20)
}
define $Get Variables Set As Local {
    set(#First Name, $spin("\{Joe|Bill|Bob\}"), "Local")
    set(#Last Name, $spin("\{Blogs|Smith|Jones\}"), "Local")
    return("{#First Name},{#Last Name}")
}

 

 


In Topic: How to connect mysql plugin to your server?

28 February 2013 - 07:32 AM

I think you have to allow remote connection in the mysql in your hosting account.

 

Don't know how, but maybe someone else can help.


In Topic: Download Files using the Bot

09 February 2013 - 07:21 AM

define Startup {
    clear list(%Main Menu)
    navigate("http://www.dafont.com/", "Wait")
    wait for element(<class="dl">, 120, "Appear")
    comment("Build Main Menu")
    add list to list(%Main Menu, $scrape attribute(<outerhtml=w"<a href=\"./alpha.php?lettre=*\"> *</a>">, "fullhref"), "Don\'t Delete", "Global")
}
define Go To Main Page {
    navigate($list item(%Main Menu, 0), "Wait")
    wait for browser event("Everything Loaded", "")
    wait for element(<class="dl">, 120, "Appear")
    if($comparison($scrape attribute(<name="fpp">, "value"), "!=", 50)) {
        then {
            change dropdown(<name="fpp">, 50)
            click(<value="Submit">, "Left Click", "No")
            wait for browser event("Page Loaded", 120)
        }
        else {
        }
    }
    set(#Temp URL, $url, "Global")
}
define Go To Sub Page {
    loop while($exists(<src="/img/page_suivante.gif">)) {
        click(<src="/img/page_suivante.gif">, "Left Click", "No")
        wait(10)
        wait for browser event("Page Loaded", 120)
        if($exists(<src="/img/theme_suivant.gif">)) {
            then {
            }
            else {
                wait for element(<src="/img/page_suivante.gif">, 120, "Appear")
            }
        }
        set(#Temp URL, $url, "Global")
        Download From Page()
        navigate(#Temp URL, "Wait")
    }
}
define Download From Page {
    clear list(%URL)
    add list to list(%URL, $scrape attribute(<class="dl">, "href"), "Don\'t Delete", "Global")
    loop while($comparison($list total(%URL), ">", 0)) {
        download file($list item(%URL, 0), "{$special folder("Desktop")}\\fonts\\{$find regular expression($list item(%URL, 0), "(?<=f\\=).*")}.zip")
        remove from list(%URL, 0)
    }
}
Startup()
loop while($comparison($list total(%Main Menu), ">", 0)) {
    Go To Main Page()
    Download From Page()
    comment("Work Around For Freez")
    navigate(#Temp URL, "Wait")
    Go To Sub Page()
    remove from list(%Main Menu, 0)
}

 

 

 

This bot will go through all the main pages, and then the sub pages and download all fonts on every page.

 

 

This will take a lot or resources from the site, so be gentle or they may ban your ip.

 

 


In Topic: Example Popups in New Window - source

02 February 2013 - 05:19 AM

Thanks TJ