PDA

View Full Version : FREE DLL: GetHTML


TimeSurfer
04-29-2008, 11:55 PM
GetHTML has only 1 function, and that is to allow you to download the source html for any givin webpage. It outputs to the system's temporary folder so this shouldn't be a problem for vista system's. Then simply parse the information as you normally would in AMS. [Example Provided]

-Statement's-
This is actually a dll I made the other day for an action plugin I'm currently working on, although the dll itself is only a small piece of the plugin I had actually never intended to release the dll seperately, or with an apz preview of one thing the plugin will be capable of with this dll. But hey wth here it is anyway's :lol Enjoy m8's

-Function's-
GetHTML(url)

-Calling Method-
String

[Example]
url = Web.GetURL("Web1");
gHTML = DLL.CallFunction("AutoPlay\\Docs\\getHTML.dll", "GetHTML", "\""..url.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
if gHTML == "OK" then
--do something here
else
--do something else here
end

-Note's-
The included apz example is just one way in which the new action plugin will utilize this dll. In this example using the dll and a little code we are able to extract the page title from the html and use it for creating page history. ;)

Vancete
09-09-2008, 11:50 AM
Thanks!!!
I'm waiting for this action plugin;)

Worm
09-09-2008, 12:27 PM
The year, 2004...

http://www.indigorose.com/forums/showpost.php?p=41271&postcount=11

Just another example of the gold you can find if you mine this forum.

ShadowUK
09-10-2008, 12:51 AM
Thanks!!!
I'm waiting for this action plugin;)

http://img228.imageshack.us/img228/8074/picuq5.png

Even if I love DLL's, It could be done easier. I LOVE TimeSurfers DLL's, So don't think I'm trolling or derailing his thread by posting this.

You know the drill.

XML file goes in AutoPlay Media Studio 7.0/Data/Actions
Lua file gets pasted in the bottom of AutoPlay Media Studio 7.0/Data/Includes/_notification_messages.lua

It doesn't need a DLL.

garage100
09-12-2008, 06:41 PM
I dont understand How to use gHTML.
How can i store the html source in text string.
Please help...