1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Runtime.InteropServices; using BytescoutScreenCapturingLib; namespace BytescoutScreenCapturing { class Program { static void Main(string[] args) { //속성- 대상 프레임워크 3.5로 줘야 captureclass 먹힘 CapturerClass capturer = new CapturerClass(); capturer.CapturingType = CaptureAreaType.catScreen; capturer.OutputFileName = "C:\Record\222.avi"; //WMV,AVI 파일로 capturer.OutputWidth = 1920; capturer.OutputHeight = 1080; try { capturer.Run(); Thread.Sleep(5000); //게스트계정으로 사용중일때만으로 고쳐주야댐 capturer.Stop(); } catch (COMException) { ; } } } } |
dll 다운 받으세요 ㅎ ~
Interop.BytescoutScreenCapturingLib.dll