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
 Looking for last occurence
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Savitch
Starting Member

Poland
11 Posts

Posted - 10 Apr 2004 :  16:03:52  Show Profile  Visit Savitch's Homepage  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I'm trying to make a script for new filmweb.pl, and I got a problem...

To get the plot of a movie, I have to find the last occurence of '<li>', so I try to do "findline" until it will return 0... But the Findline returns 0 just when it tries to find second occurence... And of course doesn't search no more...

Here's what I've got:

(It's of course WorkInProgress, so It won't work well, and the "628" is
just an example :)


--PLOT--------------------------------------------------------------------------------------
#PLOT#
    #STRING#=#07#=http://filmweb.pl/FilmDescriptions?id=628
    #OPENNEWWEB#=#07#
    #FINDLINE#=<li>#01# #ONERROR#=*OK*
    #IF# #01#==#02#
        #GOTO#=NOPLOT
    #ENDIF#
    #REPEAT#
        #FIND#=<li>#03# #ONERROR#=*STOP*
        #FINDLINE#=<li>#01# #ONERROR#=*OK*
    #WHILE# #01#<>#02#
    #FIND#=>#03# #ONERROR#=*STOP*
    #FIND#=</li#04# #ONERROR#=*STOP*
    #TAKEWORD#=#44#,#03#,#04#
    #TAKEPLOT#=#44#
    :NOPLOT
    #RESTOREWEB#
#ENDPLOT#


For me, it works like this:
It goes through the #repeat# only once, and then, just after first #find# it finishes the plot and goes to runtime, if I remember correctly, and there's nothing, that I can do about it... I rewrote it several times from the beginning, and there's always the same...

The second problem is that... how to put the value of #03# into #CURSOR#, so it would search the last known occurence again?

I reckon it would be sthg like this:


#PUTCURSOR#=#03#
...
#SETCURSOR#=#SHOWVAR#=#03#
[\code]
but who knows how the "showvar" works...

Savitch
Starting Member

Poland
11 Posts

Posted - 12 Apr 2004 :  20:25:58  Show Profile  Visit Savitch's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
OK, I knew it oughta be sthg easy...

I've had the same idea, but Cof made it, so thanks to Him :)

My script will be ready soon, It's written completely from the beginning, and it works for me :)

I tried it to be compatible with 2nd generation, but I haven't found any info about what is needed for it to work...

If anything will be wrong - feel free to write me (my address is in the script, of course)
Go to Top of Page

Alessio Viti
Forum Admin

Italy
9171 Posts

Posted - 13 Apr 2004 :  21:56:03  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you Savitch!

I will upload the script in few hours ;-)

Alessio
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