===== Programmer's Guide ===== == Copyright == (C) 2001-2014 BinaryWorks.it\\ Web : http://www.binaryworks.it\\ E-Mail : \\ Documentation Version [4.6] == Disclaimer == The author is in no way responsible for any damage, loss or costs that the installation or use of this program (or attempted installation or use) may cause you or your equipment. Installation and use of this program is entirely at your own risk. This program comes with no guarantees and is provided on an 'as is' basis. The author makes no guarantees on its soundness, reliability or suitability for any given purpose. [[#Copyright|TOP]] == What Is MagicScript == MagicScript Technology is the new way to import information about your favourite movies from the web. In its past version, eXtreme Movie Manager allowed you to import information from two important websites only: imdb.com & dvdempire.com. With this new version, you can, in theory, import information from all the websites you want! [[#Copyright|TOP]] == How To Use MagicScript == MagicScript is a mini programming language that will allow you to write code to obtain information from a HTML page. For this purpose, you can use IF and REPEAT-WHILE statements, and many others. Of course, this language isn't as powerful as other complete languages like Basic etc., but it is sufficiently powerful for eXtreme Movie Manager's goals. A Script won't be simple to build if you don't know any other programming languages. In this case you can use the Ready-Made Scripts available on my web page. == Script Structure == A Script is a normal TXT file composed of INSTRUCTIONS, BLOCKS and STATEMENTS that you can edit with any editor. Every Script file is associated with one movie site, so there will be a Script file for IMDb, another one for dvdempire, etc... The structure of the text is free. This means that you can add notes and comments where you want, because all keywords are written inside sharps, like this : #IF# The basic structure that must be present in every Script is formed by the keyword #WEBQUERY# and the Block #RIGHTPAGEFOUND#. We will discuss their functions in detail later. A Script consists of a series of BLOCKS. Functions & Instruction inside Blocks are executed sequentially until the end of every BLOCK is reached. When you want to import information, MagicScript opens the Script of the Web site you want and proceeds to gathering information as described in the Script. Of course, a script written for IMDb will not work in the dvdempire.com site, and you will probably have an unpredictable end of program. As I have said, the Keyword #WEBQUERY# must be contained in every script to question the DB of a movie website. The BLOCK #RIGHTPAGEFOUND# is vital too. It can check if you have found what you are looking for. All other blocks are optional. For example, if the information retrieved from IMDb is satisfactory to you, but you want all the BoxCover from dvdempire.com, you can write a Full Script for IMDb and a little script for dvdempire with only the BLOCK to take the images : #POSTER#...#ENDPOSTER# Of course there is another way to do it : you can simply check the Cover Option in eXtreme Movie Manager Import Config and you will take only that. == Why Block Structure? == For every item of information imported there is a special Block. This is because if a user wants to import only a particular item, he can uncheck all the others directly inside the software, without modify the script. For example, to take the TITLE of a movie, you should write all of the instructions inside this Block: #MOVIETITLE# ...... ...... #TITLE#=#03# #ONERROR#=*ASK* #ENDMOVIETITLE# Of couse, you can also use only one Block ( #MOVIETITLE# in this case) to write ALL the instructions for gathering all information, but your script will be less configurable by users. [[#Copyright|TOP]] == First, Second and Third Script Generation == From eXtreme Movie Manager 1.0 to 4.8, the engine can handle two different types of Scripts : the OLD, also known as First Generation, and the Latest, or Second Generation. The instructions and functions are the same for both ( 2. has some new ), but the difference is the HTML. When the engine detects a First Generation script, the HTML is "pre-processed". This means that the HTML is rewritten in more lines, how it is if you edit with a normal text editor. The Second Generation doesn't pre-process the HTML (so the speed is increased), but the HTML in most cases is contained in only one line. This means that a Second Generation script cannot work with Divxmanager 0.9, because the HTML is always pre-processed. Divxmanager 1.0 can work with both 1. and 2. because it can "read" the generation with this line : #SCRIPTGENERATION#=2 The 2. also has another Header variable : #REPLACESPACES# This tells the engine what characters must be used to replace spaces in the movie title when querying the Web sites. This is indispensable for sites like ALLOCINE.FR (or the movie will not be found). From eXtreme Movie Manager 5.0, the engine can handle only Third Generation Scripts. The instructions and functions are the same as Second Generation, but there are several new ones to import TV series and to parse the HTML better. In the Third Generation, the HTML is "pre-processed" (like Generation 1), because it is easier and quicker to make scripts in this way. The most uptodate Script Generation is 3 for eXtreme Movie Manager 8.x. [[#Copyright|TOP]] == Constant & Variables == | #WEBQUERY#| Search adress (http://akas.imdb.com/find?s=all&q=#MOVIE#)| | #WEBQUERYID#| Web adress (http://akas.imdb.com/Details?#MOVIEUPDATEID#)| | #MOVIE#| Search Name of the Movie| | #MOVIEUPDATEID#| Last used movie link for import| | #SCRIPTWEBSITE#| Base web adress (http://akas.imdb.com/)| [[#Copyright|TOP]] == Script's Header == | #DATEBUILD#| Date of script's creation or last modification| | #ICONQUALITY#| Quality of the pics| | #LANGUAGESORT#| Language of the web site info| | #MADEBY#| Name of script's creator or modifier| | #NOTE#| Characteristic of script| | #OPTIONS#| 0 = No options or 1 = With options| | #RELEASE#| Minimum XMM release| | #REPLACESPACES#| Characters that must replace the spaces in the movie's title (for query the web)| | #SCRIPTFORACTORS#| TRUE|FALSE| | #SCRIPTGENERATION#| Generation of the script (actual = 3)| | #SCRIPTQUALITY#| Quality of the script| | #TVSERIES#| TRUE|FALSE| | #TYPE#| 0 = Complete or 1 = Only covers or 2 = Only information| | #WEBSITE#| URL of web site| [[#Copyright|TOP]] == Blocks == Important note:\\ There are some #TAKExx# coammands that don't have an own block like #TAKENOTES#. These have to be put in any other existing block. \\ ^Start of Block =>\\ End of Block ^Function(s) ^Description ^ | #ACTORDATA# =>\\ #ENDACTORDATA#| | Contains all functions to get every data of an actor| | | #ADDFILMOGRAPHY#| Get actor's movies| | | #TAKEACTORAWARDS#| Get actor's awards| | | #TAKEACTORBDATE#| Get actor's birthdate| | | #TAKEACTORBIO#| Get actor's biography| | | #TAKEACTORBIRTHNAME#| Get actor's birthname| | | #TAKEACTORBPLACE#| Get actor's birth place| | | #TAKEACTORCOMMENTS#| Get actor's comments| | | #TAKEACTORCOUNTRY#| Get actor's birth country| | | #TAKEACTORCUSTOMx#| Get actor's custom info| | | #TAKEACTORFILM#| Get actor's movie in database| | | #TAKEACTORNAME#| Get actor's real name| | | #TAKEACTORPROFESSION#| Get actor's profession| | | #TAKEACTORSEX#| Get actor's kitu CRM iere| | | #TAKEACTORWEB#| Get actor's website| | | #TAKEACTORWEBID#| Get actor's web id| | | #TAKEACTORWEBPAGE#| Get actor's homepage| | #ACTORS# =>\\ #ENDACTORS#| #TAKEACTOR#| Get all actors of a movies| | #AUDIODVD# =>\\ #ENDAUDIODVD#| #TAKEAUDIODVD#| Get audio of the DVD | | #AWARDS# =>\\ #ENDAWARDS#| #TAKEAWARDS#| Get awards infos | | #CHAPTERS# =>\\ #ENDCHAPTERS#| #TAKECHAPTERS#| Get chapters of the DVD | | #COMMENTS# =>\\ #ENDCOMMENTS#| #TAKECOMMENTS#| Get comments | | #COUNTRY# =>\\ #ENDCOUNTRY#| #TAKECOUNTRY#| Get country | | #CREATEEPISODELIST# =>\\ #ENDCREATEEPISODELIST#| #WRITETITLELIST#| Create a list of all episodes of a tv show| | #CREATEMOVIELIST# =>\\ #ENDCREATEMOVIELIST#| #WRITETITLELIST#| Create a list of all movies that fit the search word| | #CUSTOM1#...#CUSTOM11# =>\\ #ENDCUSTOM1#...#ENDCUSTOM11#| #TAKECUSTOM1#| Get custom infos no. 1 to 11| | | | Fixed names to:| | | | C1 = IMDBTop250| | | | C2 = ReleaseDate| | | | C3 = Editor| | | | C4 = Repository| | | | C5 = Budget| | | | C6 = Revenue| | | | C7 = Awards (number)| | | | C8 = IMDBLink| | | | C9 = AKASTitle| | | | C10 = Goofs| | | | C11 = Trivia| | #DELETETAGS# =>\\ #ENDDELETETAGS#| #DELETEWORD#| Delete tags in here| | #DIRECTOR# =>\\ #ENDDIRECTOR#| #TAKEDIRECTOR#| Get the director| | #DISTRIBUTOR# =>\\ #ENDDISTRIBUTOR#| #TAKEDISTRIBUTOR#| Get the distributor| | #EDITION# =>\\ #ENDEDITION#| #TAKEEDITION#| Get edition info| | #EPISODEAIRDATE# =>\\ #ENDEPISODEAIRDATE#| #TAKEPREMIERED#| Get the episode's premiere date| | #EPISODEDIRECTOR# =>\\ #ENDEPISODEDIRECTOR#| #TAKEDIRECTOR#| Get the episode's director| | #EPISODEPLOT# =>\\ #ENDEPISODEPLOT#| #TAKEPLOT#| Get the episode's plot| | #EPISODESHOWSTARS# =>\\ #ENDEPISODESHOWSTARS#| #TAKEACTORSERIE#| Get episode's actors| | #EPISODESTORY# =>\\ #ENDEPISODESTORY#| #TAKESTORY#| Get the episode's story| | #EPISODETITLE# =>\\ #ENDEPISODETITLE#| #TITLE#| Get the episode's title| | #EPISODEWRITER# =>\\ #ENDEPISODEWRITER#| #TAKEWRITER#| Get the episode's writer| | #FEATURES# =>\\ #ENDFEATURES#| #TAKEFEATURES#| Get the features of a DVD| | #GENRE# =>\\ #ENDGENRE#| #TAKEGENRE#| Get the genre| | #LANGUAGE# =>\\ #ENDLANGUAGE#| #TAKELANGUAGE#| Get the original language of a DVD| | #LOADOPTIONS# =>\\ #ENDLOADOPTIONS#| #SETOPTION#| Load script's options| | #LOADWEBSLOTS# =>\\ #ENDLOADWEBSLOTS#| #LOADWEBSLOT1#| Load web slots (1 to 5)| | #MEDIA# =>\\ #ENDMEDIA#| #TAKEMEDIA#| Get the media type| | #MEDIALANGUAGE# =>\\ #ENDMEDIALANGUAGE#| #TAKEMEDIALANGUAGE#| Get the languages of a DVD| | #MEDIAYEAR# =>\\ #ENDMEDIAYEAR#| #TAKEMEDIAYEAR#| Get the publication year of a DVD| | #MOVIEID# =>\\ #ENDMOVIEID#| #TAKEMOVIEID#| Get the movie's web site id| | #MOVIETITLE# =>\\ #ENDMOVIETITLE#| #GETTITLE#| Get the movie's title| | #MPAA# =>\\ #ENDMPAA#| #TAKEMPAA#| Get the MPAA for a movie| | #MUSIC# =>\\ #ENDMUSIC#| #TAKEMUSIC#| Get the music info of a movie| | #NUMBER# =>\\ #ENDNUMBER#| #TAKENUMBER#| Get number of discs| | NO BLOCK| #TAKECHARACTERINFO#| Get info about each character| | NO BLOCK| #TAKESERIESTATUS#| Get status of the series| | #OFFICIALWEB# =>\\ #ENDOFFICIALWEB#| #TAKEOFFICIALWEB#| Get official web site of a movie| | #ORIGINAL# =>\\ #ENDORIGINAL#| #TAKEORIGINALTITLE#| Get the original title of a movie| | #PACKAGING# =>\\ #ENDPACKAGING#| #TAKEPACKAGING#| Get packaging info of a movie| | #PHOTOGRAPHER# =>\\ #ENDPHOTOGRAPHER#| #TAKEPHOTOGRAPHER#| Get the photographer| | #PLOT# =>\\ #ENDPLOT#| #TAKEPLOT#| Get the plot| | #POSTER# =>\\ #ENDPOSTER#| #TAKEPOSTER#| Get all posters of a movie| | #PREMIERED# =>\\ #ENDPREMIERED#| #TAKEPREMIERED#| Get the premiere date of a movie| | #PRODUCER# =>\\ #ENDPRODUCER#| #TAKEPRODUCER#| Get the producer| | #RATING# =>\\ #ENDRATING#| #TAKERATING#| Get the official rating| | #REGION# =>\\ #ENDREGION#| #TAKEREGION#| Get the regeion of a DVD| | #REVIEWS# =>\\ #ENDREVIEWS#| #TAKEREVIEWS#| Get the reviews of a movie| | #RIGHTPAGEFOUND# =>\\ #ENDRIGHTPAGEFOUND#| #CONDITIONRIGHTPAGE#| Block to analyze if the search returns directly the Movie Page or the List of Movies to show| | #RUNTIME# =>\\ #ENDRUNTIME#| #TAKERUNTIME#| Get the runtime of a movie| | #SCREENDVD# =>\\ #ENDSCREENDVD#| #TAKESCREENDVD#| Get the resolution of a DVD| | #SERIEAWARDS# =>\\ #ENDSERIEAWARDS#| #TAKEAWARDS#| Get the awards for a tv show| | #SERIECOUNTRY# =>\\ #ENDSERIECOUNTRY#| #TAKECOUNTRY#| Get the country of a tv show| | #SERIEGENRE# =>\\ #ENDSERIEGENRE#| #TAKEGENRE#| Get the genre of a tv show| | #SERIELANGUAGE# =>\\ #ENDSERIELANGUAGE#| #TAKELANGUAGE#| Get the language of a tv show| | #SERIEPLOT# =>\\ #ENDSERIEPLOT#| #TAKEPLOT#| Get the plot of a tv show| | #SERIEPOSTER# =>\\ #ENDSERIEPOSTER#| #TAKEPOSTERSERIE#| Get the poster of a tv show| | #SERIEPREMIERED# =>\\ #ENDSERIEPREMIERED#| #TAKEPREMIERED#| Get the premiere date of a tv show| | #SERIESUBGENRE# =>\\ #ENDSERIESUBGENRE#| #TAKESUBGENRE#| Get the subgenre of a tv show| | #SERIETITLE# =>\\ #ENDSERIETITLE#| #ORIGINALTITLE#| Get the title of a tv show| | #SETVARIABLES# =>\\ #ENDSETVARIABLES#| #SETOPTION#| Predefine script's variables| | #SIMILARSHOWS# =>\\ #ENDSIMILARSHOWS#| #SIMILARSHOWS#| Get similar shows| | #STUDIO# =>\\ #ENDSTUDIO#| #TAKESTUDIO#| Get the production studio of a movie| | #SUBGENRE# =>\\ #ENDSUBGENRE#| #TAKESUBGENRE#| Get the subgenre of a movie| | #SUBSTITUTETAGS# =>\\ #ENDSUBSTITUTETAGS#| #SUBSTITUTEWORD#| Substitute tags in here| | #SUBSTITUTEWEBQUERY# =>\\ #ENDSUBSTITUTEWEBQUERY#| #SUBSTITUTEWEBQUERYWORD#| Substitute tags in #MOVIE# in here| | #SUBTITLES# =>\\ #ENDSUBTITLES#| #TAKESUBTITLES#| Get the subtitles of a DVD| | #TAGLINE# =>\\ #ENDTAGLINE#| #TAKETAGLINE#| Get the tag line of a movie| | #TRAILER# =>\\ #ENDTRAILER#| #TAKETRAILER1#| Get the trailer(s) or adress(es) of them| | #UPC# =>\\ #ENDUPC#| #TAKEUPC#| Get the UPC code| | #WRITER# =>\\ #ENDWRITER#| #TAKEWRITER#| Get the writer of a movie| | #YEAR# =>\\ #ENDYEAR#| #TAKEYEAR#| Get the production year of a movie| [[#Copyright|TOP]] == Functions & Instructions == Here is the list of Functions available in MagicScript: [[#ADDACTOR|#ADDACTOR#]]\\ [[#ADDFILMOGRAPHY|#ADDFILMOGRAPHY#]]\\ [[#CHECKACTOREXIST|#CHECKACTOREXIST#]]\\ [[#CHECKVARIABLE|#CHECKVARIABLE#]]\\ [[#CLEARBUFFERACTORS|#CLEARBUFFERACTORS#]]\\ [[#CLEARTAGS|#CLEARTAGS#]]\\ [[#COMPUTECURSOR|#COMPUTECURSOR#]]\\ [[#COMPUTELINE|#COMPUTELINE#]]\\ [[#COMPUTEVAR|#COMPUTEVAR#]]\\ [[#CONDITIONRIGHTPAGE|#CONDITIONRIGHTPAGE#]]\\ [[#DELETEWORD|#DELETEWORD#]]\\ [[#DOWNLOADTRAILER1|#DOWNLOADTRAILER1#...#DOWNLOADTRAILER2#]]\\ [[#IF|#ENDIF#]]\\ [[#FIND|#FIND#]]\\ [[#FINDLINE|#FINDLINE#]]\\ [[#FINDLINEPREVIOUS|#FINDLINEPREVIOUS#]]\\ [[#FINDLINEVAR|#FINDLINEVAR#]]\\ [[#FINDPREVIOUS|#FINDPREVIOUS#]]\\ [[#FINDPREVIOUSVAR|#FINDPREVIOUSVAR#]]\\ [[#FINDVAR|#FINDVAR#]]\\ [[#GETACTORVAR|#GETACTORVAR#]]\\ [[#GETMOVIEVAR|#GETMOVIEVAR#]]\\ [[#GETWEBSITELINE|#GETWEBSITELINE#]]\\ [[#GETTITLE|#GETTITLE#]]\\ [[#GOTO|#GOTO#]]\\ [[#IF|#IF#]]\\ [[#ISNUMERICAL|#ISNUMERICAL#]]\\ [[#LOADCURSOR|#LOADCURSOR#]]\\ [[#LOADWEBSLOT1|#LOADWEBSLOT1#]]\\ [[#OPENNEWWEB|#OPENNEWWEB#]]\\ [[#OPENWEBSLOT1|#OPENWEBSLOT1#...#OPENWEBSLOT5#]]\\ [[#ORIGINALTITLE|#ORIGINALTITLE#]]\\ [[#PUT|#PUT#]]\\ [[#PUTCURSOR|#PUTCURSOR#]]\\ [[#READNEXTLINE|#READNEXTLINE#]]\\ [[#READPREVIOUSLINE|#READPREVIOUSLINE#]]\\ [[#REPEAT|#REPEAT#]]\\ [[#RESETCURSOR|#RESETCURSOR#]]\\ [[#RESTOREMAIN|#RESTOREMAIN#]]\\ [[#OPENNEWWEB|#RESTOREWEB#]]\\ [[#RESTOREWEBSITELINE|#RESTOREWEBSITELINE#]]\\ [[#SAVEEPISODEINFO|#SAVEEPISODEINFO#]]\\ [[#SAVEMOVIE|#SAVEMOVIE#]]\\ [[#RESTOREWEBSITELINE|#SAVEWEBSITELINE#]]\\ [[#SEARCHREPLACEVAR|#SEARCHREPLACEVAR#]]\\ [[#SETCURSOR|#SETCURSOR#]]\\ [[#SETOPTION|#SETOPTION#]]\\ [[#SHOWVAR|#SHOWVAR#]]\\ [[#SIMILARSHOWS|#SIMILARSHOWS#]]\\ [[#STARTDELETETAGS|#STARTDELETETAGS#]]\\ [[#STARTREADWEB|#STARTREADWEB#]]\\ [[#STARTSUBSTITUTETAGS|#STARTSUBSTITUTETAGS#]]\\ [[#STRING|#STRING#]]\\ [[#SUBSTITUTEWEBQUERYWORD|#SUBSTITUTEWEBQUERYWORD#]]\\ [[#SUBSTITUTEWORD|#SUBSTITUTEWORD#]]\\ [[#TAKEXXX|#TAKEACTOR#]]\\ [[#TAKEXXX|#TAKEACTORAWARDS#]]\\ [[#TAKEXXX|#TAKEACTORBDATE#]]\\ [[#TAKEXXX|#TAKEACTORBIO#]]\\ [[#TAKEXXX|#TAKEACTORBIRTHNAME#]]\\ [[#TAKEXXX|#TAKEACTORBPLACE#]]\\ [[#TAKEXXX|#TAKEACTORCOMMENTS#]]\\ [[#TAKEXXX|#TAKEACTORCOUNTRY#]]\\ [[#TAKEXXX|#TAKEACTORCUSTOM1...TAKEACTORCUSTOM2#]]\\ [[#TAKEXXX|#TAKEACTORFILM#]]\\ [[#TAKEXXX|#TAKEACTORNAME#]]\\ [[#TAKEXXX|#TAKEACTORPROFESSION#]]\\ [[#TAKEXXX|#TAKEACTORSERIE#]]\\ [[#TAKEXXX|#TAKEACTORSEX#]]\\ [[#TAKEXXX|#TAKEACTORWEB#]]\\ [[#TAKEXXX|#TAKEACTORWEBID#]]\\ [[#TAKEXXX|#TAKEACTORWEBPAGE#]]\\ [[#TAKEXXX|#TAKEAUDIODVD#]]\\ [[#TAKEXXX|#TAKEAWARDS#]]\\ [[#TAKEXXX|#TAKECHARACTERINFO#]]\\ [[#TAKEXXX|#TAKECHAPTERS#]]\\ [[#TAKEXXX|#TAKECOMMENTS#]]\\ [[#TAKEXXX|#TAKECOUNTRY#]]\\ [[#TAKEXXX|#TAKECUSTOM1#...#TAKECUSTOM11#]]\\ [[#TAKEXXX|#TAKEDEATHDATE#]]\\ [[#TAKEXXX|#TAKEDIRECTLINK#]]\\ [[#TAKEXXX|#TAKEDIRECTOR#]]\\ [[#TAKEXXX|#TAKEDISTRIBUTOR#]]\\ [[#TAKEXXX|#TAKEDVDYEAR#]]\\ [[#TAKEXXX|#TAKEEDITION#]]\\ [[#TAKEXXX|#TAKEFEATURE#]]\\ [[#TAKEXXX|#TAKEGENRE#]]\\ [[#TAKEXXX|#TAKELANGUAGE#]]\\ [[#TAKEXXX|#TAKEMEDIA#]]\\ [[#TAKEXXX|#TAKEMEDIALANGUAGE#]]\\ [[#TAKEXXX|#TAKEMEDIAYEAR#]]\\ [[#TAKEXXX|#TAKEMOVIEID#]]\\ [[#TAKEXXX|#TAKEMPAA#]]\\ [[#TAKEXXX|#TAKEMUSIC#]]\\ [[#TAKEXXX|#TAKENOTES#]]\\ [[#TAKEXXX|#TAKENUMBER#]]\\ [[#TAKEXXX|#TAKEOFFICIALWEB#]]\\ [[#TAKEXXX|#TAKEORIGINAL#]]\\ [[#TAKEXXX|#TAKEPACKAGING#]]\\ [[#TAKEXXX|#TAKEPHOTOGRAPHER#]]\\ [[#TAKEXXX|#TAKEPICTURE#]]\\ [[#TAKEXXX|#TAKEPICTUREINMOVIES#]]\\ [[#TAKEXXX|#TAKEPLOT#]]\\ [[#TAKEXXX|#TAKEPOSTER#]]\\ [[#TAKEXXX|#TAKEPOSTERBACK#]]\\ [[#TAKEXXX|#TAKEPOSTEREPISODE#]]\\ [[#TAKEXXX|#TAKEPOSTERFANART#]]\\ [[#TAKEXXX|#TAKEPOSTERSERIE#]]\\ [[#TAKEXXX|#TAKEPREMIERED#]]\\ [[#TAKEXXX|#TAKEPRODCODE#]]\\ [[#TAKEXXX|#TAKEPRODUCER#]]\\ [[#TAKEXXX|#TAKEQUOTES#]]\\ [[#TAKEXXX|#TAKERATING#]]\\ [[#TAKEXXX|#TAKEREGION#]]\\ [[#TAKEXXX|#TAKEREVIEW#]]\\ [[#TAKEXXX|#TAKERUNTIME#]]\\ [[#TAKEXXX|#TAKESCREENDVD#]]\\ [[#TAKEXXX|#TAKESEASON#]]\\ [[#TAKEXXX|#TAKESERIESTATUS#]]\\ [[#TAKEXXX|#TAKESTORY#]]\\ [[#TAKEXXX|#TAKESTUDIO#]]\\ [[#TAKEXXX|#TAKESUBGENRE#]]\\ [[#TAKEXXX|#TAKESUBTITLE#]]\\ [[#TAKEXXX|#TAKETAGLINE#]]\\ [[#TAKEXXX|#TAKETRAILER1#...#TAKETRAILER2#]]\\ [[#TAKEXXX|#TAKEUPC#]]\\ [[#TAKEWORD|#TAKEWORD#]]\\ [[#TAKEWORDLEN|#TAKEWORDLEN#]]\\ [[#TAKEXXX|#TAKEWRITER#]]\\ [[#TAKEXXX|#TAKEYEAR#]]\\ [[#TITLE|#TITLE#]]\\ [[#TRIM|#TRIM#]]\\ [[#REPEAT|#WHILE#]]\\ [[#WRITETITLELIST|#WRITETITLELIST#]]\\ [[#WRITEWARNING|#WRITEWARNING#]]\\ [[#Copyright|TOP]] == All Functions == == ADDACTOR == #ADDACTOR#\\ Adds the Name of an Actor to Database.\\ Syntax:\\ #ADDACTOR#=#??#\\ Parameters:\\ #??# Required. The Variable where the NAME of the Actor is stored.\\ Examples:\\ 1. #ADDACTOR#=#03#\\ This example takes the Name of Actor that is stored on the #03# variable. You can use this function several time to add all actors to Database.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == ADDFILMOGRAPHY == #ADDFILMOGRAPHY#\\ Adds a Movie to Actor's data.\\ Syntax:\\ #ADDFILMOGRAPHY#=#??#\\ Parameters:\\ #??# Required. The Variable where the INFO of the Movie is stored.\\ Examples:\\ 1. #ADDFILMOGRAPHY#=#03#\\ This example takes the Info of a Movie that is stored on the #03# variable. You can use this function several time to add all movies.\\ Remarks:\\ The Info must have following structure: TITLE (YEAR)§Link to Movie§Script name\\ Example: Avatar (2009)§http://www.imdb.com/title/tt0499549/§IMDB.COM (Complete).txt\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == CHECKACTOREXIST == #CHECKACTOREXIST#\\ Checks if the Name of an Actor is already in Database.\\ Syntax:\\ #CHECKACTOREXIST#=#?1#,#?2#\\ Parameters:\\ #?1# Required. The Variable where the RESULT is stored. 0 or Actor's ID in database.\\ #?2# Required. The Variable where the NAME of the Actor is stored.\\ Examples:\\ 1. #CHECKACTOREXIST#=#03#,#04#\\ This example takes the Name of Actor that is stored on the #04# variable and returns the result on the #03# variable.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == CHECKVARIABLE == #CHECKVARIABLE#\\ Prepares a VARIABLE for #DELETETAGS#, #CLEARTAGS# or #SUBSTITUTETAGS#.\\ Syntax:\\ #CHECKVARIABLE#=#??#\\ Parameters:\\ #??# Required. The Variable that should be used.\\ Examples:\\ 1. #CHECKVARIABLE#=#03#\\ This example takes the #03# variable and prepares it for #DELETETAGS#, #CLEARTAGS# or #SUBSTITUTETAGS#.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == CLEARBUFFERACTORS == #CLEARBUFFERACTORS#\\ Clears all data of a previously import of an Actor.\\ Syntax:\\ #CLEARBUFFERACTORS#\\ Parameters:\\ none\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == CLEARTAGS == #CLEARTAGS#\\ Clears all tags inside a variable.\\ Syntax:\\ #CLEARTAGS#=#??#\\ Parameters:\\ #??# Required. The Variable that must be cleared.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == COMPUTECURSOR == #COMPUTECURSOR#\\ Makes a SUM or SUBTRACTION to the CURSOR variable.\\ Syntax:\\ #COMPUTECURSOR#=±number\\ Parameters:\\ ± Required. Is the operation you want make.\\ number Required. Is the Value to SUM or SUBTRACT\\ Examples:\\ 1. #COMPUTECURSOR#=+2\\ This Example sum to the value of CURSOR "2".\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == COMPUTELINE == #COMPUTELINE#\\ Makes a SUM or SUBTRACTION to the actual.line position of the HTML code.\\ Syntax:\\ #COMPUTELINE#=±number\\ Parameters:\\ ± Required. Is the operation you want to make.\\ number Required. Is the Value to SUM or SUBTRACT\\ Examples:\\ 1. #COMPUTELINE#=+2\\ This Example adds 2 to the actual line of the HTML code.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == COMPUTEVAR == #COMPUTEVAR#\\ Makes a SUM or SUBTRACTION to a variable that contains a numerical variable.\\ Syntax:\\ #COMPUTEVAR#=#??#±number\\ Parameters:\\ #??# Required. The numerical Variable that should be used for operation.\\ ± Required. Is the operation you want to make.\\ number Required. Is the Value to SUM or SUBTRACT\\ Examples:\\ 1. #COMPUTEVAR#=#10#+2\\ This Example adds 2 to the variable #10#.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == CONDITIONRIGHTPAGE == #CONDITIONRIGHTPAGE#\\ Specifies if you have found directly the page of a movie.\\ Syntax:\\ #CONDITIONRIGHTPAGE# #?1# == #?2#\\ Parameters:\\ #?1# Required. The first variable to compare.\\ #?2# Required. The second variable to compare.\\ == Required. The Operator. It can assume this value :\\ "==" this means "Equal To"\\ "<>" this means "Different to"\\ Examples:\\ 1. #CONDITIONRIGHTPAGE# #03#<>#04#\\ Here the page you found is directly of the movie if value of #03# variable is different from value of #04#.\\ Remarks:\\ You can use with this function only Variables, so if you need to compare a variable with a string, first you must #PUT# you string in another variable and then compare.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == DELETEWORD == #DELETEWORD#\\ Delete defined words inside a variable.\\ Syntax:\\ #DELETEWORD#=text\\ Parameters:\\ text Required. Any String that has to be deleted from a Variable.\\ Remarks:\\ Variable has to be prepared with #CHECKVARIABLE#. Function must be inside #DELETETAGS# block.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == DOWNLOADTRAILER1 == #DOWNLOADTRAILER1#\\ Downloads the Link of a Trailer or the Link to the web page containing the \\ Trailer.\\ Syntax:\\ #DOWNLOADTRAILER1#=#?1##?2#\\ Parameters:\\ #?1# Required. Link of the Trailer.\\ #?2# Optional. Extension of the Trailer.\\ Examples:\\ 1. #DOWNLOADTRAILER1#=#03#\\ This example stores the Link to the page of the Trailer in #03# variable.\\ 2. #DOWNLOADTRAILER1#=#03##04#\\ This example stores the Link to the Trailer in #03# variable and the file extension in #04# variable.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == IF == #IF# ... #ENDIF#\\ The Engine can supports the IF Statement, but you can't make an IF statement inside another IF. It Means that you can use any IF you want but each one must be used separatly; however, you can put an IF Statement inside a REPEAT...WHILE and vice-versa. This release of MagicScript doesn't support the "ELSE" statement, but you have the #GOTO# Function that will help you in many different cases. The Structure is: \\ #IF# #?1# == #?2#\\ .....\\ .....\\ #ENDIF#\\ The IF compares two VARIABLES, and supports only these variables. If the result of the comparison is positive, Engine will execute the instruction inside IF-ENDIF, else all instructions will be ignored.This means that if you want to compare two strings, you must put it on empty VARIABLES first and then use the IF Statement. This isn't a big limitation for this kind of application.\\ Operators\\ Operators you can use with IF Statement:\\ "==" that means "Equal To", you can use it for strings and number comparisons\\ "<>" that means "Different", you can use it for strings and number comparisons\\ "<<" that means "Minor" , this makes a comparison only between numbers\\ ">>" that means "Major" , this makes a comparison only between numbers\\ It isn't supported any operator like <= or => because these operators are useless.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == FIND == #FIND#\\ Search for a string only in the CURRENT LINE of HTML page.\\ Syntax:\\ #FIND#=text#??##ONERROR#=*options*\\ Parameters:\\ text Required. The text to find in the HTML.\\ #??# Required. The number of Variable where Function store the result of the Search.\\ If the text is found, the variable will contain his position , if no text is found, value 0\\ #ONERROR#=*options* Optional. In the options you can specify what Engine must do in case of ERROR of the Function:\\ STOP -> Will terminate the BLOCK where is the Function.\\ ASK -> Will show you the message of error and the script-line where is located\\ OK -> Will ignore the error and go on with executing the others functions\\ Examples:\\ 1. #FIND#=#12##ONERROR#=*ASK*</nowiki>\\ <nowiki>2. #FIND#=<title> #12##ONERROR#=*OK*</nowiki>\\ Note that these two functions search for different strings! the first searches "<title>", the Second the String "<title> " .Be careful! <nowiki>This Instruction is similar to the #FINDLINE#, but searches for the text only in the current line of HTML.</nowiki>\\ Remarks:\\ This function writes also on the main variable CURSOR the position where the string you search starts. remember that all other functions start to search text from the position of the CURSOR variable.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == FINDLINE == <nowiki>#FINDLINE#</nowiki>\\ Search downwards for a string in a HTML page.\\ Syntax:\\ <nowiki>#FINDLINE#=text#??##ONERROR#=*options*</nowiki>\\ Parameters:\\ text Required. The text to find in the HTML.\\ <nowiki>#??# Required. The number of Variable where Function store the result of the Search.</nowiki>\\ If the text is found, the variable will contain value 1 , if no text is found, value 0\\ <nowiki>#ONERROR#=*options* Optional. In the options you can specify what Engine must do in case of ERROR of the Function:</nowiki>\\ STOP -> Will terminate the BLOCK where is the Function.\\ ASK -> Will show you the message of error and the script-line where is located\\ OK -> Will ignore the error and go on with executing the others functions\\ Examples:\\ <nowiki>1. #FINDLINE#=<title>#12##ONERROR#=*STOP*</nowiki>\\ <nowiki>2. #FINDLINE#=<title> #01##ONERROR#=*ASK*</nowiki>\\ Note that these two functions search for different strings! the first search "<title>", Second the String "<title> " .Be careful!\\ <nowiki>This Instruction is useful when you want to search for a particular string in the whole HTML , but you don't know where it is. It is different from the #FIND# function that searches for a string only in the CURRENT Line of HTML. To know the the position in the string where is text you are looking for begin, you can use the CURSOR Variable.</nowiki>\\ Remarks:\\ This function writes on the main variable CURSOR the position where the string you are searching starts. Remember that all others functions start to search text from the position of the CURSOR variable!.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == FINDLINEPREVIOUS == <nowiki>#FINDLINEPREVIOUS#</nowiki>\\ Search upwards for a string in a HTML page.\\ Syntax:\\ <nowiki>#FINDLINEPREVIOUS#=text#??##ONERROR#=*options*</nowiki>\\ Parameters:\\ text Required. The text to find in the HTML.\\ <nowiki>#??# Required. The number of Variable where Function store the result of the Search.</nowiki>\\ If the text is found, the variable will contain value 1 , if no text is found, value 0\\ <nowiki>#ONERROR#=*options* Optional. In the options you can specify what Engine must do in case of ERROR of the Function:</nowiki>\\ STOP -> Will terminate the BLOCK where is the Function.\\ ASK -> Will show you the message of error and the script-line where is located\\ OK -> Will ignore the error and go on with executing the others functions\\ Examples:\\ <nowiki>1. #FINDLINEPREVIOUS#=<title>#12##ONERROR#=*STOP*</nowiki>\\ <nowiki>2. #FINDLINEPREVIOUS#=<title> #01##ONERROR#=*ASK*</nowiki>\\ Note that these two functions search for different strings! the first search "<title>", Second the String "<title> " .Be careful!\\ This Instruction is useful when you want to search for a particular string in the whole HTML , but you don't know where it is. It is different from the \\ <nowiki>#FINDPREVIOUS#</nowiki>\\ function that searches for a string only in the CURRENT Line of HTML. To know the the position in the string where is text you are looking for begin,\\ you can use the CURSOR Variable.\\ Remarks:\\ This function writes on the main variable CURSOR the position where the string you are searching starts. Remember that all others functions start to search text from the position of the CURSOR variable!.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == FINDLINEVAR == <nowiki>#FINDLINEVAR#</nowiki>\\ Search downwards for a variable in a HTML page.\\ Syntax:\\ <nowiki>#FINDLINEVAR#=#?1#?2##ONERROR#=*options*</nowiki>\\ Parameters:\\ <nowiki>#?1# Required. The variable containing the text to find in the HTML.</nowiki>\\ <nowiki>#?2# Required. The number of Variable where Function store the result of the Search.</nowiki>\\ If the text is found, the variable will contain value 1 , if no text is found, value 0\\ <nowiki>#ONERROR#=*options* Optional. In the options you can specify what Engine must do in case of ERROR of the Function:</nowiki>\\ STOP -> Will terminate the BLOCK where is the Function.\\ ASK -> Will show you the message of error and the script-line where is located\\ OK -> Will ignore the error and go on with executing the others functions\\ Examples:\\ <nowiki>1. #FINDLINEVAR#=#11##12##ONERROR#=*STOP*</nowiki>\\ <nowiki>This Instruction is useful when you want to search for a particular string in the whole HTML , but you don't know where it is. It is different from the #FIND# function that searches for a string only in the CURRENT Line of HTML. To know the the position in the string where is text you are looking for begin, you can use the CURSOR Variable.</nowiki>\\ Remarks:\\ This function writes on the main variable CURSOR the position where the string you are searching starts. Remember that all others functions start to search text from the position of the CURSOR variable!.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == FINDPREVIOUS == <nowiki>#FINDPREVIOUS#</nowiki>\\ Search for a string backwards only in the CURRENT LINE of HTML page.\\ Syntax:\\ <nowiki>#FINDPREVIOUS#=text#??##ONERROR#=*options*</nowiki>\\ Parameters:\\ text Required. The text to find in the HTML.\\ <nowiki>#??# Required. The number of Variable where Function store the result of the Search.</nowiki>\\ If the text is found, the variable will contain his position , if no text is found, value 0\\ <nowiki>#ONERROR#=*options* Optional. In the options you can specify what Engine must do in case of ERROR of the Function:</nowiki>\\ STOP -> Will terminate the BLOCK where is the Function.\\ ASK -> Will show you the message of error and the script-line where is located\\ OK -> Will ignore the error and go on with executing the others functions\\ Examples:\\ <nowiki>1. #FINDPREVIOUS#=<title>#12##ONERROR#=*ASK*</nowiki>\\ <nowiki>2. #FINDPREVIOUS#=<title> #12##ONERROR#=*OK*</nowiki>\\ Note that these two functions search for different strings! the first searches "<title>", the Second the String "<title> " .Be careful!\\ <nowiki>This Instruction is similar to the #FINDLINE#, but searches for the text only in the current line of HTML.</nowiki>\\ Remarks:\\ This function writes also on the main variable CURSOR the position where the string you search starts. remember that all other functions start to search text from the position of the CURSOR variable.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == FINDPREVIOUSVAR == <nowiki>#FINDPREVIOUSVAR#</nowiki>\\ Search backwards for a variable only in the CURRENT LINE of HTML page.\\ Syntax:\\ <nowiki>#FINDPREVIOUSVAR#=#?1##?2##ONERROR#=*options*</nowiki>\\ Parameters:\\ <nowiki>#?1# Required. The variable containing the text to find in the HTML.</nowiki>\\ <nowiki>#?2# Required. The number of Variable where Function store the result of the Search.</nowiki>\\ If the text is found, the variable will contain his position , if no text is found, value 0\\ <nowiki>#ONERROR#=*options* Optional. In the options you can specify what Engine must do in case of ERROR of the Function:</nowiki>\\ STOP -> Will terminate the BLOCK where is the Function.\\ ASK -> Will show you the message of error and the script-line where is located\\ OK -> Will ignore the error and go on with executing the others functions\\ Examples:\\ <nowiki>1. #FINDPREVIOUSVAR#=#11##12##ONERROR#=*ASK*</nowiki>\\ <nowiki>This Instruction is similar to the #FINDPREVIOUS#, but searches for the text </nowiki>\\ only in the current line of HTML.\\ Remarks:\\ This function writes also on the main variable CURSOR the position where the string you search starts. remember that all other functions start to search text from the position of the CURSOR variable.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == FINDVAR == <nowiki>#FINDVAR#</nowiki>\\ Search for a variable only in the CURRENT LINE of HTML page.\\ Syntax:\\ <nowiki>#FIND#=#?1##?2##ONERROR#=*options*</nowiki>\\ Parameters:\\ text Required. The text to find in the HTML.\\ <nowiki>#??# Required. The number of Variable where Function store the result of the Search.</nowiki>\\ If the text is found, the variable will contain his position , if no text is found, value 0\\ <nowiki>#ONERROR#=*options* Optional. In the options you can specify what Engine must do in case of ERROR of the Function:</nowiki>\\ STOP -> Will terminate the BLOCK where is the Function.\\ ASK -> Will show you the message of error and the script-line where is located\\ OK -> Will ignore the error and go on with executing the others functions\\ Examples:\\ <nowiki>1. #FIND#=<title>#12##ONERROR#=*ASK*</nowiki>\\ <nowiki>This Instruction is similar to the #FINDLINE#, but searches for the text only in the current line of HTML.</nowiki>\\ Remarks:\\ This function writes also on the main variable CURSOR the position where the string you search starts. remember that all other functions start to search text from the position of the CURSOR variable.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == GETACTORVAR == <nowiki>#GETACTORVAR#</nowiki>\\ Take the Actor variables directly from database.\\ <nowiki>Syntax: #GETACTORVAR#=#??#=%WEBID%</nowiki>\\ Parameters:\\ <nowiki>#??# Required. The Variable where put the data taken from the Database.</nowiki>\\ %WEBID% Required. Example, this is for take the WebID of the actor .\\ Examples:\\ <nowiki>1. #GETACTORVAR#=#12#=%WEBID%</nowiki>\\ This Instruction is used to know if an Actor is alread on the Database, especially for IMDB).\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == GETMOVIEVAR == <nowiki>#GETMOVIEVAR#</nowiki>\\ Put Movie Name in a variable.\\ <nowiki>Syntax: #GETMOVIEVAR#=#??#=%MOVIE%</nowiki>\\ Parameters:\\ <nowiki>#??# Required. The Variable where the title movie must be loaded.</nowiki>\\ %MOVIE% Required. The Title passed from XMM.\\ Examples:\\ <nowiki>1. #GETMOVIEVAR#=#12#=%MOVIE%</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == GETTITLE == <nowiki>#GETTITLE#</nowiki>\\ Put the title of the movie in a variable, useful if you need the movie's title \\ in the script.\\ Syntax:\\ <nowiki>#GETTITLE#=#??#</nowiki>\\ Parameters:\\ <nowiki>#??# Required. The Variable where the title movie must be loaded.</nowiki>\\ Examples:\\ <nowiki>1. #GETTITLE#=#03#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == GETWEBSITELINE == <nowiki>#GETWEBSITELINE#</nowiki>\\ Function to know the Current Text Line number of the Website HTML\\ Syntax:\\ <nowiki>#GETWEBSITELINE#=#??#</nowiki>\\ Parameters:\\ <nowiki>#??# Required. The Variable where the number must be loaded.</nowiki>\\ Examples:\\ <nowiki>1. #GETWEBSITELINE#=#03#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == GOTO == <nowiki>#GOTO#</nowiki>\\ <nowiki>Helping you to write powerful scripts, the #GOTO# Instruction is at your disposal. When the Engine will find this, the execution will jump to the LABEL specified.</nowiki>\\ The Structure of this Instruction is :\\ <nowiki>#GOTO#=LABEL</nowiki>\\ Where label is a LABEL in another line of the Script.\\ A LABEL statement is composed by a colon followed by text: ":LABEL1"\\ When you want to go to this label, you must use this instruction:\\ <nowiki>"#GOTO#=LABEL1"</nowiki>\\ <nowiki>It is important not to put the colons in the #GOTO# instruction! : </nowiki>\\ <nowiki>"#GOTO#=:LABEL1" and to cancel all spaces to the right! If you write a goto like this:</nowiki> <nowiki>"#GOTO#=LABEL1 ", the Engine will not find the Label and will report to you an error!</nowiki>\\ <nowiki>Particular attention must be payed when you use #GOTO# inside REPEAT..WHILE Statement:</nowiki>\\ Example\\ Good Code:\\ <nowiki>In this part of code everything is OK, the #GOTO# Instruction points to a LABEL that is out of any IF and REPEAT.</nowiki>\\ <code> #REPEAT# #FIND#=Href="#10# #ONERROR#=*OK* #IF# #10# == #09# #GOTO#=CAST2 #ENDIF# #FIND#=>#01# #ONERROR#=*ASK* #FIND#=<#02# #ONERROR#=*ASK* #TAKEWORD#=#03#,#01#,#02# #TAKEACTOR#=#03# #WHILE# #09#<>#10# :CAST2 </code> BAD Code :\\ <nowiki>This code is BADLY written, because the #GOTO# Instruction points to a LABEL inside another REPEAT! At this time of development, MagicScript will not warn you this error, and the result of this script ARE UNPREDICTABLE!</nowiki>\\ <code> #REPEAT# #FIND#=Href="#10# #ONERROR#=*OK* #IF# #10# == #09# #GOTO#=CAST2 #ENDIF# #TAKEWORD#=#03#,#01#,#02# #TAKEACTOR#=#03# #WHILE# #09#<>#10# #REPEAT# #FIND#=Href="#10# #ONERROR#=*OK* :CAST2 #TAKEWORD#=#03#,#01#,#02# #TAKEACTOR#=#03# #WHILE# #09#<>#10# </code> [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == ISNUMERICAL == <nowiki>#ISNUMERICAL#</nowiki>\\ Checks if a variable is numerical.\\ Syntax:\\ <nowiki>#ISNUMERICAL#=#?1#,#?2#</nowiki>\\ Parameters:\\ <nowiki>#?1# Required. The Variable to be checked.</nowiki>\\ <nowiki>#?2# Required. The Result of the check. 1=numeric, 0=alphanumeric</nowiki>\\ Examples:\\ <nowiki>1. #ISNUMERICAL#=#01#,#02#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == LOADCURSOR == <nowiki>#LOADCURSOR#</nowiki>\\ Loads a value in the Cursor Variable.\\ Syntax:\\ <nowiki>#LOADCURSOR#=#??#</nowiki>\\ Parameters:\\ <nowiki>#??# Required. The Variable where the value is stored.</nowiki>\\ Examples:\\ <nowiki>1. #LOADCURSOR#=#03#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == LOADWEBSLOT1 == <nowiki>#LOADWEBSLOT1#</nowiki>\\ Sets a previously loaded web page as active.\\ Syntax:\\ <nowiki>#LOADWEBSLOT1#</nowiki>\\ Parameters:\\ none\\ Examples:\\ <nowiki>1. #LOADWEBSLOT1#</nowiki>\\ Remarks:\\ <nowiki>Five Webslots are available: #LOADWEBSLOT1# to #LOADWEBSLOT5#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == OPENNEWWEB == <nowiki>#OPENNEWWEB#</nowiki>\\ <nowiki>Particular attention must be focused on this Special Function #OPENNEWWEB#. </nowiki>\\ <nowiki>Basically MagicScript Works with the HTML specified on #WEBQUERY# when you find directly the page of a movie, or another HTML you select from the LIST of MOVIE FOUND. With this instruction, you can OPEN and work to another HTML Until #RESTOREWEB# instruction is reached. This is particularly useful when some information (like plot in imdb.com, box covers in dvdempire.com) is stored in a different page. It is important that you SAVE the position of the CURSOR before using this function, so that you will find it when you go back to the original HTML.</nowiki>\\ Example:\\ <code> #OPENNEWWEB#=#50# #REPEAT# #FINDLINE#=http://posters.imdb.com#12##ONERROR#=*STOP* #FIND#=http://posters.imdb.com#01# #ONERROR#=*STOP* #IF# #12#<>#09# #FIND#="#02# #ONERROR#=*STOP* #TAKEWORD#=#03#,#01#,#02# #STRING#=#04#=h#03# #TAKEPOSTER#=#04# #ENDIF# #WHILE# #09#<>#12# #RESTOREWEB# </code> <nowiki>This is a part of imdb's Script. In the variable #50# is stored the URL of the page that contains the posters.</nowiki>\\ <nowiki>The Engine with #OPENNEWWEB# re-initializes itself. To start reading the new <nowiki>HTML, set the first line at the top (without #STARTREADWEB# function) and set <nowiki>CURSOR to 1. The functions inside #OPENNEWWEB# are executed sequentially until <nowiki>#RESTOREWEB# is reached.</nowiki>\\ <nowiki>NOTE: You can use this function where you want in the script and as many times as you want, BUT you can't use it inside another #OPENNEWWEB#-#RESTOREWB#.</nowiki>\\ You can have:\\ <nowiki>#OPENNEWWEB#=#50#</nowiki>\\ .....\\ <nowiki>#RESTOREWEB#</nowiki>\\ ....\\ <nowiki>#OPENNEWWEB#=#50#</nowiki>\\ .....\\ <nowiki>#RESTOREWEB#</nowiki>\\ But it is not correct to write:\\ <nowiki>#OPENNEWWEB#=#50#</nowiki>\\ ......\\ <nowiki>#OPENNEWWEB#=#50#</nowiki>\\ ......\\ <nowiki>#RESTOREWEB#</nowiki>\\ ......\\ <nowiki>#RESTOREWEB#</nowiki>\\ The result of this Script are UNPREDICTABLE\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == OPENWEBSLOT1 == <nowiki>#OPENWEBSLOT1#</nowiki>\\ Loads a web page into a slot.\\ Syntax:\\ <nowiki>#OPENWEBSLOT1#=#??#</nowiki>\\ Parameters:\\ <nowiki>#??# Required. The Variable containing the address of the web page.</nowiki>\\ Examples:\\ <nowiki>1. #OPENWEBSLOT1#=#03#</nowiki>\\ Remarks:\\ <nowiki>Five Webslots are available: #OPENWEBSLOT1# to #OPENWEBSLOT5#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == ORIGINALTITLE == <nowiki>#ORIGINALTITLE#</nowiki>\\ Takes the Original Title.\\ Syntax:\\ <nowiki>#ORIGINALTITLE#=#??#</nowiki>\\ Parameters:\\ <nowiki>#??# Required. The Variable where to store the Original Title.</nowiki>\\ Examples:\\ <nowiki>1. #ORIGINALTITLE#=#03#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == PUT == <nowiki>#PUT#</nowiki>\\ Puts a text or a number into a variable.\\ Syntax:\\ <nowiki>#PUT#=Text#??#</nowiki>\\ Parameters:\\ Text Required. The Text (or number) you want put into the variable.\\ <nowiki>#??# Required. The Variable where put the text.</nowiki>\\ Examples:\\ <nowiki>1. #PUT#=mytext#02#</nowiki>\\ <nowiki>This Example put in the Variable #02# the text "mytext".</nowiki>\\ Remarks:\\ <nowiki>Remember that your text must be inside "="<-and first->"#" : the function </nowiki>\\ <nowiki>#PUT#=text#02# is different from #PUT#=text #02# !.</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == PUTCURSOR == <nowiki>#PUTCURSOR#</nowiki>\\ Puts the value of CURSOR into a variable.\\ Syntax:\\ <nowiki>#PUTCURSOR#=#??#</nowiki>\\ Parameters:\\ <nowiki>#??# Required. The Variable where put the value of CURSOR.</nowiki>\\ Examples:\\ <nowiki>1. #PUTCURSOR#=#01#</nowiki>\\ <nowiki>This Example puts the CURSOR into #01# variable.</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == READNEXTLINE == <nowiki>#READNEXTLINE#</nowiki>\\ Read the next line of HTML and set the CURSOR Variable to 1;\\ Syntax:\\ <nowiki>#READNEXTLINE#</nowiki>\\ <nowiki>#READNEXTLINE#=1</nowiki>\\ Parameters:\\ =1 Optional\\ Examples:\\ <nowiki>1. #READNEXTLINE#</nowiki>\\ Reads the next line of the HTML source.\\ <nowiki>2. #READNEXTLINE#=1</nowiki>\\ Reads the next non-empty line of the HTML source. The optional parameter =1 skips all empty lines and lines that have only (white) spaces.\\ Remarks:\\ <nowiki>This instruction is useful when you have found a particular thing with #FINDLINE# instruction and you want analyze the text line by line.</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == READPREVIOUSLINE == <nowiki>#READPREVIOUSLINE#</nowiki>\\ Read the previous line of HTML and set the CURSOR Variable to 1;\\ Syntax:\\ <nowiki>#READPREVIOUSLINE#</nowiki>\\ <nowiki>#READPREVIOUSLINE#=1</nowiki>\\ Parameters:\\ =1 Optional\\ Examples:\\ <nowiki>1. #READPREVIOUSLINE#</nowiki>\\ Reads the previous line of the HTML source.\\ <nowiki>2. #READPREVIOUSLINE#=1</nowiki>\\ Reads the previous non-empty line of the HTML source. The optional parameter =1 skips all empty lines and lines that have only (white) spaces.\\ Remarks:\\ <nowiki>This instruction is useful when you have found a particular thing with #FINDLINE# instruction and you want analyze the text line by line.</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == REPEAT == <nowiki>#REPEAT#...#WHILE#</nowiki>\\ The Engine can support REPEAT...WHILE Statement, but you can't make a REPEAT statement inside another REPEAT. It Means that you can use any REPEAT you want but each one must be used separatly. Inside a REPEAT, you can put all the instructions you want, also IF Statements (and vice-versa).\\ The Structure is:\\ <nowiki>#REPEAT#</nowiki>\\ .....\\ .....\\ <nowiki>#WHILE# #??# == #??#</nowiki>\\ The WHILE compares two VARIABLES, and supports only these variables. If the result of the comparison is positive, Engine will execute the cycle of instructions again, otherwise it will terminate the REPEAT-WHILE Statement. If you want to compare two strings, you must first put them on empty VARIABLES and then use the WHILE. This isn't a big limitation for this kind of application.\\ Operators:\\ Operators you can use with the WHILE Statement are:\\ " == " that means "Equal To", you can use it for strings and number comparison\\ "<>" that means "Different", you can use it for strings and number comparison\\ <nowiki>You must be careful when you use a #GOTO# Instruction! See Example :</nowiki>\\ Good Code :\\ <nowiki>In this part of code everything is OK, the #GOTO# Instruction points to a LABEL that is out of any IF and REPEAT.</nowiki>\\ <code> #REPEAT# #FIND#=Href="#10# #ONERROR#=*OK* #IF# #10# == #09# #GOTO#=CAST2 #ENDIF# #FIND#=>#01# #ONERROR#=*ASK* #FIND#=<#02# #ONERROR#=*ASK* #TAKEWORD#=#03#,#01#,#02# #TAKEACTOR#=#03# #WHILE# #09#<>#10# :CAST2 <code> BAD Code:\\ <nowiki>This code is BADLY written, because the #GOTO# Instruction points to a LABEL that is inside another REPEAT! At this time of development, MagicScript will not warn you of this error, and the result of this script ARE UNPREDICTABLE!</nowiki>\\ <code> #REPEAT# #FIND#=Href="#10# #ONERROR#=*OK* #IF# #10# == #09# #GOTO#=CAST2 #ENDIF# #TAKEWORD#=#03#,#01#,#02# #TAKEACTOR#=#03# #WHILE# #09#<>#10# #REPEAT# #FIND#=Href="#10# #ONERROR#=*OK* :CAST2 #TAKEWORD#=#03#,#01#,#02# #TAKEACTOR#=#03# #WHILE# #09#<>#10# <code> [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == RESETCURSOR == <nowiki>#RESETCURSOR#</nowiki>\\ Reset the Cursor variable.\\ Syntax:\\ <nowiki>#RESETCURSOR#</nowiki>\\ Parameters:\\ none\\ Examples:\\ <nowiki>1. #RESETCURSOR#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == RESTOREWEBSITELINE == <nowiki>#RESTOREWEBSITELINE#</nowiki>\\ Restore the previously saved website line.\\ Syntax:\\ <nowiki>#RESTOREWEBSITELINE#</nowiki>\\ Parameters:\\ none\\ Examples:\\ <nowiki>1. #RESTOREWEBSITELINE#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == RESTOREMAIN == <nowiki>#RESTOREMAIN#</nowiki>\\ <nowiki>Function to Re-Open in memory the Main HTML. Used when you load other webpages with #LOADWEBSLOT?#</nowiki>\\ Syntax:\\ <nowiki>#RESTOREMAIN#</nowiki>\\ Parameters:\\ none\\ Examples:\\ <nowiki>1. #RESTOREMAIN#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == SAVEEPISODEINFO == <nowiki>#SAVEEPISODEINFO#</nowiki>\\ This instruction save the Current Episode Information and clear the variables for Next Episode\\ Syntax:\\ <nowiki>#SAVEEPISODEINFO#</nowiki>\\ Parameters:\\ none\\ Examples:\\ <nowiki>1. #SAVEEPISODEINFO#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == SAVEMOVIE == <nowiki>#SAVEMOVIE#</nowiki>\\ Force the Engine to Save Current Imported info in the Database without wait the End of Import Process\\ Syntax:\\ <nowiki>#SAVEMOVIE#</nowiki>\\ Parameters:\\ none\\ Examples:\\ <nowiki>1. #SAVEMOVIE#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == SAVEWEBSITELINE == <nowiki>#SAVEWEBSITELINE#</nowiki>\\ Save the actual website line.\\ Syntax:\\ <nowiki>#SAVEWEBSITELINE#</nowiki>\\ Parameters:\\ none\\ Examples:\\ <nowiki>1. #SAVEWEBSITELINE#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == SEARCHREPLACEVAR == <nowiki>#SEARCHREPLACEVAR#</nowiki>\\ Replaces a phrase inside a variable.\\ Syntax:\\ <nowiki>#SEARCHREPLACEVAR#=text1|text2#?1##?2#</nowiki>\\ Parameters:\\ text1 Required. The text that shall be replaced.\\ | Required.\\ text2 Optional. The text used to replace text1. It's RegEx!\\ <nowiki>#?1# Required. The variable that contains the data that shall be checked. It will be modified!</nowiki>\\ <nowiki>#?2# Required. Has to be 0 or 1 for case sensitivity.</nowiki>\\ Examples:\\ <nowiki>1. #PUT#=1#11#</nowiki>\\ <nowiki>#SEARCHREPLACEVAR#=text1|text2#10##11#</nowiki>\\ <nowiki>This example modifies the phrase "text1" in variable #10# by "text2". #11# indicates yes for case sensitivity. Copy the original variable if the content is still needed by using <a href="#STRING">#STRING#</a></nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == SETCURSOR == <nowiki>#SETCURSOR#</nowiki>\\ Puts a value in the CURSOR Variable.\\ Syntax:\\ <nowiki>#SETCURSOR#=number</nowiki>\\ Parameters:\\ number Required. The number you want put into the CURSOR variable.\\ Examples:\\ <nowiki>1. #SETCURSOR#=12</nowiki>\\ This Example puts in the value 12 in the CURSOR variable.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == SETOPTION == <nowiki>#SETOPTION#</nowiki>\\ Set an option.\\ Syntax:\\ <nowiki>#SETOPTION#=#?1#?[text]text</nowiki>\\ Parameters:\\ <nowiki>#?1# Required. The Option Variable.</nowiki>\\ ? Required. The Option's value.\\ [text] Required. The Name of the Option.\\ text Required. The Description of the Option\\ Examples:\\ <nowiki>1. #SETOPTION#=#80#1[Title Import]0=Do not Take The Title|1=Take the Title</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == SHOWVAR == <nowiki>#SHOWVAR#</nowiki>\\ Show a variable, used for Debug\\ Syntax:\\ <nowiki>#SHOWVAR#=#??#</nowiki>\\ Parameters:\\ <nowiki>#??# The Variable to Show</nowiki>\\ Examples:\\ <nowiki>1. #SHOWVAR#=#??#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == SIMILARSHOWS == <nowiki>#SIMILARSHOWS#</nowiki>\\ Function to Import Similar TVShow\\ Syntax:\\ <nowiki>#SIMILARSHOWS#=#??#</nowiki>\\ Parameters:\\ <nowiki>#??# Required. The Varible of the Similar Show</nowiki>\\ Examples:\\ <nowiki>1. #SIMILARSHOWS#=#??#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == STARTDELETETAGS == <nowiki>#STARTDELETETAGS#</nowiki>\\ <nowiki>Call DELETETAGS block for a selected (#CHECKVARIABLE#) variable and delete text </nowiki>\\ parts.\\ Syntax:\\ <nowiki>#STARTDELETETAGS#</nowiki>\\ Parameters:\\ none\\ Examples:\\ <nowiki>1. #STARTDELETAGS#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == STARTREADWEB == <nowiki>#STARTREADWEB#</nowiki>\\ Reset the Read Engine to the first line of HTML and set the CURSOR Variable to 1.\\ Syntax:\\ <nowiki>#STARTREADWEB#</nowiki>\\ Parameters:\\ No Parameter\\ This Instruction Tell to engine that you want start your search to the top of the HTML file.\\ Remarks:\\ It's recommended that you put this instruction in all Blocks for re-initializing the Engine. If you read the title of a movie that is at the bottom of the HTML file, and then read the Director that is at the top,you will not find Director's info if you didn't re-initialize the engine with this instruction.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == STARTSUBSTITUTETAGS == <nowiki>#STARTSUBSTITUTETAGS#</nowiki>\\ <nowiki>Call SUBSTITUTETAGS block for a selected (#CHECKVARIABLE#) variable and replace text parts.</nowiki>\\ Syntax:\\ <nowiki>#STARTSUBSTITUTETAGS#</nowiki>\\ Parameters:\\ none\\ Examples:\\ <nowiki>1. #STARTSUBSTITUTETAGS#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == STRING == <nowiki>#STRING#</nowiki>\\ Puts a string into a variable, the string can contain text and variables.\\ Syntax:\\ <nowiki>#STRING#=#?1#=[Text1][#?2#]{Text#??#}</nowiki>\\ Parameters:\\ <nowiki>#?1# Required. The Variable where put the string.</nowiki>\\ Text1, Text ... Optional. The Text you want put in the string.\\ <nowiki>#??# Optional. The Variable you want put in the string at the particular position.</nowiki>\\ Examples:\\ <nowiki>1. #PUT#=www.emuitalia.com/#01#</nowiki>\\ <nowiki>#PUT#=aletsg/#02#</nowiki>\\ <nowiki>#STRING#=#04#=http:/#01##02#divxmanager/</nowiki>\\ <nowiki>This Example put in the Variable #04# the text "http://www.movieplayer.it/divxmanager/" that is formed of various text and variables.</nowiki>\\ Remarks:\\ With this function you can build your strings before sending it to the Engine.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == SUBSTITUTEWEBQUERYWORD == <nowiki>#SUBSTITUTEWEBQUERYWORD#</nowiki>\\ <nowiki>Replace defined words inside variable #MOVIE#.</nowiki>\\ Syntax:\\ <nowiki>#SUBSTITUTEWEBQUERYWORD#=text1=text2</nowiki>\\ Parameters:\\ <nowiki>text1 Required. Any String that has to be replaced in variable #MOVIE#.</nowiki>\\ <nowiki>text2 Required. Any String that replaces a text in variable #MOVIE#.</nowiki>\\ Remarks:\\ <nowiki>Function must be inside #SUBSTITUTEWEBQUERY# block.</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == SUBSTITUTEWORD == <nowiki>#SUBSTITUTEWORD#</nowiki>\\ Replace defined words inside a variable.\\ Syntax:\\ <nowiki>#SUBSTITUTEWORD#=text1=text2</nowiki>\\ Parameters:\\ text1 Required. Any String that has to be replaced in a Variable.\\ text2 Required. Any String that replaces a text in a Variable.\\ Remarks:\\ <nowiki>Variable has to be prepared with #CHECKVARIABLE#. Function must be inside #DELETETAGS# block.</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == TAKEXXX == <nowiki>#TAKEXXX#</nowiki>\\ Take the XXX Variable.\\ Syntax:\\ <nowiki>#TAKEXXX#=#??#</nowiki>\\ Parameters:\\ <nowiki>#??# Required. The Variable where the XXX of the Movie is stored.</nowiki>\\ Examples:\\ <nowiki>1. #TAKEXXX#=#03#</nowiki>\\ <nowiki>This Example Takes the XXX on the #03# variable.</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == TAKEWORD == <nowiki>#TAKEWORD#</nowiki>\\ Takes a string from the current line.\\ Syntax:\\ <nowiki>#TAKEWORD#=#?1#,#?2#,#?3#</nowiki>\\ Parameters:\\ <nowiki>#?1# Required. The Variable where is the Text Extracted.</nowiki>\\ <nowiki>#?2# Required. The Variable of starting point of the Text to extract.</nowiki>\\ <nowiki>#?3# Required. The Variable of ending point of the Text to extract. If you set this = "0", you will take all the line!</nowiki>\\ Examples:\\ <nowiki>1. #TAKEWORD#=#03#,#01#,#02#</nowiki>\\ <nowiki>This Example takes a string from CURRENT LINE, starting from the position stored on variable #01# through #02# , and puts the text in the #03# Variable.</nowiki>\\ Remarks:\\ This function is fundamental for working with strings, it doesn't modify the CURSOR Variable.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == TAKEWORDLEN == <nowiki>#TAKEWORDLEN#</nowiki>\\ Takes a string from the current line;\\ Syntax:\\ <nowiki>#TAKEWORDLEN#=#?1#,#?2#,#?3#</nowiki>\\ Parameters:\\ <nowiki>#?1# Required. The Variable where is the Text Extracted.</nowiki>\\ <nowiki>#?2# Required. The Variable of starting point of the Text to extract.</nowiki>\\ <nowiki>#?3# Required. The length of the string to extract.</nowiki>\\ Examples:\\ <nowiki>1. #TAKEWORDLEN#=#03#,#01#,#02#</nowiki>\\ <nowiki>This Example take a string LONG #02# from CURRENT LINE, starting at position stored on variable #01#, and puts the text in the #03# Variable.</nowiki>\\ Remarks:\\ This function is fundamental for working with strings, it doesn't modify the CURSOR Variable.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == TITLE == <nowiki>#TITLE#</nowiki>\\ Take the Title Variable.\\ Syntax:\\ <nowiki>#TITLE#=#??#</nowiki>\\ Parameters:\\ <nowiki>#??# Required. The Variable where the Title of the Movie is stored.</nowiki>\\ Examples:\\ <nowiki>1. #TITLE#=#03#</nowiki>\\ <nowiki>This Example Takes the Title on the #03# variable.</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == TRIM == <nowiki>#TRIM#</nowiki>\\ <nowiki>Delete all leading and trailing spaces out of a selected (#CHECKVARIABLE#) variable.</nowiki>\\ Syntax:\\ <nowiki>#TRIM#</nowiki>\\ Parameters:\\ none\\ Examples:\\ <nowiki>1. #TRIM#</nowiki>\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == WRITETITLELIST == <nowiki>#WRITETITLELIST#</nowiki>\\ Writes the string in the MOVIE LIST FOUND; the string can contain text and variables.\\ Syntax:\\ <nowiki>#WRITETITLELIST#=[Text1][#?2#] --->{Text#??#}</nowiki>\\ Parameters:\\ Text1, Text ... Optional. The Text you want write.\\ <nowiki>#??# Optional. The Variable you want put in the string at the particular position.</nowiki>\\ " --->" Required. This String is REQUIRED : Engine use this for separate the URL of a movie from his TITLE!\\ Examples:\\ <nowiki>1. #PUT#=Title=?0133093#06#</nowiki>\\ <nowiki>#PUT#=Matrix, The#07#</nowiki>\\ <nowiki>#WRITETITLELIST#=http://imdb.com/#06# ---> #07#</nowiki>\\ This Example write the URL and the TITLE of the "Matrix" Movie.\\ Remarks:\\ You MUST use this function for create the list of all movies found on a page.\\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == WRITEWARNING == <nowiki>#WRITEWARNING#</nowiki>\\ Show a Messagebox with a text.\\ Syntax:\\ <nowiki>#WRITEWARNING#=Text</nowiki>\\ Parameters:\\ Text Required. The Text you want to write.\\ Examples:\\ <nowiki>1. #WRITEWARNING#=This may take some time to finish!</nowiki>\\ \\ [[#Copyright|TOP]]......[[#Functions_&_Instructions|Functions & Instructions]] == Examples == [[#Copyright|TOP]] == Programmers Tips == [[#Copyright|TOP]] == MagicScript Editor == [[#Copyright|TOP]] == Known Bugs == [[#Copyright|TOP]] == Credits == [[#Copyright|TOP]]