|
 |
|
02-06-2008, 01:33 PM
|
#61
|
|
The Last Good Gremlin
Join Date: Nov 2004
Location: St Louis
Posts: 2,009
|
Quote: Originally Posted by Sonicxtacy02 
ugh i'm still having problems with the unicode text at the end of the movie description. anyone with vb knowledge wanna tell me why using mid() on a string containing "..." (without quotes) shows funky unicode text? i tried both binary compare and text compare and it happens with both options
Try using mid$() instead.
__________________
HARDWARE: Fujitsu Stylistic ST5031w/WiFi and dock, internal MP3Car 80G HD,, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, Silabs FM, WinTV USB, XM Commander w/Timetrax USB, Delorme GPS, Saitek X-52 joystick, BluSoleil Bluetooth, TPMS, FB, Elm327
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
02-06-2008, 01:38 PM
|
#62
|
|
Mo' Programming Mo' Problems
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,443
|
Quote: Originally Posted by GizmoQ 
Try using mid$() instead.
nopers didnt work
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
02-06-2008, 03:39 PM
|
#63
|
|
Mo' Programming Mo' Problems
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,443
|
after a few hours of scrolling thru windows character map i've found a way to erase the odd characters. Still dont have a method determined for pulling the extended description though.
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
02-06-2008, 03:50 PM
|
#64
|
|
Super Moderator
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 3,827
|
In the VBScript, you have to parse the description out obviousally. Why not use the search for the end of the description as "…</div>" Depending on how you do it, you will not get that part into your variable, as it will only go up to where it is found. Or, again depending on how you are parsing, if it does get that part, just do a left$(yourVar,len(description)-9).
To remove the & use:
Description = Replace (Description, "&", "&",1,-1,1)
Just an FYI, I have done lots and LOTS of screen scraping stuff in the past for my home automation software. Everything from stocks, weather, lotto results, jokes, movie showtimes, News headlines ect ect.... All of this was in VBScript.
|
|
|
02-06-2008, 04:05 PM
|
#65
|
|
Super Moderator
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 3,827
|
May have found a way for you to get the whole description. Well not the code, but how to do it at least
The URL contains the page number of the description:
&pg=1
&pg=2
ect, pull each one when "Get details is pressed, and do a x=x+1 kinda thing to get each one. As you get each one, do a search for
"More</a>" If the page does not contain this, then that is the last page (As the MORE is not a link, but just a text label) and you can break the loop and put the description all together to display it.
The basic logic would be:
for PageCount = 1 to 10
load Details page URL with PageCount in the URL
parse description
Description = Description + Description(PageCount )
look for the "More</a>" and if exists next PageCount
else exit
|
|
|
02-06-2008, 04:06 PM
|
#66
|
|
Mo' Programming Mo' Problems
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,443
|
Quote: Originally Posted by JohnWPB 
In the VBScript, you have to parse the description out obviousally. Why not use the search for the end of the description as "…</div>" Depending on how you do it, you will not get that part into your variable, as it will only go up to where it is found. Or, again depending on how you are parsing, if it does get that part, just do a left$(yourVar,len(description)-9).
To remove the & use:
Description = Replace (Description, "&", "&",1,-1,1)
Just an FYI, I have done lots and LOTS of screen scraping stuff in the past for my home automation software. Everything from stocks, weather, lotto results, jokes, movie showtimes, News headlines ect ect.... All of this was in VBScript.
i've got both of the problems solved, now i'm on to creating a custom list out of the description label. How would you like this done? One line per sentence? I just need a delimiter to split the variable with.
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
02-06-2008, 04:11 PM
|
#67
|
|
Mo' Programming Mo' Problems
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,443
|
Quote: Originally Posted by JohnWPB 
May have found a way for you to get the whole description. Well not the code, but how to do it at least
The URL contains the page number of the description:
&pg=1
&pg=2
ect, pull each one when "Get details is pressed, and do a x=x+1 kinda thing to get each one. As you get each one, do a search for
"More</a>" If the page does not contain this, then that is the last page (As the MORE is not a link, but just a text label) and you can break the loop and put the description all together to display it.
The basic logic would be:
for PageCount = 1 to 10
load Details page URL with PageCount in the URL
parse description
Description = Description + Description(PageCount )
look for the "More</a>" and if exists next PageCount
else exit
nearly exactly the way i have it working now and its not really adding much time to the plugin. We're on the same page here now! lol
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
02-06-2008, 04:58 PM
|
#68
|
|
Mo' Programming Mo' Problems
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,443
|
i'm feelin pretty good about this plugin now... here's the latest info shot showing the entire description (well entire meaning til the label runs out of space, havent converted to list yet). This also shows the new "official" sample skin created by barry (custommx3).
hmmm.. where did my rating stars go..somethings up with my indicator code .
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
02-07-2008, 05:09 AM
|
#69
|
|
FLAC
Join Date: Jul 2000
Posts: 1,018
|
this is simply awesome  great work soni!
|
|
|
02-07-2008, 08:50 AM
|
#70
|
|
Mo' Programming Mo' Problems
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,443
|
hey john, i found a potential bug with my star indicators i'd like you to quick-test for, seems that the indicators conflict with some of the other extension plugins out there (for example my new traffic app made the indicators stop working on movietimes). Can you open up your menu.skin and notate any other "x" lines then try to use movietimes again. i bet you're experiencing the same problem.
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
02-07-2008, 10:12 AM
|
#71
|
|
Newbie
Join Date: Sep 2007
Posts: 41
|
Can't wait for this.
|
|
|
02-07-2008, 01:56 PM
|
#72
|
|
Super Moderator
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 3,827
|
What plugin(s) do you think that is causing the problem?
These are the only ones currently that I am using in the skin:
X,Motionlock
X,Milage
X,RRMEDIADB
X,MOVIETIMES
|
|
|
02-07-2008, 02:01 PM
|
#73
|
|
Mo' Programming Mo' Problems
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,443
|
i'm not sure which are causing the problem specifically... the only other plugin i had activated was my trafficmapsplus plugin. And i cant find ANYTHING within the code that would make one plugin not work with the other. No variables are the same no indicators.. nothing. If i remove the indicator function from trafficmapsplus both plugins work fine. I'll have to speak to guino about the conflict.
BTW did you catch the question about how to handle the custom list split for the movie details. I've done it with "." as the delimiter and it looks a bit funky.
OT... i've added a label for the address of the theater... in doing this i noticed that some theatres (mostly the run down ones or ones playing random *** films) dont have addresses listed with yahoo. There wont be a navigation solution for those i'm afraid
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
02-07-2008, 03:05 PM
|
#74
|
|
Newbie
Join Date: Sep 2007
Posts: 41
|
going to be a stupid question but I have never used a plugin for RR other then the ones already set up for my skin. To access this plugin once i download it and register the dill I will need to move the skin files to my skin folder and edit the skin to have a button for movie times right. Sorry for asking here but there isn't really a topic on how to set up plugins that I could find.
__________________
Truckputer Progress
Black = Completed
Planing [----------] Buying [----------] Installing [----------]
|
|
|
02-07-2008, 03:28 PM
|
#75
|
|
Mo' Programming Mo' Problems
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,443
|
Quote: Originally Posted by andrewfblack 
going to be a stupid question but I have never used a plugin for RR other then the ones already set up for my skin. To access this plugin once i download it and register the dill I will need to move the skin files to my skin folder and edit the skin to have a button for movie times right. Sorry for asking here but there isn't really a topic on how to set up plugins that I could find.
download the rar.. unzip the folder to rr's root path
-register the .dll
-move skin files to your skin's folder
-open the menu.skin in your skin folder and add the line x,movietimes
-change a button on the skin to run the command "MOVIETIMES"
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:38 PM.
| |