BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Information
 MagicScript functions
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2 Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JDommi
Administrator

Germany
4638 Posts

Posted - 27 Sep 2009 :  00:09:50  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
As there is not existing an actual manual I've just begun to collect all functions. Some of them are really rare used as they are not well known like #FINDPREVIOUS#.
There is still no explanation but I hope with the help of all we can support Alessio on this part
Another step beside the descriptions could be a list of the variables used for HTMLCard...

The List so far:

Edit: removed the list to save space in thread!

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse

Edited by - JDommi on 07 Feb 2010 21:45:49

Mawu
Senior Member

Germany
1025 Posts

Posted - 27 Sep 2009 :  21:13:22  Show Profile  Visit Mawu's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
@JDommi
Why not using the XMM Wiki for your project?
http://xmm.a.wiki-site.com/index.php/Main_Page

There I've started there an overview about the variables for html cards some years ago. Maybe you can update it.

www.schlemmerkino.de - Die Nr.1 für filmische Leckereien
Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 27 Sep 2009 :  21:43:46  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
For sure, Mawu ;)
But at first I have only collected every command for MagicScript Editor.
Next I wanna sort them for function groups...
When all is done we can update the XMM Wiki. Best to update everything completely than step-by-step.

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

pepa1d
Starting Member

Czech Republic
24 Posts

Posted - 04 Feb 2010 :  13:54:55  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi JDommi,

at first thanks for this useful list! Maybe we can try to subscribe all these functions (basic description, syntax, parameters, exmaple). I know that lot of that is already done in Magic Script Documentation, but it wasn't updated for a long time and lot of functions are not there. I think it will help to lot of people who are working with Magic Script. But it's just idea

Thanks for reply

another working function:
#TAKEPOSTERFANART#=#??#

Edited by - pepa1d on 04 Feb 2010 14:47:33
Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 04 Feb 2010 :  18:24:28  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I have paused a while with that - so good to remind me!
When I have more time again I will continue with it - or better to begin with as I didn't have done more than this list yet :(
I will try to download Mawu's page to add all new functions...
Somehow I have to get a kick to begin ;)

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 07 Feb 2010 :  21:43:29  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Just begun: complete HTM file will be available soon!

Need help on descriptions for:
#GETACTORVAR#, #GETMOVIEVAR#, #RESTOREMAIN#, #SAVEEPISODEINFO#, #SAVEMOVIE# and #SHOWVAR#



INSTRUCTIONS: ABCDEFGHIJKLMNOPQRSTUVWXYZ

A: #ADDACTOR#
#ADDFILMOGRAPHY#
C: #CHECKACTOREXIST#
#CHECKVARIABLE#
#CLEARBUFFERACTORS#
#CLEARTAGS#
#COMPUTECURSOR#
#COMPUTEVAR#
#CONDITIONRIGHTPAGE#
D: #DELETEWORD#
#DOWNLOADTRAILER1#
E: #ENDIF#
F: #FIND#
#FINDLINE#
#FINDLINEPREVIOUS#
#FINDLINEVAR#
#FINDPREVIOUS#
#FINDPREVIOUSVAR#
#FINDVAR#
G: #GETACTORVAR# ????
#GETMOVIEVAR# ????
#GETTITLE#
#GOTO#
I: #IF#
#ISNUMERICAL#
L: #LOADCURSOR#
#LOADWEBSLOT1#
O: #OPENNEWWEB#
#OPENWEBSLOT1#
#ORIGINALTITLE#
P: #PUT#
#PUTCURSOR#
R: #READNEXTLINE#
#READPREVIOUSLINE#
#REPEAT#
#RESETCURSOR#
#RESTOREMAIN# ????
#RESTOREWEB#
#RESTOREWEBSITELINE#
S: #SAVEEPISODEINFO# ????
#SAVEMOVIE# ????
#SAVEWEBSITELINE#
#SETCURSOR#
#SETOPTION#
#SHOWVAR# ????
#STARTDELETETAGS#
#STARTREADWEB#
#STARTSUBSTITUTETAGS#
#STRING#
#SUBSTITUTEWEBQUERYWORD#
#SUBSTITUTEWORD#
T: #TAKEACTOR#
#TAKEACTORBDATE#
#TAKEACTORBIO#
#TAKEACTORBIRTHNAME#
#TAKEACTORBPLACE#
#TAKEACTORCOUNTRY#
#TAKEACTORFILM#
#TAKEACTORNAME#
#TAKEACTORPROFESSION#
#TAKEACTORSERIE#
#TAKEACTORSEX#
#TAKEACTORWEB#
#TAKEAUDIODVD#
#TAKEAWARDS#
#TAKECOMMENTS#
#TAKECOUNTRY#
#TAKECUSTOM1#...#TAKECUSTOM11#
#TAKEDEATHDATE#
#TAKEDIRECTLINK#
#TAKEDIRECTOR#
#TAKEDISTRIBUTOR#
#TAKEDVDYEAR#
#TAKEEDITION#
#TAKEFEATURE#
#TAKEGENRE#
#TAKELANGUAGE#
#TAKEMEDIA#
#TAKEMEDIALANGUAGE#
#TAKEMEDIAYEAR#
#TAKEMOVIEID#
#TAKEMPAA#
#TAKEMUSIC#
#TAKENUMBER#
#TAKEOFFICIALWEB#
#TAKEORIGINAL#
#TAKEPACKAGING#
#TAKEPHOTOGRAPHER#
#TAKEPICTURE#
#TAKEPICTUREINMOVIES#
#TAKEPLOT#
#TAKEPOSTER#
#TAKEPOSTERBACK#
#TAKEPOSTEREPISODE#
#TAKEPOSTERFANART#
#TAKEPOSTERSERIE#
#TAKEPREMIERED#
#TAKEPRODCODE#
#TAKEPRODUCER#
#TAKEQUOTES#
#TAKERATING#
#TAKEREGION#
#TAKEREVIEW#
#TAKEREVIEWS#
#TAKERUNTIME#
#TAKESCREENDVD#
#TAKESEASON#
#TAKESTORY#
#TAKESTUDIO#
#TAKESUBGENRE#
#TAKESUBTITLE#
#TAKESUBTITLES#
#TAKETAGLINE#
#TAKETRAILER1#...#TAKETRAILER2#
#TAKEUPC#
#TAKEWORD#
#TAKEWORDLEN#
#TAKEWRITER#
#TAKEYEAR#
#TITLE#
#TRIM#
W: #WHILE#
#WRITETITLELIST#
#WRITEWARNING#



