home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / Online_TV_2050032252007.psc / TV / frmtv.frm next >
Text File  |  2007-02-25  |  9KB  |  283 lines

  1. VERSION 5.00
  2. Object = "{6BF52A50-394A-11D3-B153-00C04F79FAA6}#1.0#0"; "wmp.dll"
  3. Begin VB.Form frmtv 
  4.    BackColor       =   &H00404040&
  5.    BorderStyle     =   3  'Fixed Dialog
  6.    Caption         =   "Online TV Player by James/Webmonster"
  7.    ClientHeight    =   8895
  8.    ClientLeft      =   195
  9.    ClientTop       =   825
  10.    ClientWidth     =   11400
  11.    Icon            =   "frmtv.frx":0000
  12.    KeyPreview      =   -1  'True
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   8895
  17.    ScaleWidth      =   11400
  18.    StartUpPosition =   3  'Windows Default
  19.    Begin VB.PictureBox Picture1 
  20.       Height          =   15
  21.       Left            =   1440
  22.       ScaleHeight     =   15
  23.       ScaleWidth      =   15
  24.       TabIndex        =   1
  25.       Top             =   3000
  26.       Visible         =   0   'False
  27.       Width           =   15
  28.    End
  29.    Begin VB.Label Label4 
  30.       BackStyle       =   0  'Transparent
  31.       Caption         =   "Contact me by adding Webmosnter123@hotmail.com to your msn"
  32.       ForeColor       =   &H00FFFFFF&
  33.       Height          =   255
  34.       Left            =   6600
  35.       TabIndex        =   6
  36.       Top             =   8640
  37.       Width           =   4695
  38.    End
  39.    Begin VB.Line Line3 
  40.       BorderColor     =   &H00FFFFFF&
  41.       X1              =   6480
  42.       X2              =   6480
  43.       Y1              =   8520
  44.       Y2              =   8880
  45.    End
  46.    Begin VB.Line Line2 
  47.       BorderColor     =   &H00FFFFFF&
  48.       X1              =   3960
  49.       X2              =   3960
  50.       Y1              =   8520
  51.       Y2              =   8880
  52.    End
  53.    Begin VB.Label Label3 
  54.       BackStyle       =   0  'Transparent
  55.       Caption         =   "Online TV Player Open Source"
  56.       ForeColor       =   &H00FFFFFF&
  57.       Height          =   255
  58.       Left            =   4080
  59.       TabIndex        =   5
  60.       Top             =   8640
  61.       Width           =   2175
  62.    End
  63.    Begin VB.Label Label2 
  64.       BackStyle       =   0  'Transparent
  65.       Caption         =   "⌐ 2007 Websofts.org"
  66.       ForeColor       =   &H00FFFFFF&
  67.       Height          =   255
  68.       Left            =   2160
  69.       TabIndex        =   4
  70.       Top             =   8640
  71.       Width           =   1695
  72.    End
  73.    Begin VB.Line Line1 
  74.       BorderColor     =   &H00FFFFFF&
  75.       X1              =   2040
  76.       X2              =   2040
  77.       Y1              =   8520
  78.       Y2              =   8880
  79.    End
  80.    Begin VB.Label number 
  81.       AutoSize        =   -1  'True
  82.       BackStyle       =   0  'Transparent
  83.       Caption         =   "1"
  84.       ForeColor       =   &H00FFFFFF&
  85.       Height          =   195
  86.       Left            =   1680
  87.       TabIndex        =   3
  88.       Top             =   8640
  89.       Width           =   90
  90.    End
  91.    Begin VB.Label Label1 
  92.       BackStyle       =   0  'Transparent
  93.       Caption         =   "Screenshot Number:"
  94.       ForeColor       =   &H00FFFFFF&
  95.       Height          =   255
  96.       Left            =   120
  97.       TabIndex        =   2
  98.       Top             =   8640
  99.       Width           =   1455
  100.    End
  101.    Begin WMPLibCtl.WindowsMediaPlayer tv 
  102.       Height          =   8535
  103.       Left            =   0
  104.       TabIndex        =   0
  105.       Top             =   0
  106.       Width           =   11415
  107.       URL             =   ""
  108.       rate            =   1
  109.       balance         =   0
  110.       currentPosition =   0
  111.       defaultFrame    =   ""
  112.       playCount       =   1
  113.       autoStart       =   -1  'True
  114.       currentMarker   =   0
  115.       invokeURLs      =   -1  'True
  116.       baseURL         =   ""
  117.       volume          =   50
  118.       mute            =   0   'False
  119.       uiMode          =   "full"
  120.       stretchToFit    =   0   'False
  121.       windowlessVideo =   0   'False
  122.       enabled         =   -1  'True
  123.       enableContextMenu=   -1  'True
  124.       fullScreen      =   0   'False
  125.       SAMIStyle       =   ""
  126.       SAMILang        =   ""
  127.       SAMIFilename    =   ""
  128.       captioningID    =   ""
  129.       enableErrorDialogs=   0   'False
  130.       _cx             =   20135
  131.       _cy             =   15055
  132.    End
  133.    Begin VB.Menu station 
  134.       Caption         =   "Stations"
  135.       Begin VB.Menu uk 
  136.          Caption         =   "UK TV"
  137.          Begin VB.Menu bbc24 
  138.             Caption         =   "BBC News 24"
  139.          End
  140.          Begin VB.Menu bbcparl 
  141.             Caption         =   "BBC Parliament"
  142.          End
  143.          Begin VB.Menu bbc 
  144.             Caption         =   "BBC World"
  145.          End
  146.          Begin VB.Menu mosound 
  147.             Caption         =   "Ministry Of Sound"
  148.          End
  149.          Begin VB.Menu itvplay 
  150.             Caption         =   "ITV Play"
  151.          End
  152.          Begin VB.Menu skynews 
  153.             Caption         =   "Sky News"
  154.          End
  155.          Begin VB.Menu skyone 
  156.             Caption         =   "Sky One"
  157.          End
  158.       End
  159.       Begin VB.Menu us 
  160.          Caption         =   "US TV"
  161.          Begin VB.Menu cnbc 
  162.             Caption         =   "CNBC"
  163.          End
  164.          Begin VB.Menu fox5 
  165.             Caption         =   "Fox 5"
  166.          End
  167.          Begin VB.Menu fox8 
  168.             Caption         =   "Fox 8"
  169.          End
  170.       End
  171.       Begin VB.Menu space 
  172.          Caption         =   "-"
  173.       End
  174.       Begin VB.Menu other 
  175.          Caption         =   "Other Channel"
  176.       End
  177.       Begin VB.Menu newstation 
  178.          Caption         =   "Find New Stations"
  179.       End
  180.    End
  181.    Begin VB.Menu tools 
  182.       Caption         =   "Tools"
  183.       Begin VB.Menu screen 
  184.          Caption         =   "Take Screenshot"
  185.          Shortcut        =   {F12}
  186.       End
  187.    End
  188. End
  189. Attribute VB_Name = "frmtv"
  190. Attribute VB_GlobalNameSpace = False
  191. Attribute VB_Creatable = False
  192. Attribute VB_PredeclaredId = True
  193. Attribute VB_Exposed = False
  194. ' Online TV Player Open Source
  195. ' ⌐ 2007 Websofts.org
  196. ' Contact me by adding Webmonster123@hotmail.com to your msn
  197. ' Or email J.webmonster@gmail.com
  198.  
  199. Option Explicit
  200. ' For screenshot
  201. Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, _
  202.     ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, _
  203.     ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, _
  204.     ByVal ySrc As Long, ByVal dwRop As Long) As Long
  205. ' Shell execute is for default browser
  206. Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
  207.  
  208. Private Sub bbc_Click()
  209. tv.URL = "http://a1729.l2168647534.c21686.g.lm.akamaistream.net/D/1729/21686/v0001/reflector:56487"
  210. End Sub
  211.  
  212. Private Sub bbc24_Click()
  213. tv.URL = "http://www.bbc.co.uk/newsa/n5ctrl/tvseq/n24/nb/wm/video/heads_nb.asx"
  214. End Sub
  215.  
  216. Private Sub bbcparl_Click()
  217. tv.URL = "http://www.bbc.co.uk/newsa/n5ctrl/tvseq/parliament/nb/wm/video/parliament_16x9_nb.asx"
  218. End Sub
  219.  
  220. Private Sub cnbc_Click()
  221. tv.URL = "mms://a1991.l2229962829.c22299.n.lm.akamaistream.net/D/1991/22299/v0001/reflector:45586"
  222. End Sub
  223.  
  224. Private Sub fox5_Click()
  225. tv.URL = "mms://a1991.l2229962829.c22299.n.lm.akamaistream.net/D/1991/22299/v0001/reflector:45584?ptr=cc&k=op&r=908143"
  226. End Sub
  227.  
  228. Private Sub fox8_Click()
  229. tv.URL = "MMS://a1729.l2168647534.c21686.g.lm.akamaistream.net/D/1729/21686/v0001/reflector:50135"
  230. End Sub
  231.  
  232. Private Sub itvplay_Click()
  233. tv.URL = "http://play.itv.com/media/ITV_Play.asx"
  234. End Sub
  235.  
  236. Private Sub mosound_Click()
  237. tv.URL = "mms://a407.l954634696.c9546.g.lm.akamaistream.net/D/407/9546/v0001/reflector:34696enjoy"
  238. End Sub
  239.  
  240. Private Sub skynews_Click()
  241. tv.URL = "mms://live1.wm.skynews.servecast.net/skynews_wmlz_live300k"
  242. End Sub
  243.  
  244. Private Sub skyone_Click()
  245. tv.URL = "mms://82.36.233.110:8010"
  246. End Sub
  247.  
  248. Private Sub other_Click()
  249. tv.URL = InputBox("Enter the URL for the tv station", "Other Channel")
  250. End Sub
  251.  
  252. Private Sub newstation_Click()
  253. ShellExecute Me.hwnd, "open", "http://wwitv.com/portal.htm", "", "", 1
  254. End Sub
  255.  
  256. Private Sub screen_Click()
  257. ' This will take a screenshot and save it in the application folder
  258. Dim pic As PictureBox
  259. Dim intScaleMode As Integer
  260. intScaleMode = Me.ScaleMode
  261. Set pic = Controls.Add("vb.PictureBox", "pic")
  262.     With pic
  263.         .Left = Me.Width + 1000
  264.         .Width = tv.Width
  265.         .Height = tv.Height
  266.         .AutoRedraw = True
  267.         .Visible = True
  268.         .ScaleMode = vbPixels
  269.     End With
  270.         Me.ScaleMode = vbPixels
  271.         With tv
  272.         BitBlt pic.hDC, 0, 0, .Width, .Height, Me.hDC, .Left, .Top, vbSrcCopy
  273.     End With
  274.         Clipboard.Clear
  275.         Clipboard.SetData pic.Image
  276.         Controls.Remove pic
  277.     Set pic = Nothing
  278.         Me.ScaleMode = intScaleMode
  279. Picture1.Picture = Clipboard.GetData()
  280. SavePicture Picture1, App.Path & "\Screensot " & number.Caption & ".jpeg"
  281. number.Caption = number.Caption + 1
  282. End Sub
  283.