@name UVT tester
@inputs 
@outputs [Answer Step3 Step2 Step1 Show]:string Length Step01 Place
@persist Place Step0:string
@trigger 

URL="http://translate.reference.com/translate?query=I%20like%20turtles&src=en&dst=fr"
runOnHTTP(1)
Receive=array()
Receive[1,string]="translateTxt"
Receive[2,string]="                                    "
Receive[3,string]="</div>"
O=owner()
Up=O:keyAttack1()
Down=O:keyAttack2()

interval(1000)

if(httpClk()){
    Step0=httpUrlDecode(httpData())
    StepX=Step0:sub(60000)
    Step01=StepX:find("J'aime les tortues")
    #if(Step01){Sub=Step0:sub(Step01,Step01+1000)}
    
    Step1=StepX:explode(Receive[1,string])[2,string]
    Step2=Step1:explode(Receive[2,string])[2,string]
    Step3=Step2:explode(Receive[3,string])[1,string]
    Answer=Step3:replace("&#39;","'")
    Length=Step0:length()
    
}
if(first()){Place=70000 httpRequest(URL)
}
if(clk()){
    Size=500
    if(Up){Place+=Size}
    if(Down){Place-=Size}

    Show=Step0:sub(Place,Place+Size)
}
#[
    Scopes have been added. If you find any bugs,
    please report them on the forums.

    An option to copy with bbcode color syntax
    highlighting has been added (for use on forums).
    Right click anywhere in the editor to use it.

    Documentation and examples are available at:
    http://wiki.wiremod.com/wiki/Expression_2
    The community is available at http://www.wiremod.com
]#
