Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Mon Nov 19, 2018 1:28 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: WWW Read and Download
Thanked: 1 time(s)  Unread post Posted: Fri Oct 26, 2012 10:31 am 
Lifetime VIP Contributor
Lifetime VIP Contributor
User avatar



Joined: Tue Nov 23, 2010 10:51 am
Posts: 212
Location: Pandora
Been thanked: 97 time(s)
Has thanked: 66 time(s)
Contribution Points: 8643
usage:
Code:
// read a web page's source
Plugins.WWW read("URL", "variable")
// download a file from the web
Plugins.WWW download("URL", "filename", "wait")

example macro:
Code:
 begin
     Variable.Set("url", "http://en.wikipedia.org/wiki/Hello_world_program")
     Plugins.WWW read("{url}", "source")
     Variable.Get text length("source", "size")
     Variable.Evaluate (Text)("The source code of  {url} is {size} characters long!", "size")
     Variable.Get substring("source", "0", "120", "source")
     Variable.Evaluate (Text)("It starts with: {source}", "source")
     Variable.Append line("size", "{source}")
     Window.Display message box("{size}", "yes")
     Variable.Set("file", "C:\rat.jpg")
     Variable.Set("url", "http://fc07.deviantart.net/fs70/i/2012/024/b/1/ratfolk_by_targete-d4nhp5c.jpg")
     Plugins.WWW download("{url}", "{file}", "yes")
     System.Launch application("{file}", "no")
 end
please report problems.

get it in the plugin suite, see link in sig

Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group