====== Script Maker ======
This section will focus solely on [[http://playonscripts.com/labs/scriptmaker/|PlayOnScripts.com's Script Maker]].

The Script Maker is a web app that allows everyday people to create simple PlayOn Scripts.

===== Folders =====


===== Video =====
{{youtube>EdVseiYWcMY}}


===== Accessing Variables =====
You can access different variables from different object's properties by inserting a special string. Some plugins create variables that you may need to access.

Format:

%VAR[variable_name]%


{{http://i.imgur.com/P9rJQ.png}}
{{http://i.imgur.com/MPl0d.png}}

===== Plugins =====
==== ShowMsg ====
Adds access to the ShowMsg() method, which creates a painless and simple VirtualFolder() that requires no function to be attached.

Properties
* text - //The message to be displayed//
==== Silverlight ====
Overwrites the default "flash" movie detection, forcing PlayOn to search for "silverlight" movies.
==== DynamicVirtualFolder ====
Adds Dynamic Virtual Folders which, unlike regular Virtual Folders, attempt to refresh the contents of the folder instead of saving it to a cache.
==== VideoParser ====
Connects to a URL and attempts to parse links contained in the HTML data.

Properties
* text - //Displayed name of the Parser (used in ScriptMaker only)//
* function name - //Name of the function that will be generated//
* url - //URL of the website that the Parser will connect to//
* link prefix - //String to be prepended to the link passed in the VideoResource//
* thumb prefix - //String to be prepended to the thumb-nail link passed in the VideoResource//
* start string begin - //String where the Parser should narrow down it's parsing field (leave blank to parse entire page)//
* start string end - //String where the Parser should end it's parsing field (leave blank to parse entire page)//
* link string begin - //String where the video's URL starts//
* link string end - //String where the video's URL ends//
* title string begin - //String where the video's title starts//
* title string end - //String where the video's title ends//
* thumb string begin - //String where the video's thumbNail url starts//
* thumb string end - //String where the video's thumbNail url ends//
* length string begin - //String where the video's length starts//
* length string end - //String where the video's length ends//
* loop string end - //String where the parser should look next in the loop [OPTIONAL]//
* create link - //Should a VirtualFolder link be created to point to the Parser//
* create function - //Should the Parsing Function be created//
* load in root - //Should the Function be called directly//

most of the properties are optional, leave them blank if not needed

=== VideoParser Video Tutorial ===

{{youtube>wIIqYaHtQJQ}}
==== CodeBlock ====
Allows insertion of custom Lua code.
==== LoopVirtualFolder ====
Inserts a for/next loop that points to, and passes the counter as an argument to, a Function.
==== EditRectangle ====
Replaces the values passed to the Rectangle() method.
==== Log ====
Adds access to the Log() method, which writes the contents to a special log file.
==== Variable ====
Creates a variable that allows you to store strings and numbers.
==== SimulateMouse ====
Requests PlayOn to simulate a "Mouse Click" on the player to be captured.

Properties
* X - //X coordinate where PlayOn should "click"//
* Y - //Y coordinate where PlayOn should "click"//
==== LinkList ====
Saves a list of Links passed to it and generates VideoResource() links based on the list.

{{youtube>FLknmpVEuN8}}

==== ScraperWikiVideo ====

Allows remote page scraping via the[[http://scraperwiki.com/|ScraperWiki.com]] website.