BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Scripts
 Looking for last occurence

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Savitch Posted - 10 Apr 2004 : 16:03:52
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...
2   L A T E S T    R E P L I E S    (Newest First)
Alessio Viti Posted - 13 Apr 2004 : 21:56:03
Thank you Savitch!

I will upload the script in few hours ;-)

Alessio
Savitch Posted - 12 Apr 2004 : 20:25:58
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)

BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.06 sec. Powered By: Snitz Forums 2000 Version 3.4.07