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
 Scripts
 Help with editing script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tommy152
Starting Member

8 Posts

Posted - 20 Feb 2011 :  21:42:25  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Trying to modify the distributor block in the IAFD script since sometimes they display Distributor and sometimes Studio (Distributor).

So far I have

#DISTRIBUTOR#
#STARTREADWEB#
#FINDLINE#=<dt>Distributor</dt>#01##ONERROR#=*ASK*
#IF# #00#<>#01#
#FINDLINE#=<dd>#01# #ONERROR#=*STOP*
#FIND#=.htm">#02# #ONERROR#=*STOP*
#COMPUTECURSOR#=+5
#PUTCURSOR#=#01#
#FIND#=</a>#02# #ONERROR#=*STOP*
#TAKEWORD#=#03#,#01#,#02#
#TAKEDISTRIBUTOR#=#03#
#TAKESTUDIO#=#03#
#GOTO#=ENDDISTRIBUTOR
#ENDIF#

#FINDLINEPREVIOUS#=<dt>Studio (Distributor)</dt>#01##ONERROR#=*ASK*
#FINDLINE#=<dd>#01# #ONERROR#=*STOP*
#FIND#=.htm">#02# #ONERROR#=*STOP*
#COMPUTECURSOR#=+5
#PUTCURSOR#=#01#
#FIND#=</a>#02# #ONERROR#=*STOP*
#TAKEWORD#=#03#,#01#,#02#
#TAKEDISTRIBUTOR#=#03#
#TAKESTUDIO#=#03#
:ENDDISTRIBUTOR
#ENDDISTRIBUTOR#

The first FINDLINE errors out when it can't find Distributor on the page saying it "Can't find the word on #FINDLINE# instruction <dt>Distributor</dt>Line: 386. If it couldn't find it, wouldn't it just write 0 to the variable?

tommy152
Starting Member

8 Posts

Posted - 20 Feb 2011 :  21:53:30  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Nevermind...changed the ONERROR to GO and it works. Looks like it throws the error even though it does set the variable.
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.16 sec. Powered By: Snitz Forums 2000 Version 3.4.07