Results 1 to 14 of 14
  1. #1
    jabbathehutt's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    616
    Reputation
    18
    Thanks
    731
    My Mood
    Aggressive

    [VB.Net] Record Screen

    Hi,
    I've got a little bit boring today and decided to make something different.
    I want to make a program that can record a game. I already found out how to make simple screenshots, but I want to save them as a video file with sound.

    Sounds a little bit impossible, maybe someone can help.
    Thanks
    Helped out over 5000 guys with my level trainer and other stuff.

    Selling Steam accounts. Send me a message if you're interested.



    Nice forum needs to expands! Register now for a good position! (PM me)


  2. #2
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    for the video component, you will be constantly nabbing the screen (screenshotting).

    for the audio component, you will need to hook / get the sound device output stream and save it with your video.

  3. #3
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,057
    Reputation
    1007
    Thanks
    2,013
    I think there is some helpful stuff in the snippets vault

    Ex Middleman

  4. The Following User Says Thank You to Insane For This Useful Post:

    Lolland (11-02-2010)

  5. #4
    jabbathehutt's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    616
    Reputation
    18
    Thanks
    731
    My Mood
    Aggressive
    Status:
    Audio = No problem but in connection with the video it might get difficult.
    Video = Still dont know how to save the pictures to a vid file

    Thanks for all the help
    Helped out over 5000 guys with my level trainer and other stuff.

    Selling Steam accounts. Send me a message if you're interested.



    Nice forum needs to expands! Register now for a good position! (PM me)


  6. #5
    tremaster's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    523
    Reputation
    10
    Thanks
    95
    My Mood
    Amazed
    I tried and i got it going but its really wierd?

  7. #6
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    More detail. How is it weird? What is the expected outcome, and what is the actual outcome?

  8. #7
    jabbathehutt's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    616
    Reputation
    18
    Thanks
    731
    My Mood
    Aggressive
    lol @ tremasters
    Do you know what we're talking about? o0
    Helped out over 5000 guys with my level trainer and other stuff.

    Selling Steam accounts. Send me a message if you're interested.



    Nice forum needs to expands! Register now for a good position! (PM me)


  9. #8
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by jabbathehutt View Post
    lol @ tremasters
    Do you know what we're talking about? o0
    Unfortunately, Yes !!!

  10. #9
    mightynerd's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    2
    My Mood
    Worried
    use the wmv sdk, i made a screen recorder with it. it can encode both audio and video
    [IMG]https://i956.photobucke*****m/albums/ae42/mightynerd/iwnet.gif[/IMG]

  11. The Following User Says Thank You to mightynerd For This Useful Post:

    Lolland (11-03-2010)

  12. #10
    jabbathehutt's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    616
    Reputation
    18
    Thanks
    731
    My Mood
    Aggressive
    Hi there
    I started to make one without the SDK.
    Please can somone have a look:
    Code:
    Public Class Form1
    
        Private Sub RECScreen_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RECScreen.Tick
            'The PlayBack Part of the program.
            If CheckBox1.Checked = True Then
                Dim DirectoryA As String = FileDIR.Text
                Dim Frame0 As String = FileNUM.Text
                Dim img0 As String = FileType.Text
    
                FileNUM.Text = FileNUM.Text + 1
                VideoScreenWindow.VideoScreen.Load(DirectoryA & Frame0 & img0)
    
            Else
                'The Recording Part Of the program.
                Dim ScreenSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
                Dim BMP As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
                Dim g As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(BMP)
                g.CopyFromScreen(New Point(0, 0), New Point(0, 0), ScreenSize)
    
                Dim DirectoryA As String = FileDIR.Text
                Dim Frame1 As String = FileNUM.Text
                Dim img1 As String = FileType.Text
    
                FileNUM.Text = FileNUM.Text + 1
                BMP.Save(DirectoryA & Frame1 & img1)
    
            End If
        End Sub
    
    
    
        'Frame Rate, Playback Control & Recording Control
        Private Sub INT10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles INT10.Click
            Label1.Text = "100 FPS"
            RECScreen.Interval = "10"
        End Sub
    
        Private Sub INT50_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles INT50.Click
            Label1.Text = "20 FPS"
            RECScreen.Interval = "50"
        End Sub
    
        Private Sub INT100_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles INT100.Click
            Label1.Text = "10 FPS"
            RECScreen.Interval = "100"
        End Sub
    
        Private Sub INT250_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles INT250.Click
            Label1.Text = "04 FPS"
            RECScreen.Interval = "250"
        End Sub
    
        Private Sub INT500_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles INT500.Click
            Label1.Text = "02 FPS"
            RECScreen.Interval = "500"
        End Sub
    
        Private Sub INT1000_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles INT1000.Click
            Label1.Text = "01 FPS"
            RECScreen.Interval = "1000"
        End Sub
    
        'Stop or Rec/Play Recording(s)
        Private Sub REC_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles REC.Click
            RECScreen.Enabled = True
            FileNUM.Text = "0"
        End Sub
    
        Private Sub STP_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles STP.Click
            RECScreen.Enabled = False
        End Sub
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            VideoScreenWindow.Show()
        End Sub
    
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            VideoScreenWindow.Hide()
        End Sub
    End Class

    I keep getting an error in this line:
    Code:
    BMP.Save(DirectoryA & Frame1 & img1)
    can someone help please?
    Helped out over 5000 guys with my level trainer and other stuff.

    Selling Steam accounts. Send me a message if you're interested.



    Nice forum needs to expands! Register now for a good position! (PM me)


  13. #11
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Strings <> Integer.



  14. #12
    jabbathehutt's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    616
    Reputation
    18
    Thanks
    731
    My Mood
    Aggressive
    what is wrong o0?

    EDIT: I found the prob:
    I forgot the \ after my directory.
    Last edited by jabbathehutt; 11-04-2010 at 02:32 PM.
    Helped out over 5000 guys with my level trainer and other stuff.

    Selling Steam accounts. Send me a message if you're interested.



    Nice forum needs to expands! Register now for a good position! (PM me)


  15. #13
    o0OpurezO0o's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    behind you.
    Posts
    354
    Reputation
    10
    Thanks
    26
    My Mood
    Sick
    so then finished?
    /request solved?

  16. #14
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Quote Originally Posted by o0OpurezO0o View Post
    so then finished?
    /request solved?
    Only OP can request solved.

Similar Threads

  1. Screen Recorder BETA
    By codyray90 in forum Visual Basic Programming
    Replies: 9
    Last Post: 11-27-2009, 01:01 PM
  2. Best Screen recorders?
    By :iTried: in forum Combat Arms Hacks & Cheats
    Replies: 15
    Last Post: 08-17-2009, 04:22 AM
  3. On Screen Recorder?
    By Ariez in forum General
    Replies: 17
    Last Post: 07-06-2009, 05:10 AM
  4. Screen Recorder
    By raphaterz in forum General
    Replies: 7
    Last Post: 05-31-2009, 12:03 PM
  5. Screen Recording Software
    By InHuman in forum Battlefield Heroes Hacks
    Replies: 5
    Last Post: 05-21-2009, 05:28 PM