home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 4_2005-2006.ISO / data / Zips / Java_Effec189601622005.psc / frmJava.frm < prev    next >
Text File  |  2005-06-03  |  31KB  |  927 lines

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  3. Begin VB.Form frmJava 
  4.    Caption         =   "Javascript Source Code"
  5.    ClientHeight    =   7335
  6.    ClientLeft      =   60
  7.    ClientTop       =   450
  8.    ClientWidth     =   10830
  9.    Icon            =   "frmJava.frx":0000
  10.    KeyPreview      =   -1  'True
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   7335
  13.    ScaleWidth      =   10830
  14.    StartUpPosition =   2  'CenterScreen
  15.    Begin VB.Timer tmrClipboard 
  16.       Interval        =   1000
  17.       Left            =   -1440
  18.       Top             =   3480
  19.    End
  20.    Begin MSComDlg.CommonDialog CD 
  21.       Left            =   -1800
  22.       Top             =   3480
  23.       _ExtentX        =   847
  24.       _ExtentY        =   847
  25.       _Version        =   393216
  26.    End
  27.    Begin VB.CommandButton cmdCreate 
  28.       Caption         =   "Create &HTM"
  29.       Enabled         =   0   'False
  30.       BeginProperty Font 
  31.          Name            =   "Tahoma"
  32.          Size            =   8.25
  33.          Charset         =   0
  34.          Weight          =   700
  35.          Underline       =   0   'False
  36.          Italic          =   0   'False
  37.          Strikethrough   =   0   'False
  38.       EndProperty
  39.       Height          =   255
  40.       Left            =   6720
  41.       TabIndex        =   14
  42.       Top             =   6960
  43.       Width           =   3975
  44.    End
  45.    Begin VB.Timer tmrProcess 
  46.       Enabled         =   0   'False
  47.       Interval        =   1000
  48.       Left            =   -2040
  49.       Top             =   3480
  50.    End
  51.    Begin VB.PictureBox picProgress 
  52.       Appearance      =   0  'Flat
  53.       BackColor       =   &H80000005&
  54.       ForeColor       =   &H80000008&
  55.       Height          =   255
  56.       Left            =   6720
  57.       ScaleHeight     =   225
  58.       ScaleWidth      =   3945
  59.       TabIndex        =   20
  60.       Top             =   6600
  61.       Width           =   3975
  62.    End
  63.    Begin VB.Frame Frame3 
  64.       Caption         =   "Menus:"
  65.       Enabled         =   0   'False
  66.       BeginProperty Font 
  67.          Name            =   "Tahoma"
  68.          Size            =   8.25
  69.          Charset         =   0
  70.          Weight          =   700
  71.          Underline       =   0   'False
  72.          Italic          =   0   'False
  73.          Strikethrough   =   0   'False
  74.       EndProperty
  75.       Height          =   1935
  76.       Left            =   3360
  77.       TabIndex        =   19
  78.       Top             =   5280
  79.       Width           =   3255
  80.       Begin VB.TextBox txtMen 
  81.          Appearance      =   0  'Flat
  82.          BeginProperty Font 
  83.             Name            =   "Tahoma"
  84.             Size            =   8.25
  85.             Charset         =   0
  86.             Weight          =   700
  87.             Underline       =   0   'False
  88.             Italic          =   0   'False
  89.             Strikethrough   =   0   'False
  90.          EndProperty
  91.          Height          =   315
  92.          Index           =   3
  93.          Left            =   240
  94.          TabIndex        =   11
  95.          Top             =   1440
  96.          Width           =   2775
  97.       End
  98.       Begin VB.TextBox txtMen 
  99.          Appearance      =   0  'Flat
  100.          BeginProperty Font 
  101.             Name            =   "Tahoma"
  102.             Size            =   8.25
  103.             Charset         =   0
  104.             Weight          =   700
  105.             Underline       =   0   'False
  106.             Italic          =   0   'False
  107.             Strikethrough   =   0   'False
  108.          EndProperty
  109.          Height          =   315
  110.          Index           =   2
  111.          Left            =   240
  112.          TabIndex        =   10
  113.          Top             =   1080
  114.          Width           =   2775
  115.       End
  116.       Begin VB.TextBox txtMen 
  117.          Appearance      =   0  'Flat
  118.          BeginProperty Font 
  119.             Name            =   "Tahoma"
  120.             Size            =   8.25
  121.             Charset         =   0
  122.             Weight          =   700
  123.             Underline       =   0   'False
  124.             Italic          =   0   'False
  125.             Strikethrough   =   0   'False
  126.          EndProperty
  127.          Height          =   315
  128.          Index           =   1
  129.          Left            =   240
  130.          TabIndex        =   9
  131.          Top             =   720
  132.          Width           =   2775
  133.       End
  134.       Begin VB.TextBox txtMen 
  135.          Appearance      =   0  'Flat
  136.          BeginProperty Font 
  137.             Name            =   "Tahoma"
  138.             Size            =   8.25
  139.             Charset         =   0
  140.             Weight          =   700
  141.             Underline       =   0   'False
  142.             Italic          =   0   'False
  143.             Strikethrough   =   0   'False
  144.          EndProperty
  145.          Height          =   315
  146.          Index           =   0
  147.          Left            =   240
  148.          TabIndex        =   8
  149.          Top             =   360
  150.          Width           =   2775
  151.       End
  152.    End
  153.    Begin VB.Frame Frame2 
  154.       Caption         =   "Command:"
  155.       BeginProperty Font 
  156.          Name            =   "Tahoma"
  157.          Size            =   8.25
  158.          Charset         =   0
  159.          Weight          =   700
  160.          Underline       =   0   'False
  161.          Italic          =   0   'False
  162.          Strikethrough   =   0   'False
  163.       EndProperty
  164.       Height          =   1095
  165.       Left            =   6720
  166.       TabIndex        =   18
  167.       Top             =   5280
  168.       Width           =   3975
  169.       Begin VB.CommandButton cmdClear 
  170.          Caption         =   "Cle&ar"
  171.          Enabled         =   0   'False
  172.          BeginProperty Font 
  173.             Name            =   "Tahoma"
  174.             Size            =   8.25
  175.             Charset         =   0
  176.             Weight          =   700
  177.             Underline       =   0   'False
  178.             Italic          =   0   'False
  179.             Strikethrough   =   0   'False
  180.          EndProperty
  181.          Height          =   495
  182.          Left            =   2640
  183.          TabIndex        =   13
  184.          Top             =   360
  185.          Width           =   975
  186.       End
  187.       Begin VB.CommandButton cmdCopy 
  188.          Caption         =   "&Copy To Clipboard"
  189.          Enabled         =   0   'False
  190.          BeginProperty Font 
  191.             Name            =   "Tahoma"
  192.             Size            =   8.25
  193.             Charset         =   0
  194.             Weight          =   700
  195.             Underline       =   0   'False
  196.             Italic          =   0   'False
  197.             Strikethrough   =   0   'False
  198.          EndProperty
  199.          Height          =   495
  200.          Left            =   360
  201.          TabIndex        =   12
  202.          Top             =   360
  203.          Width           =   2175
  204.       End
  205.    End
  206.    Begin VB.TextBox txtOutput 
  207.       Appearance      =   0  'Flat
  208.       BeginProperty Font 
  209.          Name            =   "Tahoma"
  210.          Size            =   8.25
  211.          Charset         =   0
  212.          Weight          =   700
  213.          Underline       =   0   'False
  214.          Italic          =   0   'False
  215.          Strikethrough   =   0   'False
  216.       EndProperty
  217.       Height          =   4455
  218.       Left            =   120
  219.       Locked          =   -1  'True
  220.       MultiLine       =   -1  'True
  221.       ScrollBars      =   2  'Vertical
  222.       TabIndex        =   16
  223.       TabStop         =   0   'False
  224.       Top             =   720
  225.       Width           =   10575
  226.    End
  227.    Begin VB.Frame Frame1 
  228.       Caption         =   "Java Effects:"
  229.       BeginProperty Font 
  230.          Name            =   "Tahoma"
  231.          Size            =   8.25
  232.          Charset         =   0
  233.          Weight          =   700
  234.          Underline       =   0   'False
  235.          Italic          =   0   'False
  236.          Strikethrough   =   0   'False
  237.       EndProperty
  238.       Height          =   1935
  239.       Left            =   120
  240.       TabIndex        =   15
  241.       Top             =   5280
  242.       Width           =   3135
  243.       Begin VB.CommandButton cmdTextGen 
  244.          Caption         =   "&Generate"
  245.          Enabled         =   0   'False
  246.          BeginProperty Font 
  247.             Name            =   "Tahoma"
  248.             Size            =   8.25
  249.             Charset         =   0
  250.             Weight          =   700
  251.             Underline       =   0   'False
  252.             Italic          =   0   'False
  253.             Strikethrough   =   0   'False
  254.          EndProperty
  255.          Height          =   375
  256.          Left            =   1440
  257.          TabIndex        =   7
  258.          Top             =   1320
  259.          Width           =   1455
  260.       End
  261.       Begin VB.VScrollBar VS 
  262.          Enabled         =   0   'False
  263.          Height          =   315
  264.          Left            =   870
  265.          TabIndex        =   6
  266.          Top             =   1320
  267.          Width           =   255
  268.       End
  269.       Begin VB.TextBox txtInt 
  270.          Alignment       =   2  'Center
  271.          Appearance      =   0  'Flat
  272.          Enabled         =   0   'False
  273.          BeginProperty Font 
  274.             Name            =   "Tahoma"
  275.             Size            =   8.25
  276.             Charset         =   0
  277.             Weight          =   700
  278.             Underline       =   0   'False
  279.             Italic          =   0   'False
  280.             Strikethrough   =   0   'False
  281.          EndProperty
  282.          Height          =   315
  283.          Left            =   240
  284.          TabIndex        =   5
  285.          Top             =   1320
  286.          Width           =   615
  287.       End
  288.       Begin VB.ComboBox cmbOptions 
  289.          Appearance      =   0  'Flat
  290.          BeginProperty Font 
  291.             Name            =   "Tahoma"
  292.             Size            =   8.25
  293.             Charset         =   0
  294.             Weight          =   700
  295.             Underline       =   0   'False
  296.             Italic          =   0   'False
  297.             Strikethrough   =   0   'False
  298.          EndProperty
  299.          Height          =   315
  300.          Left            =   120
  301.          Style           =   2  'Dropdown List
  302.          TabIndex        =   3
  303.          Top             =   600
  304.          Width           =   2895
  305.       End
  306.       Begin VB.Label Label3 
  307.          AutoSize        =   -1  'True
  308.          Caption         =   "&Interval:"
  309.          BeginProperty Font 
  310.             Name            =   "Tahoma"
  311.             Size            =   8.25
  312.             Charset         =   0
  313.             Weight          =   700
  314.             Underline       =   0   'False
  315.             Italic          =   0   'False
  316.             Strikethrough   =   0   'False
  317.          EndProperty
  318.          Height          =   195
  319.          Left            =   240
  320.          TabIndex        =   4
  321.          Top             =   1080
  322.          Width           =   735
  323.       End
  324.       Begin VB.Label Label2 
  325.          AutoSize        =   -1  'True
  326.          Caption         =   "&Style:"
  327.          BeginProperty Font 
  328.             Name            =   "Tahoma"
  329.             Size            =   8.25
  330.             Charset         =   0
  331.             Weight          =   700
  332.             Underline       =   0   'False
  333.             Italic          =   0   'False
  334.             Strikethrough   =   0   'False
  335.          EndProperty
  336.          Height          =   195
  337.          Left            =   120
  338.          TabIndex        =   2
  339.          Top             =   360
  340.          Width           =   480
  341.       End
  342.    End
  343.    Begin VB.TextBox txtMes 
  344.       Appearance      =   0  'Flat
  345.       Enabled         =   0   'False
  346.       BeginProperty Font 
  347.          Name            =   "Tahoma"
  348.          Size            =   8.25
  349.          Charset         =   0
  350.          Weight          =   700
  351.          Underline       =   0   'False
  352.          Italic          =   0   'False
  353.          Strikethrough   =   0   'False
  354.       EndProperty
  355.       Height          =   285
  356.       Left            =   720
  357.       TabIndex        =   1
  358.       Top             =   120
  359.       Width           =   9975
  360.    End
  361.    Begin VB.Label lblDisplay 
  362.       AutoSize        =   -1  'True
  363.       BeginProperty Font 
  364.          Name            =   "Tahoma"
  365.          Size            =   8.25
  366.          Charset         =   0
  367.          Weight          =   700
  368.          Underline       =   0   'False
  369.          Italic          =   0   'False
  370.          Strikethrough   =   0   'False
  371.       EndProperty
  372.       Height          =   195
  373.       Left            =   6720
  374.       TabIndex        =   21
  375.       Top             =   6360
  376.       Width           =   45
  377.    End
  378.    Begin VB.Label Label4 
  379.       Alignment       =   2  'Center
  380.       AutoSize        =   -1  'True
  381.       Caption         =   "Javascript Source Code:"
  382.       BeginProperty Font 
  383.          Name            =   "Tahoma"
  384.          Size            =   8.25
  385.          Charset         =   0
  386.          Weight          =   700
  387.          Underline       =   0   'False
  388.          Italic          =   0   'False
  389.          Strikethrough   =   0   'False
  390.       EndProperty
  391.       Height          =   195
  392.       Left            =   4380
  393.       TabIndex        =   17
  394.       Top             =   480
  395.       Width           =   2055
  396.    End
  397.    Begin VB.Label Label1 
  398.       AutoSize        =   -1  'True
  399.       Caption         =   "&Text:"
  400.       BeginProperty Font 
  401.          Name            =   "Tahoma"
  402.          Size            =   8.25
  403.          Charset         =   0
  404.          Weight          =   700
  405.          Underline       =   0   'False
  406.          Italic          =   0   'False
  407.          Strikethrough   =   0   'False
  408.       EndProperty
  409.       Height          =   195
  410.       Left            =   120
  411.       TabIndex        =   0
  412.       Top             =   120
  413.       Width           =   435
  414.    End
  415. End
  416. Attribute VB_Name = "frmJava"
  417. Attribute VB_GlobalNameSpace = False
  418. Attribute VB_Creatable = False
  419. Attribute VB_PredeclaredId = True
  420. Attribute VB_Exposed = False
  421. Option Explicit
  422.  
  423. Private Sub cmbOptions_Click()
  424.     If cmbOptions.ListIndex = 6 Then
  425.         Frame3.Enabled = False
  426.         txtMes.Enabled = False
  427.         txtInt.Enabled = True
  428.         VS.Enabled = True
  429.         cmdTextGen.Enabled = True
  430.         VS.Value = 30
  431.         txtInt = VS.Value
  432.         Exit Sub
  433.     End If
  434.     If cmbOptions.ListIndex = 10 Or cmbOptions.ListIndex = 11 Then
  435.         Frame3.Enabled = True
  436.         txtMes.Enabled = False
  437.         txtInt.Enabled = False
  438.         VS.Enabled = False
  439.         cmdTextGen.Enabled = True
  440.         Exit Sub
  441.     End If
  442.     If cmbOptions.ListIndex = 8 Or cmbOptions.ListIndex = 9 Then
  443.         txtMes.Enabled = False
  444.         txtInt.Enabled = True
  445.         VS.Enabled = True
  446.         cmdTextGen.Enabled = True
  447.         Frame3.Enabled = False
  448.         Exit Sub
  449.     Else
  450.         cmdTextGen.Enabled = True
  451.         Frame3.Enabled = False
  452.         txtMes.Enabled = True
  453.         txtInt.Enabled = False
  454.         VS.Enabled = False
  455.     End If
  456.     If cmbOptions.ListIndex > 5 Then
  457.         cmdTextGen.Enabled = True
  458.         txtMes.Enabled = False
  459.         Frame3.Enabled = False
  460.         txtInt.Enabled = False
  461.         VS.Enabled = False
  462.     Else
  463.         cmdTextGen.Enabled = True
  464.         Frame3.Enabled = False
  465.         txtMes.Enabled = True
  466.         txtInt.Enabled = True
  467.         VS.Enabled = True
  468.     End If
  469.     If cmbOptions.ListIndex = 12 Or cmbOptions.ListIndex = 13 Or _
  470.             cmbOptions.ListIndex = 15 Or cmbOptions.ListIndex = 16 Then
  471.         cmdTextGen.Enabled = True
  472.     End If
  473.     If cmbOptions.ListIndex = 18 Then
  474.         txtMes.Enabled = True
  475.     End If
  476.     If cmbOptions.ListIndex = 17 Then
  477.         txtMes.Enabled = False
  478.         txtInt.Enabled = False
  479.         VS.Enabled = False
  480.         cmdTextGen.Enabled = True
  481.         Frame3.Enabled = True
  482.         Frame3 = "Web Links:"
  483.         Exit Sub
  484.     Else
  485.         Frame3 = "Menus:"
  486.     End If
  487.     If cmbOptions.ListIndex = 14 Then
  488.         cmdTextGen.Enabled = True
  489.         txtInt.Enabled = True
  490.         VS.Enabled = True
  491.         Label3 = "&Expiration Date:"
  492.         VS.Value = 30
  493.         txtInt = VS.Value
  494.     Else
  495.         Label3 = "&Interval:"
  496.     End If
  497.     Select Case cmbOptions.ListIndex
  498.         Case 0, 1, 2, 3, 4, 5
  499.             VS.Value = 50
  500.             txtInt = VS.Value
  501.     End Select
  502. End Sub
  503.  
  504. Private Sub cmdClear_Click()
  505.     Dim X As Integer
  506.     txtMes = vbNullString
  507.     txtOutput = vbNullString
  508.     VS.Value = VS.Min
  509.     txtInt = VS.Value
  510.     Clipboard.Clear
  511.     cmbOptions.ListIndex = -1
  512.     cmdTextGen.Enabled = False
  513.     txtMes.Enabled = False
  514.     txtInt.Enabled = False
  515.     VS.Enabled = False
  516.     cmdCopy.Enabled = False
  517.     cmdCreate.Enabled = False
  518.     cmdClear.Enabled = False
  519.     Frame3.Enabled = False
  520.     Label3 = "&Interval"
  521.     Frame3 = "Menus:"
  522.     For X = 0 To 3
  523.         txtMen(X) = vbNullString
  524.     Next X
  525.     Form_Load
  526.     On Error Resume Next
  527.     txtMes.SetFocus
  528. End Sub
  529.  
  530. Private Sub cmdCopy_Click()
  531.     Clipboard.Clear
  532.     Clipboard.SetText TextString
  533.     cmdClear.Enabled = True
  534.     On Error Resume Next
  535.     txtMes.SetFocus
  536. End Sub
  537.  
  538. Private Sub cmdCreate_Click()
  539.     If Not txtOutput = vbNullString Then
  540.         On Error GoTo ErrSave
  541.         CD.Filter = "All Files (*.*)|*.*|Web Pages (*.html;*.htm)|*.htm;*.html|Text Files (*.txt)|*.txt"
  542.         CD.CancelError = True
  543.         CD.FilterIndex = 2
  544.         CD.DialogTitle = "Export Source Code"
  545.         CD.Flags = &H2
  546.         CD.FileName = cmbOptions.List(cmbOptions.ListIndex)
  547.         CD.ShowSave
  548.         If Not CD.FileName = vbNullString Then
  549.             Open CD.FileName For Output As #1
  550.             CreateDocument cmbOptions.ListIndex, txtMes, Val(Trim$(txtInt)), cmbOptions.List(cmbOptions.ListIndex)
  551.             Close #1
  552.         End If
  553.     Else
  554.         MsgBox "There is no codes to create.", vbOKOnly + vbExclamation + vbApplicationModal, "Java Effects"
  555.         Exit Sub
  556.     End If
  557.     Exit Sub
  558.  
  559. ErrSave:
  560. End Sub
  561.  
  562. Private Sub cmdTextGen_Click()
  563.     If cmbOptions.ListIndex >= 0 And cmbOptions.ListIndex <= 5 Then
  564.         If txtMes = vbNullString Then
  565.             MsgBox "Please fill-up " & """" & "TEXT" & """" & " to complete the task.", vbOKOnly + vbCritical + vbApplicationModal, "Java Effects"
  566.             Exit Sub
  567.         ElseIf txtInt = vbNullString Then
  568.             MsgBox "Please fill-up " & """" & "INTERVAL" & """" & " to complete the task.", vbOKOnly + vbCritical + vbApplicationModal, "Java Effects"
  569.             Exit Sub
  570.         End If
  571.     ElseIf cmbOptions.ListIndex = 10 Or cmbOptions.ListIndex = 11 Then
  572.         If txtMen(0) = vbNullString Or txtMen(1) = vbNullString Or txtMen(2) = vbNullString Or txtMen(3) = vbNullString Then
  573.             MsgBox "Please fill-up " & """" & "MENUS" & """" & " to complete the task.", vbOKOnly + vbCritical + vbApplicationModal, "Java Effects"
  574.             Exit Sub
  575.         ElseIf txtInt = vbNullString Then
  576.             MsgBox "Please fill-up " & """" & "INTERVAL" & """" & " to complete the task.", vbOKOnly + vbCritical + vbApplicationModal, "Java Effects"
  577.             Exit Sub
  578.         Else
  579.             If InStr(txtMen(0), ".") = 0 Or InStr(txtMen(1), ".") = 0 Or InStr(txtMen(2), ".") = 0 Or InStr(txtMen(3), ".") = 0 Then
  580.                 MsgBox "Invalid Web Links.", vbOKOnly + vbApplicationModal + vbCritical, "Java Effects"
  581.                 Exit Sub
  582.             Else
  583.                 If InStr(txtMen(0), ".") = Len(txtMen(0)) Or InStr(txtMen(1), ".") = Len(txtMen(1)) Or InStr(txtMen(2), ".") = Len(txtMen(2)) Or InStr(txtMen(3), ".") = Len(txtMen(3)) Then
  584.                     MsgBox "Invalid Web Links.", vbOKOnly + vbApplicationModal + vbCritical, "Java Effects"
  585.                     Exit Sub
  586.                 End If
  587.             End If
  588.         End If
  589.     ElseIf cmbOptions.ListIndex = 6 Then
  590.         If txtInt = vbNullString Then
  591.             MsgBox "Please fill-up " & """" & "INTERVAL" & """" & " to complete the task.", vbOKOnly + vbCritical + vbApplicationModal, "Java Effects"
  592.             Exit Sub
  593.         End If
  594.     ElseIf cmbOptions.ListIndex = 8 Or cmbOptions.ListIndex = 9 Then
  595.         If txtInt = vbNullString Then
  596.             MsgBox "Please fill-up " & """" & "INTERVAL" & """" & " to complete the task.", vbOKOnly + vbCritical + vbApplicationModal, "Java Effects"
  597.             Exit Sub
  598.         End If
  599.     ElseIf cmbOptions.ListIndex = 14 Then
  600.         If txtInt = vbNullString Then
  601.             MsgBox "Please fill-up " & """" & "EXPIRATION DATE" & """" & " to complete the task.", vbOKOnly + vbCritical + vbApplicationModal, "Java Effects"
  602.             Exit Sub
  603.         End If
  604.     ElseIf cmbOptions.ListIndex = 17 Then
  605.         If txtMen(0) = vbNullString Or txtMen(1) = vbNullString Or txtMen(2) = vbNullString Or txtMen(3) = vbNullString Then
  606.             MsgBox "Please fill-up " & """" & "MENUS" & """" & " to complete the task.", vbOKOnly + vbCritical + vbApplicationModal, "Java Effects"
  607.             Exit Sub
  608.         Else
  609.             If InStr(txtMen(0), ".") = 0 Or InStr(txtMen(1), ".") = 0 Or InStr(txtMen(2), ".") = 0 Or InStr(txtMen(3), ".") = 0 Then
  610.                 MsgBox "Invalid Web Links.", vbOKOnly + vbApplicationModal + vbCritical, "Java Effects"
  611.                 Exit Sub
  612.             Else
  613.                 If InStr(txtMen(0), ".") = Len(txtMen(0)) Or InStr(txtMen(1), ".") = Len(txtMen(1)) Or InStr(txtMen(2), ".") = Len(txtMen(2)) Or InStr(txtMen(3), ".") = Len(txtMen(3)) Then
  614.                     MsgBox "Invalid Web Links.", vbOKOnly + vbApplicationModal + vbCritical, "Java Effects"
  615.                     Exit Sub
  616.                 End If
  617.             End If
  618.         End If
  619.     ElseIf cmbOptions.ListIndex = 18 Then
  620.         If txtMes = vbNullString Then
  621.             MsgBox "Please fill-up " & """" & "TEXT" & """" & " to complete the task.", vbOKOnly + vbCritical + vbApplicationModal, "Java Effects"
  622.             Exit Sub
  623.         End If
  624.     End If
  625.     MousePointer = FormMouse(Me, 11)
  626.     Mode = False
  627.     Generating = True
  628.     Call ResetValue(Mode)
  629.     LoopTimes = 0
  630.     txtOutput = vbNullString
  631.     tmrProcess.Enabled = True
  632.     cmdTextGen.Enabled = False
  633.     cmbOptions.Enabled = False
  634.     cmdCopy.Enabled = False
  635.     txtOutput.Enabled = False
  636.     txtMes.Enabled = False
  637.     Frame3.Enabled = False
  638.     txtInt.Enabled = False
  639.     VS.Enabled = False
  640.     cmdClear.Enabled = False
  641.     cmdCreate.Enabled = False
  642.     On Error Resume Next
  643.     txtMes.SetFocus
  644. End Sub
  645.  
  646. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
  647.     If KeyCode = vbKeyEscape Then Unload Me
  648.     If KeyCode = vbKeyReturn Then If Not cmdTextGen.Enabled = False Then cmdTextGen_Click
  649. End Sub
  650.  
  651. Private Sub Form_Load()
  652.     Sleep 1000
  653.     If Not (Not UCase$(GetSetting(Caption, "WindowState", "350")) = vbNullString) = UCase$("false") Then
  654.         WindowState = Val(Trim$(GetSetting(Caption, "WindowState", "350")))
  655.     Else
  656.         WindowState = 0
  657.         SaveSetting Caption, "WindowState", "350", WindowState
  658.     End If
  659.     If ApplicationRunning Then
  660.         MsgBox "Java Effects can only run one at a time!", vbOKOnly + vbExclamation + vbApplicationModal, "Java Effects"
  661.         End
  662.     End If
  663.     If WindowState = 0 Then
  664.         Height = 7845
  665.         Width = 10950
  666.     End If
  667.     cmbOptions.Clear
  668.     With cmbOptions
  669.         .AddItem "From Left"
  670.         .AddItem "From Right"
  671.         .AddItem "Letter By Letter"
  672.         .AddItem "Text Run Out"
  673.         .AddItem "Sneezy Text"
  674.         .AddItem "Scrolling Text"
  675.         .AddItem "Mouse Trail Clock"
  676.         .AddItem "No Right Click (No Alert)"
  677.         .AddItem "Shake Me"
  678.         .AddItem "Shake Screen"
  679.         .AddItem "Movable Menu"
  680.         .AddItem "Portable Menu"
  681.         .AddItem "Background Changer"
  682.         .AddItem "Search The Dictionary"
  683.         .AddItem "Visit Counter"
  684.         .AddItem "Search The Internet"
  685.         .AddItem "IP Grabber"
  686.         .AddItem "Multi Site Search"
  687.         .AddItem "Remove Ads"
  688.     End With
  689.     VS.Min = 1000
  690.     VS.Max = 10
  691.     VS.Value = 10
  692.     txtInt = VS.Value
  693.     If Not ClipboardWatcher Then
  694.         cmdClear.Enabled = False
  695.     Else
  696.         cmdClear.Enabled = True
  697.     End If
  698.     Mode = False
  699.     ResetValue Mode
  700. End Sub
  701.  
  702. Private Sub Form_Resize()
  703.     If Not WindowState = 1 Then
  704.         SaveSetting Caption, "WindowState", "350", WindowState
  705.         If Height < 7845 Or Width < 10950 Then
  706.             Width = 10950
  707.             Height = 7845
  708.             Exit Sub
  709.         End If
  710.         Label1.Left = 120
  711.         Label1.Top = 120
  712.         txtMes.Top = 120
  713.         txtMes.Left = Label1.Left + Label1.Width + 120
  714.         txtMes.Width = Width - (Label1.Left + Label1.Width + (120 * 3))
  715.         Label4.Top = (120 * 2) + txtMes.Height
  716.         Label4.Left = (Width / 2) - (Label4.Width / 2)
  717.         txtOutput.Left = 120
  718.         txtOutput.Width = Width - (120 * 3)
  719.         txtOutput.Top = ((120 * 3) + txtMes.Height + Label4.Height)
  720.         Frame1.Top = Height - (Frame1.Height + 120) - (120 * 4)
  721.         Frame1.Left = 120
  722.         Frame3.Top = Frame1.Top
  723.         Frame3.Left = Frame1.Left + Frame1.Width + 120
  724.         txtOutput.Height = Frame1.Top - 120 - txtOutput.Top
  725.         Frame2.Top = Frame3.Top
  726.         Frame2.Left = Frame3.Left + Frame3.Width + 120
  727.         lblDisplay.Top = Frame2.Top + Frame2.Height
  728.         lblDisplay.Left = Frame2.Left
  729.         picProgress.Top = lblDisplay.Top + lblDisplay.Height
  730.         picProgress.Left = lblDisplay.Left
  731.         cmdCreate.Top = picProgress.Top + picProgress.Height + 120
  732.         cmdCreate.Left = picProgress.Left
  733.     End If
  734.     If WindowState = 0 Then
  735.         Left = (Screen.Width / 2) - (Width / 2)
  736.         Top = (Screen.Height / 2) - (Height / 2)
  737.     End If
  738. End Sub
  739.  
  740. Private Sub Form_Unload(Cancel As Integer)
  741.     If Generating = False Then
  742.         Beep
  743.         If MsgBox("Are you sure do you want to quit now?", vbYesNo + vbQuestion + vbApplicationModal + vbDefaultButton2, Caption) = vbYes Then
  744.             Sleep 1000
  745.             SaveSetting Caption, "WindowState", "350", WindowState
  746.             End
  747.         End If
  748.     Else
  749.         MsgBox "Application is buzy generating your request. Please wait until the application has been finished what it's doing.", vbOKOnly + vbCritical + vbApplicationModal, "Java Effects"
  750.     End If
  751.     Cancel = 1
  752. End Sub
  753.  
  754. Private Sub tmrClipboard_Timer()
  755.     If Not tmrProcess.Enabled = True Then
  756.         If Not ClipboardWatcher Then
  757.             cmdClear.Enabled = False
  758.         Else
  759.             cmdClear.Enabled = True
  760.         End If
  761.     End If
  762. End Sub
  763.  
  764. Private Sub tmrProcess_Timer()
  765.     Randomize
  766.     If Repeat = False Then
  767.         If Wait = False Then
  768.             If Process >= 80 Then
  769.                 If Process >= 90 Then
  770.                     tmrProcess.Interval = (Rnd * 100) + 10
  771.                     MoreThan = True
  772.                 Else
  773.                     tmrProcess.Interval = (Rnd * 500) + 10
  774.                 End If
  775.             Else
  776.                 tmrProcess.Interval = (Rnd * 1000) + 100
  777.             End If
  778.             If MoreThan = False Then
  779.                 If Process >= 10 Then
  780.                     Process = Process + (Rnd * 5) + 1
  781.                 Else
  782.                     Process = Process + (Rnd * 3) + 1
  783.                 End If
  784.             Else
  785.                 Process = Process + (Rnd * 3) + 1
  786.             End If
  787.             If Process > 100 Then
  788.                 Process = 100
  789.                 tmrProcess.Interval = (Rnd * 1000) + 100
  790.                 Wait = True
  791.             End If
  792.             lblDisplay = "Generating Script..."
  793.             ProgBar picProgress, CLng(Process), , &H800000
  794.             picProgress.Refresh
  795.         Else
  796.             If HideUnhide = False Then
  797.                 HideUnhide = True
  798.             Else
  799.                 GoTo EndLoop
  800.             End If
  801.         End If
  802.     Else
  803.         GoTo EndLoop
  804.     End If
  805.     If Wait = True Then GoTo EndLoop
  806.     Exit Sub
  807.     
  808. EndLoop:
  809.     Mode = False
  810.     ResetValue Mode
  811.     LoopTimes = LoopTimes + 1
  812.     Sleep 3000
  813.     ProgBar picProgress, CLng(Process), , &H800000
  814.     picProgress.Refresh
  815.     Sleep 1000
  816.     Call Watcher(Me)
  817.     cmdCopy.Enabled = True
  818.     tmrProcess.Enabled = False
  819.     cmbOptions_Click
  820.     txtOutput.Enabled = True
  821.     cmbOptions.Enabled = True
  822.     cmdCreate.Enabled = True
  823.     MousePointer = FormMouse(Me, 0)
  824.     Generating = False
  825.     lblDisplay = vbNullString
  826. End Sub
  827.  
  828. Private Sub txtInt_GotFocus()
  829.     With txtInt
  830.         .SelStart = 0
  831.         .SelLength = Len(.Text)
  832.     End With
  833. End Sub
  834.  
  835. Private Sub txtInt_KeyPress(KeyAscii As Integer)
  836.     Key = Chr$(KeyAscii)
  837.     If KeyAscii = vbKeyBack Then Exit Sub
  838.     If KeyAscii = vbKeyReturn Then
  839.         If Val(Trim$(txtInt)) < VS.Max Then
  840.             txtInt = VS.Max
  841.             VS.Value = VS.Max
  842.             On Error Resume Next
  843.             With txtInt
  844.                 .SetFocus
  845.                 .SelStart = 0
  846.                 .SelLength = Len(.Text)
  847.             End With
  848.             Exit Sub
  849.         End If
  850.         If Not Val(Trim$(txtInt)) > VS.Min Then
  851.             VS.Value = Val(Trim$(txtInt))
  852.             On Error Resume Next
  853.             With txtInt
  854.                 .SetFocus
  855.                 .SelStart = 0
  856.                 .SelLength = Len(.Text)
  857.             End With
  858.             Exit Sub
  859.         Else
  860.             txtInt = VS.Min
  861.             VS.Value = VS.Min
  862.             On Error Resume Next
  863.             With txtInt
  864.                 .SetFocus
  865.                 .SelStart = 0
  866.                 .SelLength = Len(.Text)
  867.             End With
  868.         End If
  869.     End If
  870.     Select Case Key
  871.         Case "0" To "9"
  872.         Case Else
  873.             KeyAscii = 0
  874.     End Select
  875. End Sub
  876.  
  877. Private Sub txtInt_LostFocus()
  878.     If txtInt = vbNullString Or txtInt < VS.Max Then
  879.         txtInt = VS.Max
  880.         VS.Value = VS.Max
  881.     ElseIf txtInt > VS.Min Then
  882.         txtInt = VS.Min
  883.         VS.Value = VS.Min
  884.     End If
  885. End Sub
  886.  
  887. Private Sub txtMen_GotFocus(Index As Integer)
  888.     With txtMen(Index)
  889.         .SelStart = 0
  890.         .SelLength = Len(.Text)
  891.     End With
  892. End Sub
  893.  
  894. Private Sub txtMes_Change()
  895.     If Not txtMes = vbNullString Or Not ClipboardWatcher = False Then
  896.         cmdClear.Enabled = True
  897.     Else
  898.         cmdClear.Enabled = False
  899.     End If
  900. End Sub
  901.  
  902. Private Sub txtMes_GotFocus()
  903.     With txtMes
  904.         .SelStart = 0
  905.         .SelLength = Len(.Text)
  906.     End With
  907. End Sub
  908.  
  909. Private Sub txtOutput_GotFocus()
  910.     On Error Resume Next
  911.     If Not txtMes.Enabled = False Then
  912.         txtMes.SetFocus
  913.     Else
  914.         cmbOptions.SetFocus
  915.     End If
  916. End Sub
  917.  
  918. Private Sub VS_Change()
  919.     txtInt = VS.Value
  920.     On Error Resume Next
  921.     With txtInt
  922.         .SetFocus
  923.         .SelStart = 0
  924.         .SelLength = Len(.Text)
  925.     End With
  926. End Sub
  927.