--------------------------------------------------------------------------------

BLOCKS: ABCDEFGHIJKLMNOPQRSTUVWXYZ

Start of Block End of Block Description
A: #ACTORDATA# --> #ENDACTORDATA# Contains all functions to get every data of an actor.
#ACTORS# --> #ENDACTORS# Contains the code to import all actors of a movie.
#AUDIODVD# --> #ENDAUDIODVD#
#AWARDS# --> #ENDAWARDS#
C: #CHAPTERS# --> #ENDCHAPTERS#
#COMMENTS# --> #ENDCOMMENTS#
#COUNTRY# --> #ENDCOUNTRY#
#CREATEEPISODELIST# --> #ENDCREATEEPISODELIST#
#CREATEMOVIELIST# --> #ENDCREATEMOVIELIST#
#CUSTOM1#...#CUSTOM11# --> #ENDCUSTOM1#...#ENDCUSTOM11#
#CUSTOMINFO# --> #ENDCUSTOMINFO#
D: #DELETETAGS# --> #ENDDELETETAGS#
#DIRECTOR# --> #ENDDIRECTOR#
#DISTRIBUTOR# --> #ENDDISTRIBUTOR#
E: #EDITION# --> #ENDEDITION#
#EPISODEDIRECTOR# --> #ENDEPISODEDIRECTOR#
#EPISODEPLOT# --> #ENDEPISODEPLOT#
#EPISODESTORY# --> #ENDEPISODESTORY#
#EPISODETITLE# --> #ENDEPISODETITLE#
#EPISODEWRITER# --> #ENDEPISODEWRITER#
F: #FEATURES# --> #ENDFEATURES#
G: #GENRE# --> #ENDGENRE#
#GENRE# --> #ENDGENRE#
L: #LANGUAGE# --> #ENDLANGUAGE#
#LOADOPTIONS# --> #ENDLOADOPTIONS#
#LOADWEBSLOTS# --> #ENDLOADWEBSLOTS#
M: #MEDIA# --> #ENDMEDIA#
#MEDIALANGUAGE# --> #ENDMEDIALANGUAGE#
#MEDIAYEAR# --> #ENDMEDIAYEAR#
#MOVIEID --> #ENDMOVIEID
#MOVIEID# --> #ENDMOVIEID#
#MOVIETITLE# --> #ENDMOVIETITLE#
#MPAA# --> #ENDMPAA#
#MUSIC# --> #ENDMUSIC#
N: #NUMBER# --> #ENDNUMBER#
O: #OFFICIALWEB# --> #ENDOFFICIALWEB#
#ORIGINAL# --> #ENDORIGINAL#
P: #PACKAGING# --> #ENDPACKAGING#
#PHOTOGRAPHER# --> #ENDPHOTOGRAPHER#
#PHOTOGRAPHERR# --> #ENDPHOTOGRAPHERR#
#PLOT# --> #ENDPLOT#
#POSTER# --> #ENDPOSTER#
#PREMIERED# --> #ENDPREMIERED#
#PRODUCER# --> #ENDPRODUCER#
R: #RATING# --> #ENDRATING#
#READNEXTLINE# --> #ENDREADNEXTLINE#
#REGION# --> #ENDREGION#
#REPEAT# --> #ENDREPEAT#
#RESTOREMAIN# --> #ENDRESTOREMAIN#
#RESTOREWEB# --> #ENDRESTOREWEB#
#REVIEWS# --> #ENDREVIEWS#
#RIGHTPAGEFOUND# --> #ENDRIGHTPAGEFOUND#
#RUNTIME# --> #ENDRUNTIME#
S: #SCREENDVD# --> #ENDSCREENDVD#
#SERIEAWARDS# --> #ENDSERIEAWARDS#
#SERIECOUNTRY# --> #ENDSERIECOUNTRY#
#SERIEGENRE# --> #ENDSERIEGENRE#
#SERIELANGUAGE# --> #ENDSERIELANGUAGE#
#SERIEPLOT# --> #ENDSERIEPLOT#
#SERIEPOSTER# --> #ENDSERIEPOSTER#
#SERIEPREMIERED# --> #ENDSERIEPREMIERED#
#SERIESUBGENRE# --> #ENDSERIESUBGENRE#
#SERIETITLE# --> #ENDSERIETITLE#
#SETVARIABLES# --> #ENDSETVARIABLES#
#SIMILARSHOWS# --> #ENDSIMILARSHOWS#
#STARTREADWEB# --> #ENDSTARTREADWEB#
#STUDIO# --> #ENDSTUDIO#
#SUBGENRE# --> #ENDSUBGENRE#
#SUBSTITUTETAGS# --> #ENDSUBSTITUTETAGS#
#SUBSTITUTEWEBQUERY# --> #ENDSUBSTITUTEWEBQUERY#
#SUBTITLES# --> #ENDSUBTITLES#
T: #TAGLINE# --> #ENDTAGLINE#
#TRAILER# --> #ENDTRAILER#
U: #UPC# --> #ENDUPC#
W: #WRITER# --> #ENDWRITER#
Y: #YEAR# --> #ENDYEAR#



