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
 Suggestions / New Features
 Magic Script - Suggestions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Prinz
Senior Member

Germany
1522 Posts

Posted - 24 Apr 2010 :  18:36:51  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Since i have corrected many Script i put a List of Functions together which would help in future.

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

#COMPUTELINE#

Makes a SUM or SUBTRACTION to the LINE variable.

Syntax:

#COMPUTELINE#=±number

Parameters:

± Required. Is the operation you want make.
number Required. Is the Value to SUM or SUBTRACT

Examples:

1.
#COMPUTELINE#=+2
Goes 2 lines down in the html

2.
#COMPUTELINE#=-3
Goes 3 lines up in the html

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

#LOADWEBSITELINE#

Loads a value in the Line Variable.

Syntax:

#LOADWEBSITELINE#=#??#

Parameters:

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

Examples:

#PUT#=10#03#
#LOADWEBSITELINE#=#03#

Go to the 10 Line in the Html

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

#CHECKEPISODEEXIST#

Checks if the Episode is already in the Database.

Syntax:

#CHECKEPISODEEXIST#=#?1#,#?2#,#?3#

Parameters:

#?1# Required. The Variable where the RESULT is stored. 0 or Episode's ID in database.
#?2# Required. The Variable where the SEASONNUMBER is stored.
#?3# Required. The Variable where the EPISODENUMBER is stored.

Examples:

#PUT#=2#04#
#PUT#=5#05#
#CHECKEPISODEEXIST#=#03#,#04#,#05#
This example it checks if the 5. Episode in the 2. Season exists and returns the result on the #03# variable.

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

#FINDINVAR#

Search for a string in a Variable.

Syntax:

#FINDINVAR#=#?1#,#?2#,#?3# #ONERROR#=*options*

Parameters:

#?1# Required. Variable in which to search.
#?2# Required. Variable with the text to find in another Variable.
#?3# Required. 0 if not found and 1 if found.
#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:

#PUT#=This is the Text to search in.#02#
#PUT#=to#03#
#FIND#=#02#,#03##12##ONERROR#=*OK*

Searches for the "to" in the Variable #02# and sets the Variable #12# anything but 0
---------------------

#REPLACEINVAR#

Search for a string inside a variable and replace it with another string.

Syntax:

#FINDINVAR#=#?1#,#?2#,#?3# #ONERROR#=*options*

Parameters:

#?1# Required. Variable with the text to find in another Variable.
#?2# Required. Variable with the text to replace the text #?2# with.
#?3# Required. Variable in which to search and replace.
#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:

#PUT#=Text#02#
#PUT#=Data#03#
#PUT#=This is the Text to search in.#04#
#FIND#=#02#,#03##04##ONERROR#=*OK*

Searches for the "to" in the Variable #04# and replaces the Text "Text" from the Variable #02# with the Text "Data" from the Variable #03#

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

#GETMOVIEVAR#=#23#=#MOVIEID#

Get Web-ID of the Movie/TV-Show. Used in the #RIGHTPAGEFOUND# Block. The %MOVIEID% gets the Database ID not the Web-ID of the movie which is useless in the Script.

Alessio Viti
Forum Admin

Italy
9171 Posts

Posted - 26 Apr 2010 :  07:32:44  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Prinz!

Good suggestions!

I will try to develop it soon, you have made great job with scripts these months.

Thank you very much!

Alessio

http://www.facebook.com/pages/eXtreme-Movie-Manager/47220214342?ref=mf
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.11 sec. Powered By: Snitz Forums 2000 Version 3.4.07