Results 1 to 4 of 4

Thread: Scriptlet control

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2009
    Posts
    8

    Scriptlet control

    I am using scriptlet control in my project. while run mode it works fine.
    After deploying the application scriptlet control is not working.
    can u pls help me in this regard

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Scriptlet control

    Welcome to the forums.

    What "scriplet control"?
    How is it being used?
    What does "not working" mean?

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2009
    Posts
    8

    Re: Scriptlet control

    In VB 6.0 scriptlet control to view the html text. i am sending my code.pls see

    Code:
    Private Sub btnhome_Click()
    Unload Me
    frmMain.Show
    End Sub
    
    Private Sub Form_Load()
       
        Scriptlet1.Visible = False
        MMControl1.fileName = App.path & "\Time Line1.mpg"
        MMControl1.hWndDisplay = Picture1.hwnd
        
        MMControl1.Command = "Open"
        
    End Sub
    
    Private Sub Form_Unload(Cancel As Integer)
        MMControl1.Command = "Stop"
        MMControl1.Command = "Close"
    End Sub
    
    Private Sub Home_Click()
    Unload Me
    frmMain.Show
    End Sub
    
    Private Sub MMControl1_StatusUpdate()
    Dim strMode As String
    strMode = ""
    Select Case MMControl1.Mode
    Case mciModeReady
    strMode = "Ready."
    Case mciModeStop
    strMode = "Stopped."
    Scriptlet1.Visible = False
    Case mciModeSeek
    strMode = "Seeking."
    Case mciModePlay
    strMode = "Playing."
    Scriptlet1.Visible = True
    'Scriptlet1.url = "file://" & App.path & "\fish1.html"
    Case mciModeRecord
    strMode = "Recording."
    Case mciModePause
    strMode = "Paused."
    
    End Select
    Label1.Caption = strMode
    End Sub
    
    Private Sub Scriptlet1_onscriptletevent(ByVal name As String, ByVal eventData As Variant)
    
    End Sub

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Scriptlet control

    you need to package your application so that the script control is included in the installation, rather than just copying the exe file to another computer
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width