--------------------------------------------------------------------------------

SCRIPT 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
#NOTE#= Characteristic of Script
#OPTIONS#= 0=No Options|1=With Options
#RELEASE#= Minimum XMM Release
#REPLACESPACES#= Characters that must replace the spaces in the Movie's Title (for query the web)
#SCRIPTFORACTORS#= FALSE
#SCRIPTGENERATION#= Generation of the Script (actual=3)
#SCRIPTQUALITY#= Quality of the Script
#TVSERIES#= TRUE/FALSE
#TYPE#= [TYPE]=0=Complete|1=Only Covers|2=Only Informations
#WEBSITE#= URL of web site



--------------------------------------------------------------------------------

CONSTANTS:

#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
#SCRIPTWEBSITE#= Base web adress (http://akas.imdb.com/)

--------------------------------------------------------------------------------

#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.


Instruction Reference | Top

--------------------------------------------------------------------------------

#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
Instruction Reference | Top

--------------------------------------------------------------------------------

#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.

Instruction Reference | Top

--------------------------------------------------------------------------------

#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#.


Instruction Reference | Top

--------------------------------------------------------------------------------

#CLEARBUFFERACTORS#

Clears all data of a previously import of an Actor.

Syntax:

#CLEARBUFFERACTORS#

Parameters:

none


Instruction Reference | Top

--------------------------------------------------------------------------------

#CLEARTAGS#

Clears all tags inside a variable.

Syntax:

#CLEARTAGS#=#??#

Parameters:

#??# Required. The Variable that must be cleared.


Instruction Reference | Top

--------------------------------------------------------------------------------


#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".

Instruction Reference | Top

--------------------------------------------------------------------------------


#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 make.
number Required. Is the Value to SUM or SUBTRACT

Examples:

1. #COMPUTECURSOR#=+2
This Example sum to the value of CURSOR "2".

Instruction Reference | Top

--------------------------------------------------------------------------------

#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.

Instruction Reference | Top


--------------------------------------------------------------------------------

#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.


Instruction Reference | Top

--------------------------------------------------------------------------------

#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.


Instruction Reference | Top

--------------------------------------------------------------------------------

#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 (RED) 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.

Instruction Reference | Top


--------------------------------------------------------------------------------

