home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 6_2008-2009.ISO / data / zips / Video_Grab213908122009.psc / frmMain.frm < prev    next >
Text File  |  2009-01-01  |  12KB  |  397 lines

  1. VERSION 5.00
  2. Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
  3. Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "comctl32.ocx"
  4. Begin VB.Form Form1 
  5.    AutoRedraw      =   -1  'True
  6.    Caption         =   "Video Grabber"
  7.    ClientHeight    =   4800
  8.    ClientLeft      =   60
  9.    ClientTop       =   750
  10.    ClientWidth     =   8220
  11.    BeginProperty Font 
  12.       Name            =   "Verdana"
  13.       Size            =   8.25
  14.       Charset         =   162
  15.       Weight          =   400
  16.       Underline       =   0   'False
  17.       Italic          =   0   'False
  18.       Strikethrough   =   0   'False
  19.    EndProperty
  20.    Icon            =   "frmMain.frx":0000
  21.    LinkTopic       =   "Form1"
  22.    ScaleHeight     =   4800
  23.    ScaleWidth      =   8220
  24.    StartUpPosition =   2  'CenterScreen
  25.    Begin VB.Frame Frame3 
  26.       Caption         =   " Facebook Information "
  27.       Height          =   1035
  28.       Left            =   120
  29.       TabIndex        =   8
  30.       Top             =   870
  31.       Width           =   8040
  32.       Begin VB.CheckBox Check1 
  33.          Caption         =   "Save My Data"
  34.          Height          =   240
  35.          Left            =   4860
  36.          TabIndex        =   23
  37.          Top             =   675
  38.          Width           =   3015
  39.       End
  40.       Begin VB.TextBox Text3 
  41.          Height          =   360
  42.          IMEMode         =   3  'DISABLE
  43.          Left            =   4860
  44.          MaxLength       =   255
  45.          PasswordChar    =   "*"
  46.          TabIndex        =   12
  47.          Top             =   300
  48.          Width           =   3060
  49.       End
  50.       Begin VB.TextBox Text2 
  51.          Height          =   360
  52.          Left            =   735
  53.          MaxLength       =   255
  54.          TabIndex        =   10
  55.          Top             =   300
  56.          Width           =   3060
  57.       End
  58.       Begin VB.Label Label15 
  59.          Caption         =   "Why I have to supply these?"
  60.          BeginProperty Font 
  61.             Name            =   "Verdana"
  62.             Size            =   8.25
  63.             Charset         =   162
  64.             Weight          =   400
  65.             Underline       =   -1  'True
  66.             Italic          =   0   'False
  67.             Strikethrough   =   0   'False
  68.          EndProperty
  69.          Height          =   270
  70.          Left            =   735
  71.          MousePointer    =   14  'Arrow and Question
  72.          TabIndex        =   21
  73.          Top             =   705
  74.          Width           =   3120
  75.       End
  76.       Begin VB.Label Label6 
  77.          BackStyle       =   0  'Transparent
  78.          Caption         =   "Password"
  79.          Height          =   240
  80.          Left            =   3960
  81.          TabIndex        =   11
  82.          Top             =   360
  83.          Width           =   930
  84.       End
  85.       Begin VB.Label Label5 
  86.          BackStyle       =   0  'Transparent
  87.          Caption         =   "Email"
  88.          Height          =   240
  89.          Left            =   195
  90.          TabIndex        =   9
  91.          Top             =   360
  92.          Width           =   495
  93.       End
  94.    End
  95.    Begin InetCtlsObjects.Inet Inet1 
  96.       Left            =   405
  97.       Top             =   4935
  98.       _ExtentX        =   1005
  99.       _ExtentY        =   1005
  100.       _Version        =   393216
  101.    End
  102.    Begin VB.CommandButton Command3 
  103.       Caption         =   "Exit"
  104.       Height          =   375
  105.       Left            =   6180
  106.       TabIndex        =   7
  107.       Top             =   4320
  108.       Width           =   1965
  109.    End
  110.    Begin VB.Frame Frame1 
  111.       Caption         =   " File Information "
  112.       Height          =   2355
  113.       Left            =   120
  114.       TabIndex        =   3
  115.       Top             =   1935
  116.       Width           =   8040
  117.       Begin ComctlLib.ProgressBar ProgressBar1 
  118.          Height          =   300
  119.          Left            =   2895
  120.          TabIndex        =   13
  121.          Top             =   1965
  122.          Width           =   5040
  123.          _ExtentX        =   8890
  124.          _ExtentY        =   529
  125.          _Version        =   327682
  126.          Appearance      =   0
  127.          Min             =   1e-4
  128.       End
  129.       Begin VB.Label Label13 
  130.          Alignment       =   1  'Right Justify
  131.          BackStyle       =   0  'Transparent
  132.          Caption         =   "Remain :"
  133.          Height          =   240
  134.          Left            =   195
  135.          TabIndex        =   20
  136.          Top             =   1425
  137.          Width           =   1380
  138.       End
  139.       Begin VB.Label Label12 
  140.          BackStyle       =   0  'Transparent
  141.          Height          =   240
  142.          Left            =   1620
  143.          TabIndex        =   19
  144.          Top             =   1425
  145.          Width           =   3075
  146.       End
  147.       Begin VB.Label Label11 
  148.          Alignment       =   1  'Right Justify
  149.          BackStyle       =   0  'Transparent
  150.          Caption         =   "Current :"
  151.          Height          =   240
  152.          Left            =   195
  153.          TabIndex        =   18
  154.          Top             =   1695
  155.          Width           =   1380
  156.       End
  157.       Begin VB.Label Label10 
  158.          BackStyle       =   0  'Transparent
  159.          Height          =   240
  160.          Left            =   1620
  161.          TabIndex        =   17
  162.          Top             =   1695
  163.          Width           =   3075
  164.       End
  165.       Begin VB.Label Label9 
  166.          BackStyle       =   0  'Transparent
  167.          BeginProperty Font 
  168.             Name            =   "Verdana"
  169.             Size            =   8.25
  170.             Charset         =   162
  171.             Weight          =   400
  172.             Underline       =   -1  'True
  173.             Italic          =   0   'False
  174.             Strikethrough   =   0   'False
  175.          EndProperty
  176.          ForeColor       =   &H8000000D&
  177.          Height          =   795
  178.          Left            =   1635
  179.          MousePointer    =   14  'Arrow and Question
  180.          TabIndex        =   16
  181.          Top             =   300
  182.          Width           =   6300
  183.          WordWrap        =   -1  'True
  184.       End
  185.       Begin VB.Label Label8 
  186.          BackStyle       =   0  'Transparent
  187.          Height          =   240
  188.          Left            =   1620
  189.          TabIndex        =   15
  190.          Top             =   1170
  191.          Width           =   3075
  192.       End
  193.       Begin VB.Label Label7 
  194.          BackStyle       =   0  'Transparent
  195.          Height          =   240
  196.          Left            =   1635
  197.          TabIndex        =   14
  198.          Top             =   2010
  199.          Width           =   1245
  200.       End
  201.       Begin VB.Label Label4 
  202.          Alignment       =   1  'Right Justify
  203.          BackStyle       =   0  'Transparent
  204.          Caption         =   "Downloaded :"
  205.          Height          =   240
  206.          Left            =   195
  207.          TabIndex        =   6
  208.          Top             =   1995
  209.          Width           =   1380
  210.       End
  211.       Begin VB.Label Label3 
  212.          Alignment       =   1  'Right Justify
  213.          BackStyle       =   0  'Transparent
  214.          Caption         =   "File Size :"
  215.          Height          =   240
  216.          Left            =   195
  217.          TabIndex        =   5
  218.          Top             =   1170
  219.          Width           =   1380
  220.       End
  221.       Begin VB.Label Label2 
  222.          Alignment       =   1  'Right Justify
  223.          BackStyle       =   0  'Transparent
  224.          Caption         =   "Local File :"
  225.          Height          =   240
  226.          Left            =   195
  227.          TabIndex        =   4
  228.          Top             =   300
  229.          Width           =   1380
  230.       End
  231.    End
  232.    Begin VB.CommandButton Command1 
  233.       Caption         =   "Grab!"
  234.       Height          =   375
  235.       Left            =   7170
  236.       TabIndex        =   2
  237.       Top             =   360
  238.       Width           =   990
  239.    End
  240.    Begin VB.TextBox Text1 
  241.       BeginProperty Font 
  242.          Name            =   "Verdana"
  243.          Size            =   9.75
  244.          Charset         =   162
  245.          Weight          =   400
  246.          Underline       =   0   'False
  247.          Italic          =   0   'False
  248.          Strikethrough   =   0   'False
  249.       EndProperty
  250.       Height          =   375
  251.       Left            =   105
  252.       MaxLength       =   255
  253.       TabIndex        =   1
  254.       Top             =   375
  255.       Width           =   7035
  256.    End
  257.    Begin InetCtlsObjects.Inet Inet2 
  258.       Left            =   1320
  259.       Top             =   4950
  260.       _ExtentX        =   1005
  261.       _ExtentY        =   1005
  262.       _Version        =   393216
  263.    End
  264.    Begin VB.Label Label16 
  265.       BackStyle       =   0  'Transparent
  266.       BorderStyle     =   1  'Fixed Single
  267.       Caption         =   "Status :"
  268.       Height          =   285
  269.       Left            =   120
  270.       TabIndex        =   22
  271.       Top             =   4365
  272.       Width           =   6015
  273.    End
  274.    Begin VB.Label Label1 
  275.       BackStyle       =   0  'Transparent
  276.       Caption         =   "Address :"
  277.       Height          =   255
  278.       Left            =   75
  279.       TabIndex        =   0
  280.       Top             =   105
  281.       Width           =   2910
  282.    End
  283.    Begin VB.Menu mnuTools 
  284.       Caption         =   "Tools"
  285.       Begin VB.Menu mnuLang 
  286.          Caption         =   "Language"
  287.       End
  288.    End
  289.    Begin VB.Menu mnuHelp 
  290.       Caption         =   "Help"
  291.       Begin VB.Menu mnuWeb 
  292.          Caption         =   "Web Site"
  293.       End
  294.       Begin VB.Menu mnuSeperator 
  295.          Caption         =   "-"
  296.       End
  297.       Begin VB.Menu mnuAbout 
  298.          Caption         =   "About"
  299.       End
  300.    End
  301. End
  302. Attribute VB_Name = "Form1"
  303. Attribute VB_GlobalNameSpace = False
  304. Attribute VB_Creatable = False
  305. Attribute VB_PredeclaredId = True
  306. Attribute VB_Exposed = False
  307. Option Explicit
  308.  
  309. Private Sub Check1_Click()
  310.     If Check1.Value = vbChecked Then
  311.         WriteConfFile
  312.     End If
  313. End Sub
  314.  
  315. Private Sub Command1_Click()
  316.     Dim checkSiteName As String
  317.  
  318.         checkSiteName = checkSite(Text1.Text)
  319.         If checkSiteName = "youtube" Then
  320.             Dim fbYoutubePage As New youtube
  321.             fbYoutubePage.downloadYoutubeVideo Text1.Text
  322.         ElseIf checkSiteName = "facebook" Then
  323.             If (Text2.Text <> "" And Text3.Text <> "") Then
  324.                     Dim fbFacebookPage As New facebook
  325.                     
  326.                     Text1.Text = Text1.Text + "&"
  327.                     fbFacebookPage.downloadFacebookVideo Text1.Text
  328.                 Else
  329.                     MsgBox xmlDoc.langVar(0).strFull(16), vbExclamation + vbOKOnly + vbSystemModal, "Video Grabber"
  330.                     Text2.SetFocus
  331.             End If
  332.         Else
  333.             '
  334.         End If
  335.     
  336. End Sub
  337.  
  338. Private Sub Command3_Click()
  339.     Unload Me
  340. End Sub
  341.  
  342. Private Sub Form_Load()
  343.     InitCommonControlsVB
  344.     ReadConfFile
  345.     loadLangXMLDoc
  346. End Sub
  347.  
  348. Private Sub Label14_DblClick()
  349.  
  350. End Sub
  351.  
  352. Private Sub Form_Unload(Cancel As Integer)
  353.     WriteConfFile
  354.     End
  355. End Sub
  356.  
  357. Private Sub Label15_DblClick()
  358.     MsgBox xmlDoc.langVar(0).strFull(6), vbOKOnly + vbInformation + vbApplicationModal, "Video Grabber"
  359. End Sub
  360.  
  361. Private Sub Label9_DblClick()
  362.     If Label9.Caption <> "" Then
  363.         Shell "explorer.exe """ & Label9.Caption & """"
  364.     End If
  365. End Sub
  366.  
  367. Private Sub mnuAraclar_Click()
  368.  
  369. End Sub
  370.  
  371. Private Sub mnuAbout_Click()
  372.     MsgBox "⌐ 2008, Mustafa Berkan BICER", vbOKOnly + vbInformation, "Author"
  373. End Sub
  374.  
  375. Private Sub mnuLang_Click()
  376.     frmLang.Show 1
  377. End Sub
  378.  
  379. Private Sub mnuWeb_Click()
  380.     Shell "explorer.exe ""http://www.mustafaberkanbicer.com.tr"""
  381. End Sub
  382.  
  383. Private Sub Text1_DblClick()
  384.     Text1.SelStart = 0
  385.     Text1.SelLength = Len(Text1.Text)
  386. End Sub
  387.  
  388. Private Sub Text2_DblClick()
  389.     Text2.SelStart = 0
  390.     Text2.SelLength = Len(Text2.Text)
  391. End Sub
  392.  
  393. Private Sub Text3_DblClick()
  394.     Text3.SelStart = 0
  395.     Text3.SelLength = Len(Text3.Text)
  396. End Sub
  397.