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 8, 9, 10 Forum
 Scripts
 Problems witth #TAKELANGUAGE#
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dagdaesp
Starting Member

Spain
7 Posts

Posted - 04 Sep 2015 :  00:50:29  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
The problem is : the movie has two languages,using the script only lets add one language.

thank you


Edited by - dagdaesp on 04 Sep 2015 00:51:03

JDommi
Administrator

Germany
4656 Posts

Posted - 04 Sep 2015 :  01:04:36  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Well, which script... which movie...

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

dagdaesp
Starting Member

Spain
7 Posts

Posted - 04 Sep 2015 :  03:26:22  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
the script is done for me. When I finished the script I want to give it to anyone to use it.
i write code.

#LANGUAGE#

#STRING#=#30#=
#STARTREADWEB#
#FINDLINE#=>language<#11##ONERROR#=*OK*
#IF# #11#==#00#
#GOTO#=SALTARLANGUAJE
#ENDIF#
#READNEXTLINE#
#FIND#=>#01##ONERROR#=*OK*
#FIND#=<br#02##ONERROR#=*OK*
#IF# #02#<>#00#
#RESETCURSOR#
#PUT#=1#04#
#GOTO#=MASIDIOMAS
#ENDIF#
#RESETCURSOR#
#FIND#=</td#02##ONERROR#=*ASK*
#TAKEWORD#=#06#,#01#,#02#
#CHECKVARIABLE#=#06#
#STARTDELETETAGS#
#CHECKVARIABLE#=#06#
#STARTSUBSTITUTETAGS#
#STRING#=#30#=#06#
#TAKELANGUAGE#=#30#
#GOTO#=SALTARLANGUAJE

:MASIDIOMAS

#FIND#=>#01##ONERROR#=*ASK*
#FIND#=<br#02##ONERROR#=*OK*
#IF# #02#==#00#
#FIND#=</td#02##ONERROR#=*ASK*
#PUT#=0#04#
#ENDIF#
#TAKEWORD#=#06#,#01#,#02#
#CHECKVARIABLE#=#06#
#STARTDELETETAGS#
#CHECKVARIABLE#=#06#
#STARTSUBSTITUTETAGS#
#STRING#=#30#=#06#
#TAKELANGUAGE#=#30#
#IF# #04#==#00#
#GOTO#=SALTARLANGUAJE
#ENDIF#
#GOTO#=MASIDIOMAS

:SALTARLANGUAJE
#PUT#=0#00#
#ENDLANGUAGE#

The language one is english the other is czech and the field always takes the last language.

the same code but with the country here work fine. i can put two or more countrys.

#COUNTRY#
#STARTREADWEB#
#FINDLINE#=>Location<#11##ONERROR#=*OK*
#IF# #11#==#00#
#GOTO#=SALTARPAIS
#ENDIF#
#READNEXTLINE#
#FIND#=>#02##ONERROR#=*ASK*
#FIND#=<#03##ONERROR#=*ASK*
#TAKEWORD#=#25#,#02#,#03#
#FIND#=<br#02##ONERROR#=*OK*
#IF# #02#==#00#
#CHECKVARIABLE#=#25#
#STARTSUBSTITUTETAGS#
#STARTDELETETAGS#
#TAKECOUNTRY#=#25#
#GOTO#=SALTARPAIS
#ENDIF#
#TAKECOUNTRY#=#25#
:maspaises
#FIND#=>#02##ONERROR#=*OK*
#FIND#=<#03##ONERROR#=*OK*
#IF# #03#==#00#
#GOTO#=SALTARPAIS
#ENDIF#
#TAKEWORD#=#25#,#02#,#03#
#CHECKVARIABLE#=#25#
#STARTSUBSTITUTETAGS#
#STARTDELETETAGS#
#TAKECOUNTRY#=#25#
#GOTO#=maspaises
:SALTARPAIS
#PUT#=0#00#
#ENDCOUNTRY#

thank you


Edited by - dagdaesp on 04 Sep 2015 03:30:46
Go to Top of Page

JDommi
Administrator

Germany
4656 Posts

Posted - 04 Sep 2015 :  11:22:37  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The command #TAKELANGUAGE# takes really only one string and doesn't add a second one. So you have to do it your own.
Try to use #STRING#=#30#=#30# #06# instead of #STRING#=#30#=#06# and put the #TAKELANGUAGE#=#30# at the end of the loop. That should do the job.

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

dagdaesp
Starting Member

Spain
7 Posts

Posted - 04 Sep 2015 :  11:50:38  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thank you by you answer.
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.09 sec. Powered By: Snitz Forums 2000 Version 3.4.07