#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#=<title>#12##ONERROR#=*ASK*
2. #FIND#=<title> #12##ONERROR#=*OK*
Note that these two functions search for different strings! the first searches "<title>", the Second the String "<title> " .Be careful!
This Instruction is similar to the #FINDLINE#, but searches for the text 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.


Instruction Reference | Top


--------------------------------------------------------------------------------

#FINDLINE#

Search downwards for a string in a HTML page.

Syntax:

#FINDLINE#=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 value 1 , 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. #FINDLINE#=<title>#12##ONERROR#=*STOP*
2. #FINDLINE#=<title> #01##ONERROR#=*ASK*

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 #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.

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!.



Instruction Reference | Top


--------------------------------------------------------------------------------

#FINDLINEPREVIOUS#

Search upwards for a string in a HTML page.

Syntax:

#FINDLINEPREVIOUS#=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 value 1 , 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. #FINDLINEPREVIOUS#=<title>#12##ONERROR#=*STOP*
2. #FINDLINEPREVIOUS#=<title> #01##ONERROR#=*ASK*

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 #FINDPREVIOUS#
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!.



Instruction Reference | Top


--------------------------------------------------------------------------------

#FINDLINEVAR#

Search downwards for a variable in a HTML page.

Syntax:

#FINDLINEVAR#=#?1#?2##ONERROR#=*options*

Parameters:

#?1# Required. The variable containing the text to find in the HTML.
#?2# Required. The number of Variable where Function store the result of the Search.
If the text is found, the variable will contain value 1 , 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. #FINDLINEVAR#=#11##12##ONERROR#=*STOP*
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.

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!.



Instruction Reference | Top


--------------------------------------------------------------------------------

#FINDPREVIOUS#

Search for a string backwards only in the CURRENT LINE of HTML page.

Syntax:

#FINDPREVIOUS#=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. #FINDPREVIOUS#=<title>#12##ONERROR#=*ASK*
2. #FINDPREVIOUS#=<title> #12##ONERROR#=*OK*
Note that these two functions search for different strings! the first searches "<title>", the Second the String "<title> " .Be careful!
This Instruction is similar to the #FINDLINE#, but searches for the text 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.


Instruction Reference | Top


--------------------------------------------------------------------------------

#FINDPREVIOUSVAR#

Search backwards for a variable only in the CURRENT LINE of HTML page.

Syntax:

#FINDPREVIOUSVAR#=#?1##?2##ONERROR#=*options*

Parameters:

#?1# Required. The variable containing the text to find in the HTML.
#?2# 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. #FINDPREVIOUSVAR#=#11##12##ONERROR#=*ASK*
This Instruction is similar to the #FINDPREVIOUS#, but searches for the text 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.


Instruction Reference | Top


--------------------------------------------------------------------------------

#FINDVAR#

Search for a variable only in the CURRENT LINE of HTML page.

Syntax:

#FIND#=#?1##?2##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#=<title>#12##ONERROR#=*ASK*
This Instruction is similar to the #FINDLINE#, but searches for the text 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.


Instruction Reference | Top


--------------------------------------------------------------------------------

#GETACTORVAR#

????.

Syntax: #GETACTORVAR#=#??#=%WEBID%

Parameters:

#??# Required. ????.
%WEBID% Required. ????.

Examples:

1. #GETACTORVAR#=#12#=%WEBID%
????.



Instruction Reference | Top

--------------------------------------------------------------------------------

#GETMOVIEVAR#

????.

Syntax: #GETMOVIEVAR#=#??#=%MOVIE%

Parameters:

#??# Required. ????.
%MOVIE% Required. ????.

Examples:

1. #GETMOVIEVAR#=#12#=%MOVIE%
????.


Instruction Reference | Top

--------------------------------------------------------------------------------

#GETTITLE#

Put the title of the movie in a variable, useful if you need the movie's title in the script.

Syntax:

#GETTITLE#=#??#

Parameters:

#??# Required. The Variable where the title movie must be loaded.

Examples:

1. #GETTITLE#=#03#

Instruction Reference | Top

--------------------------------------------------------------------------------

#GOTO#

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.
The Structure of this Instruction is :

#GOTO#=LABEL

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 :

"#GOTO#=LABEL1"

It is important not to put the colons in the #GOTO# instruction! : "#GOTO#=:LABEL1" and to cancel all spaces to the right! If you write a goto like this : "#GOTO#=LABEL1 ", the Engine will not find the Label and will report to you an error!

Particular attention must be payed when you use #GOTO# inside REPEAT..WHILE Statement :

Example

Good Code :
In this part of code everything is OK, the #GOTO# Instruction points to a LABEL that is out of any IF and REPEAT.

#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

