Screen recording and playback software written by myself, screen recording and playback software

Source: Internet
Author: User

Screen recording and playback software written by myself, screen recording and playback software

Recently, my work is idle, so I started to use code. I often need to record something when I use a computer, but it is a flash, so I want to have a screen recorder, if you want to register an image that is ready for use, you can simply write it by yourself. The idea is simple: capture a screen every second, save it, and then the player plays an image every second. I think that Niu X's function is to support global hotkeys. The main code is as follows:

Public bool copyScreen (string path) {// reference the namespace using System. drawing. imaging; Rectangle rect = new Rectangle (); rect = Screen. getWorkingArea (this); Size mysize = new Size (rect. width, rect. height); Bitmap bitmap = new Bitmap (rect. width, rect. height); Graphics g = Graphics. fromImage (bitmap); g. copyFromScreen (0, 0, 0, 0, mysize); string ImageName = path + @ "\" + DateTime. now. toString ("yyyyMMddhhmmss") + ". Jpg"; try {// if the folder is deleted after the program is enabled, re-create if (! File. exists (path) {Directory. createDirectory (path);} bitmap. save (ImageName, ImageFormat. jpeg);} catch (Exception ee) {MessageBox. show ("An error occurred while saving! Check whether space is insufficient! "); Return false;} bitmap. Dispose (); g. Dispose (); GC. Collect (); return true ;}

Another major reason is that the program should be invisible. I did this:

 public CopyScreen()        {            InitializeComponent();            this.WindowState = FormWindowState.Minimized;            this.ShowInTaskbar = false;            SetVisibleCore(false);        }        protected override void SetVisibleCore(bool value)        {            base.SetVisibleCore(value);        }

This can still be seen in the task manager for debugging. Because I want to ensure the uniqueness of the program, this is what we will talk about next. The program can run only one instance.

     static void Main()        {            bool isAppRuning = false;            System.Threading.Mutex mutex=new System.Threading.Mutex(true,System.Diagnostics.Process.GetCurrentProcess().ProcessName, out isAppRuning);            if (isAppRuning) {            Application.EnableVisualStyles();            Application.SetCompatibleTextRenderingDefault(false);            Application.Run(new CopyScreen());            }            else            {                Environment.Exit(1);            }        }

There is also a global hot key. Let's do it by yourself.

How to use the program: after the program is started, there is no interface for the program. Press shift + z to start recording, press shift + x to stop recording, and press ctrl + shift + a to take screenshots, shift + e exit. If no file program is generated, the created folder is automatically deleted. The generated folder is in the root directory of the program. It is recommended that you start the instance at startup, which is very convenient.

This is the player interface. Open the button to open the folder generated in the video, click Start to start playing, click play area to pause, and press start to continue.

This is basically the whole of the two small software, just enjoy the pleasure of making your own, hope you do not spray.

To get the compiled software and source code here: http://item.taobao.com/item.htm? Spm = 0.0.0.0.QTHs8l & id = 41209799164 ps. Accept the price negotiation.

It doesn't mean you have to collect money, but it is also the result of your own work, and the main code has been shared. I hope you don't miss me. Leave comments if you do not know. We also hope to provide more suggestions for optimization.

My shop has just opened: http://shop113034356.taobao.com /. It is not easy for programmers. I hope everyone can support it a lot. If you have the money, you can hold personal places. If you don't have the money, you can hold personal places.


Who can introduce me to a computer screen recording software?

Find a software that can be recorded on the screen of a computer. We recommend that you use super fast.

This software supports recording computer screen pictures, you can select any recording area, the recorded video is very clear!

You can record the video while recording the sound. The recorded video can be saved in wmv, avi, swf, flv, and other formats!

Open the software, click the "computer screen recording" tab, select the area to be recorded, and click the "Start recording" button to record the screen. It's very easy!

Supports unrestricted recording of videos without compression and conversion, as well as scheduled recording, audio and video broadcast, video monitoring, and other functions!

This software is very friendly, unlike some software that binds a large number of plug-ins or advertisements.

Baidu search is fast

Reference: blog.163.com/.20.33801

What software is this? This is generally used for video and video lectures. It is used to write things on the screen.

It is a built-in WordPad for windows. However, after recording with flashcam and other recording tools, you can draw and write at any position on the screen.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.