Hack Forums
[.NET] [VB.Net] Screen Recorder [Open Source] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [VB.Net] Screen Recorder [Open Source] (/showthread.php?tid=1399551)

Pages: Pages 1 2


[VB.Net] Screen Recorder [Open Source] - BlackCap - Jun 20, 2011

So I was a little bored, and since I wanted to share something with you b4 i'm going to Spain without internet access, I desided to make an screen recorder after having read this thread by ΔDemon.

It saves the video as an gif image, and therefore you will need to add a reference to the PresentationCode dll.

Superhuge gif here
Spoiler (Click to View)

Usage:
Declare it as an variable anywhere in your code
Code
Dim Recorder As New ScreenRecorder

Start and stop it like a timer
Code
Recorder.Start()
Recorder.Stop()

B4 you stop it, you will have to tell it where to save the gif
Code
Recorder.OutputFileName = "C:/YourFile.gif"

You are also able to manage how fast it should record, by make it wait before taking a new picture after each picture
Code
Recorder.SleepTime = 50

You can find out how many pictures that have been taken througth this property
Code
Recorder.ImagesCaptured

You can see the current FPS (Frames pr secound) througth this property
Code
Recorder.FPS

It also got a mode property, but the only current recording mode is full screen as i was to lazy to add more, tell me if you are intressed in more modes and i will make some more ^^
Code
Recorder.Mode = ScreenRecorder.RecordingMode.FullScreen

Hope you will enjoy and learn from this :D
You can download the project from here: http://www.mediafire.com/?q16d0m3suyayhw8


* - Ethernal Five - Jun 20, 2011

What is the output size? Is it really large?


* - ΔDemon - Jun 20, 2011

But you still need to teach me GDI. xD


* - ΔDemon - Jun 20, 2011

Thanks and cool project, taking a look. ^.^


* - BlackCap - Jun 20, 2011

(Jun 20, 2011 07:42 AM)ΔDemon Wrote:  Thanks and cool project, taking a look. ^.^

Thanks (made it in 2 and a haf hour :P)


* - FutureH - Jun 20, 2011

Nice!
I going to dl it...and use it:)
Thank you!


* - Ethernal Five - Jun 20, 2011

I meant the size in kb :P


* - ΔDemon - Jun 20, 2011

How do you get it to loop? But very cool though. (-: If only Image Output wasn't so large. xD




* - BlackCap - Jun 20, 2011

(Jun 20, 2011 07:47 AM)uitklapbare eekhoorn Wrote:  I meant the size in kb :P

It depends on what you are setting the 'SleepTime' property to, but it is acctualy pretty big as it is just taking a loot of png's and turning them into a gif.
If you want to decrase the filesize you can change the 'ImageFormat.Png' to 'ImageFormat.Jpg' in the 'capture' sub inside the 'ScreenRecorder' class ^^

(Jun 20, 2011 07:50 AM)ΔDemon Wrote:  How do you get it to loop? But very cool though. (-: If only Image Output wasn't so large. xD

Using a do loop inside a thread. That's why you'll have to start and stop it.


* - INFAМOUS - Jun 20, 2011

Looks good. Thanks for the source.


* - ~~((HACKER))~~ - Jun 20, 2011

Nice project you have made.


* - wiNNNd.dLL - Jun 20, 2011

thx..i have searched this..alot of time..just thank you


* - VPN - Jun 20, 2011

Can we record as .AVI or something ?
I mean,it will work if I change it to ".avi" for example ?
Btw, nice work I will take a look after..


* - BlackCap - Jun 20, 2011

(Jun 20, 2011 11:25 AM)ExileHacker Wrote:  Can we record as .AVI or something ?
I mean,it will work if I change it to ".avi" for example ?
Btw, nice work I will take a look after..

Not in the current realise, but i can look it up and post it in a sooner version if you want? :)


* - VPN - Jun 20, 2011

(Jun 20, 2011 12:00 PM)1steinar Wrote:  Not in the current realise, but i can look it up and post it in a sooner version if you want? :)

Of course,that will be fine.
Thanks.