BAD Code :
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!

#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#

Instruction Reference | Top

--------------------------------------------------------------------------------

#ISNUMERICAL#

Checks if a variable is numerical.

Syntax:

#ISNUMERICAL#=#?1#,#?2#

Parameters:

#?1# Required. The Variable to be checked.
#?2# Required. The Result of the check. 1=numeric, 0=alphanumeric

Examples:

1. #ISNUMERICAL#=#01#,#02#

Instruction Reference | Top

--------------------------------------------------------------------------------

#LOADCURSOR#

Loads a value in the Cursor Variable.

Syntax:

#LOADCURSOR#=#??#

Parameters:

#??# Required. The Variable where the value is stored.

Examples:

1. #LOADCURSOR#=#03#

Instruction Reference | Top

--------------------------------------------------------------------------------

#LOADWEBSLOT1#

Sets a previously loaded web page as active.

Syntax:

#LOADWEBSLOT1#

Parameters:

none

Examples:

1. #LOADWEBSLOT1#
Remarks:
Five Webslots are available: #LOADWEBSLOT1# to #LOADWEBSLOT5#


Instruction Reference | Top

--------------------------------------------------------------------------------

#OPENNEWWEB#

Particular attention must be focused on this Special Function #OPENNEWWEB#. 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.

Example

#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#

This is a part of imdb's Script. In the variable #50# is stored the URL of the page that contains the posters.
The Engine with #OPENNEWWEB# re-initializes itself. To start reading the new HTML, set the first line at the top (without #STARTREADWEB# function) and set CURSOR to 1. The functions inside #OPENNEWWEB# are executed sequentially until #RESTOREWEB# is reached.

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#.

You can have :

#OPENNEWWEB#=#50#
.....
#RESTOREWEB#
....
#OPENNEWWEB#=#50#
.....
#RESTOREWEB#

But it is not correct to write:

#OPENNEWWEB#=#50#
......
#OPENNEWWEB#=#50#
......
#RESTOREWEB#
......
#RESTOREWEB#

The result of this Script are UNPREDICTABLE



Instruction Reference | Top

--------------------------------------------------------------------------------

#OPENWEBSLOT1#

Loads a web page into a slot.

Syntax:

#OPENWEBSLOT1#=#??#

Parameters:

#??# Required. The Variable containing the address of the web page.

Examples:

1. #OPENWEBSLOT1#=#03#
Remarks:
Five Webslots are available: #OPENWEBSLOT1# to #OPENWEBSLOT5#


Instruction Reference | Top

--------------------------------------------------------------------------------

#ORIGINALTITLE#

Takes the Original Title.

Syntax:

#ORIGINALTITLE#=#??#

Parameters:

#??# Required. The Variable where to store the Original Title.

Examples:

1. #ORIGINALTITLE#=#03#

Instruction Reference | Top

--------------------------------------------------------------------------------

#PUT#

Puts a text or a number into a variable.

Syntax:

#PUT#=Text#??#

Parameters:

Text Required. The Text (or number) you want put into the variable.
#??# Required. The Variable where put the text.

Examples:

1. #PUT#=mytext#02#
This Example put in the Variable #02# the text "mytext".

Remarks:
Remember that your text must be inside "="<-and first->"#" : the function #PUT#=text#02# is different from #PUT#=text #02# !.


Instruction Reference | Top


--------------------------------------------------------------------------------

#PUTCURSOR#

Puts the value of CURSOR into a variable.

Syntax:

#PUTCURSOR#=#??#

Parameters:

#??# Required. The Variable where put the value of CURSOR.

Examples:

1. #PUTCURSOR#=#01#
This Example puts the CURSOR into #01# variable.


Instruction Reference | Top

--------------------------------------------------------------------------------

#READNEXTLINE#

Read the next line of HTML and set the CURSOR Variable to 1;

Syntax:

#READNEXTLINE#

Parameters:

none


Remarks:
This instruction is useful when you have found a particular thing with #FINDLINE# instruction and you want analyze the text line by line.



Instruction Reference | Top

--------------------------------------------------------------------------------

#READPREVIOUSLINE#

Read the previous line of HTML and set the CURSOR Variable to 1;

Syntax:

#READPREVIOUSLINE#

Parameters:

none


Remarks:
This instruction is useful when you have found a particular thing with #FINDLINE# instruction and you want analyze the text line by line.



Instruction Reference | Top

--------------------------------------------------------------------------------

#REPEAT#...#WHILE#

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 :

#REPEAT#
.....
.....
#WHILE# #??#==#??#

The WHILE compares two (RED) 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

You must be careful when you use a #GOTO# Instruction! See Example :

Good Code :
In this part of code everything is OK, the #GOTO# Instruction points to a LABEL that is out of any IF and REPEAT.

#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

BAD Code :
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!

#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#



Instruction Reference | Top

--------------------------------------------------------------------------------

#RESETCURSOR#

Reset the Cursor variable.

Syntax:

#RESETCURSOR#

Parameters:

none

Examples:

1. #RESETCURSOR#

Instruction Reference | Top

--------------------------------------------------------------------------------

#RESTOREWEBSITELINE#

Restore the previously saved website line.

Syntax:

#RESTOREWEBSITELINE#

Parameters:

none

Examples:

1. #RESTOREWEBSITELINE#

Instruction Reference | Top

--------------------------------------------------------------------------------

#RESTOREMAIN#

????

Syntax:

#RESTOREMAIN#

Parameters:

none

Examples:

1. #RESTOREMAIN#

Instruction Reference | Top

--------------------------------------------------------------------------------

#SAVEEPISODEINFO#

????

Syntax:

#SAVEEPISODEINFO#

Parameters:

none

Examples:

1. #SAVEEPISODEINFO#

Instruction Reference | Top

--------------------------------------------------------------------------------

#SAVEMOVIE#

????

Syntax:

#SAVEMOVIE#

Parameters:

none

Examples:

1. #SAVEMOVIE#

Instruction Reference | Top

--------------------------------------------------------------------------------

#SAVEWEBSITELINE#

Save the actual website line.

Syntax:

#SAVEWEBSITELINE#

Parameters:

none

Examples:

1. #SAVEWEBSITELINE#

Instruction Reference | Top

--------------------------------------------------------------------------------

#SETCURSOR#

Puts a value in the CURSOR Variable.

Syntax:

#SETCURSOR#=number

Parameters:

number Required. The number you want put into the CURSOR variable.

Examples:

1. #SETCURSOR#=12
This Example puts in the value 12 in the CURSOR variable.

Instruction Reference | Top

--------------------------------------------------------------------------------

#SETOPTION#

Set an option.

Syntax:

#SETOPTION#=#?1#?[text]text

Parameters:

#?1# Required. The Option Variable.
? Required. The Option's value.
[text] Required. The Name of the Option.
text Required. The Description of the Option

Examples:

1. #SETOPTION#=#80#1[Title Import]0=Do not Take The Title|1=Take the Title

Instruction Reference | Top

--------------------------------------------------------------------------------

#SHOWVAR#

????

Syntax:

#SHOWVAR#

Parameters:

????

Examples:

1. #SHOWVAR#

Instruction Reference | Top

--------------------------------------------------------------------------------

#STARTDELETETAGS#

Call DELETETAGS block for a selected (#CHECKVARIABLE#) variable and delete text parts.

Syntax:

#STARTDELETETAGS#

Parameters:

none

Examples:

1. #STARTDELETAGS#


Instruction Reference | Top

--------------------------------------------------------------------------------

#STARTREADWEB#

Reset the Read Engine to the first line of HTML and set the CURSOR Variable to 1.

Syntax:

#STARTREADWEB#

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 .

Instruction Reference | Top


--------------------------------------------------------------------------------

#STARTSUBSTITUTETAGS#

Call SUBSTITUTETAGS block for a selected (#CHECKVARIABLE#) variable and replace text parts.

Syntax:

#STARTSUBSTITUTETAGS#

Parameters:

none

Examples:

1. #STARTSUBSTITUTETAGS#


Instruction Reference | Top

--------------------------------------------------------------------------------

#STRING#

Puts a string into a variable , the string can contain text and variables.

Syntax:

#STRING#=#?1#=[Text1][#?2#]{Text#??#}

Parameters:

#?1# Required. The Variable where put the string.
Text1, Text ... Optional. The Text you want put in the string.
#??# Optional. The Variable you want put in the string at the particular position.

Examples:

1. #PUT#=www.emuitalia.com/#01#
#PUT#=aletsg/#02#
#STRING#=#04#=http:/#01##02#divxmanager/
This Example put in the Variable #04# the text "http://www.movieplayer.it/divxmanager/" that is formed of various text and variables .

Remarks:
With this function you can build your strings before sending it to the Engine.

Instruction Reference | Top


--------------------------------------------------------------------------------

#SUBSTITUTEWEBQUERYWORD#

Replace defined words inside variable #MOVIE#.

Syntax:

#SUBSTITUTEWEBQUERYWORD#=text1=text2

Parameters:

text1 Required. Any String that has to be replaced in variable #MOVIE#.
text2 Required. Any String that replaces a text in variable #MOVIE#.

Remarks:
Function must be inside #SUBSTITUTEWEBQUERY# block.


Instruction Reference | Top

--------------------------------------------------------------------------------

#SUBSTITUTEWORD#

Replace defined words inside a variable.

Syntax:

#SUBSTITUTEWORD#=text1=text2

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:
Variable has to be prepared with #CHECKVARIABLE#. Function must be inside #DELETETAGS# block.


Instruction Reference | Top

--------------------------------------------------------------------------------

#TAKEXXX#

Take the XXX Variable.

Syntax:

#TAKEXXX#=#??#

Parameters:

#??# Required. The Variable where the XXX of the Movie is stored.

Examples:

1. #TAKEXXX#=#03#
This Example Takes the XXX on the #03# variable.

Instruction Reference | Top

--------------------------------------------------------------------------------

#TAKEWORD#

Takes a string from the current line.

Syntax:

#TAKEWORD#=#?1#,#?2#,#?3#

Parameters:

#?1# Required. The Variable where is the Text Extracted.
#?2# Required. The Variable of starting point of the Text to extract.
#?3# Required. The Variable of ending point of the Text to extract. If you set this = "0", you will take all the line!

Examples:

1. #TAKEWORD#=#03#,#01#,#02#
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.

Remarks:
This function is fundamental for working with strings, it doesn't modify the CURSOR Variable.

Instruction Reference | Top


--------------------------------------------------------------------------------

#TAKEWORDLEN#

Takes a string from the current line;

Syntax:

#TAKEWORDLEN#=#?1#,#?2#,#?3#

Parameters:

#?1# Required. The Variable where is the Text Extracted.
#?2# Required. The Variable of starting point of the Text to extract.
#?3# Required. The length of the string to extract.

Examples:

1. #TAKEWORD#=#03#,#01#,#02#
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.

Remarks:
This function is fundamental for working with strings, it doesn't modify the CURSOR Variable.

Instruction Reference | Top


--------------------------------------------------------------------------------

#TITLE#

Take the Title Variable.

Syntax:

#TITLE#=#??#

Parameters:

#??# Required. The Variable where the Title of the Movie is stored.

Examples:

1. #TITLE#=#03#
This Example Takes the Title on the #03# variable.

Instruction Reference | Top

--------------------------------------------------------------------------------

#TRIM#

Delete all leading and trailing spaces out of a selected (#CHECKVARIABLE#) variable.

Syntax:

#TRIM#

Parameters:

none

Examples:

1. #TRIM#


Instruction Reference | Top

--------------------------------------------------------------------------------

#WRITETITLELIST#

Writes the string in the MOVIE LIST FOUND; the string can contain text and variables.

Syntax:

#WRITETITLELIST#=[Text1][#?2#] --->{Text#??#}

Parameters:

Text1, Text ... Optional. The Text you want write.
#??# Optional. The Variable you want put in the string at the particular position.
" --->" Required. This String is REQUIRED : Engine use this for separate the URL of a movie from his TITLE!

Examples:

1. #PUT#=Title=?0133093#06#
#PUT#=Matrix, The#07#
#WRITETITLELIST#=http://imdb.com/#06# ---> #07#
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.

Instruction Reference | Top


--------------------------------------------------------------------------------

#WRITEWARNING#

Show a Messagebox with a text.

Syntax:

#WRITEWARNING#=Text

Parameters:

Text Required. The Text you want to write.

Examples:

1. #WRITEWARNING#=This may take some time to finish!

Instruction Reference | Top

--------------------------------------------------------------------------------

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse

Edited by - JDommi on 08 Feb 2010 18:32:59
Go to Top of Page

lordkiwi
New Member

USA
99 Posts

Posted - 08 Feb 2010 :  05:43:48  Show Profile  Edit Reply  Click to see lordkiwi's MSN Messenger address  Reply with Quote  View user's IP address  Delete Reply
Fan Freaking Tastic, I have only been asking for an updated script function list since V4. I think I might write some new scripts now.

"Computer games don't effect kids; I mean if
Pac-Man affected us as kids, we'd all be running around in darkend
rooms, munching magic pills and listening to repetitive electronic
music" (Kristian Wilson, Nintendo, Inc 1989
Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 08 Feb 2010 :  18:31:30  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
F#!*
My system hd has crashed and last backup doesn't contain all new sources of my own progs. Just as the HTML from above :(
Someone has to continue with the work for me or you have to wait until I'm able again to continue myself.
Lucky that I already have posted the instructions text yesterday...

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 15 Feb 2010 :  20:57:23  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
First try:

http://www.jdommi.de.vu/xmm/magicscript.htm

Any comment appreciated!

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

Prinz
Senior Member

Germany
1522 Posts

Posted - 15 Feb 2010 :  22:02:29  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Firefox Users will get the following message with that website:

quote:
Als Betrugsversuch gemeldete Webseite!

Als attackierend gemeldete Webseite!


Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 15 Feb 2010 :  23:26:55  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Well, that's not good *GRRR*
IE8 does it without any probs... (FF still isn't installed yet, after my crash)
Does http://mitglied.multimania.de/jkdommi/ show the same message?

Does anybody have a good and free web space for me?

Edit: http://mitglied.multimania.de/jkdommi/xmm/magicscript.htm is loaded in firefox without any warning. Seems as if only the redirector service causes the problem.

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse

Edited by - JDommi on 16 Feb 2010 00:02:51
Go to Top of Page

Prinz
Senior Member

Germany
1522 Posts

Posted - 23 Feb 2010 :  09:16:11  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
another function/variable:

#NEWLINE#

And the function #READPREVIOUSLINE# doesn't work for me.
Go to Top of Page

Prinz
Senior Member

Germany
1522 Posts

Posted - 24 Feb 2010 :  14:24:20  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think there are functions missing. There is no function to import Data to a Actors Comment Field or to the CUSTOM Fields and AWARDS Field of an Actor.
Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 24 Feb 2010 :  14:58:57  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Feel free to add the missing commands, Prinz ;)
I'm a little bit out of time for a few weeks...

Btw. some functions are the same as for movies, only that they are inside actor's part or the episode's part!!!

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

Prinz
Senior Member

Germany
1522 Posts

Posted - 24 Feb 2010 :  15:57:38  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by JDommi
Btw. some functions are the same as for movies, only that they are inside actor's part or the episode's part!!!



I tried that, with the these functions. It will be imported to the movie not the actor.

There are bugs even in the functions that should import directly to the actors fields http://www.binaryworks.it/forum/topic.asp?TOPIC_ID=6250
Go to Top of Page

Prinz
Senior Member

Germany
1522 Posts

Posted - 01 Mar 2010 :  17:03:34  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by JDommi
Need help on descriptions for:
#GETACTORVAR#, #GETMOVIEVAR#


Yes a list of the variables is needed. I know only: %TITLE%, %ORIGINALTITLE% and %WEBID%
Go to Top of Page

watre
Starting Member

Belgium
23 Posts

Posted - 26 Mar 2010 :  23:19:33  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Prinz and JDommy,

I congratulate you on your job on the tutorial for MagicScript.

I would like to know if you have intention to supplement it, that would be tremendous and very useful. It would be sometimes interesting to have a little more explanation or examples, especially for certain functions and instructions, but it is already very well just like that.

I understand that this job is long and a bit annoying and that you have no that this to make.

Please, excuse my bad english, I am Belgian and I speak French.

Cordially,

watre
Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 26 Mar 2010 :  23:52:07  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi watre!

Thx for your accolade :) Some corrections still have to be made as Prinz already has posted.
Unfortunately I have no time at the moment - but everybody is invited to help improving and completing the documentation...

Alessio already has added this documentation to XMM. You have to look at the Advanced Tools menu ;)

The help file is located in "Documents and Settings\...\My Documents\eXtreme Movie Manager 7\Help"

Edit: Maybe someone has intentions to translate it?!?

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse

Edited by - JDommi on 26 Mar 2010 23:53:25
Go to Top of Page

Prinz
Senior Member

Germany
1522 Posts

Posted - 26 Mar 2010 :  23:58:19  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Some things i found out:

#GETMOVIEVAR# has the following Variables:

%TITLE%
%MOVIEID%
%DIRECTOR%
%ORIGINALTITLE%
%YEAR%
%COUNTRY%
#MOVIE#
#DIRECTLINK#
#SERIE#
#YEARVALUE#
#UPCVALUE#
#CUSTOM1VALUE#
#CUSTOM2VALUE#
#CUSTOM3VALUE#
#CUSTOM4VALUE#
#CUSTOM5VALUE#
#CUSTOM6VALUE#
#CUSTOM7VALUE#
#CUSTOM8VALUE#

Maybe more...
Go to Top of Page

watre
Starting Member

Belgium
23 Posts

Posted - 27 Mar 2010 :  00:08:27  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi JDommy,

thank you for your quick answer.

I work with the version offered by Prinz some topics higher, I assume that it is the last version.
I downloaded it, so I always have it to hand.

Thank you still.

watre
Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 27 Mar 2011 :  11:49:56  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think it was really time to update the documentation as there were added a few functions since last revision.

http://www.mediafire.com/?8ceyc0kzmakg13c

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic   Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.29 sec. Powered By: Snitz Forums 2000 Version 3.4.07