473,386 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Print Screen

Hi,

I'm trying to create a basic screen recorder, so my program takes screenshots at intervals of 200 ms. To take the screenshots, I have the following:

Expand|Select|Wrap|Line Numbers
  1. System::Drawing::Bitmap ^Screenshot (void)
  2. {
  3.   SendKeys::Send("^%{PRTSC}");
  4.   return gcnew Bitmap(Clipboard::GetImage());
  5. }
  6.  
The problem is, whenever the code is called, it delays all running applications and the cursor disappears for a moment. Is there any way to avoid this?

Thanks.
Nov 17 '07 #1
2 3251
AHMEDYO
112 100+
HI....

i got vb6 code for you using API, you can use the same functions to create your owen funtion that take screen shot, because i think when you send print screen key to take screenshot and you got delay , this is not your application problem, just windows take screenshot by way i dont know it.

and this method sure fatser that yours because you dont need to transfer your bitmap to clipboard, just from video memory to your application memory, and sorry this is vb code but it using API and i think almost VC++ is API, just you can use API instead.

i hope this code help you

http://www.devasp.net/net/articles/display/303.html
Nov 18 '07 #2
Thanks! That'll help a lot.
Nov 18 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: YERVANT | last post by:
I would like use the Print Screen Button to copy a part of page using ASP. En fact, I use a data access page of a chart (pivot) created by access. And I would like copy only the chart. I think...
0
by: Vicente Nicolau | last post by:
Hello, I'm programming an application and I need to disable the print screen key. How can I do it? Can I use the UIPermissions to disable the print screen key? Thanks
2
by: Tim Marsden | last post by:
Is there a way of turning off or preventing the print screen function while my application is running. (VB.NET). Thanks Tim
5
by: Frances Del Rio | last post by:
I know the answer is probably no, but I thought I'd try.. is there a way of disabling 'print screen' so users can't do screen-shots? thank you.. Frances
3
by: Zlatko Matić | last post by:
Hello. I tried to print the current situation on the form/subform/subform...but it seems that Access prints all the records on all the subforms. I would like to print just the image (something...
0
by: melanieab | last post by:
Hi, I have a tabpage with a print button. This button tries to do a print screen, and it works fine the first time, but if I try to press print again, I get error: An unhandled exception of type...
2
by: chicken butt | last post by:
I have a back office app developed using the 1.1 framework with VB.NET. When we print using the browser, the end result is garbled pretty good. I am wondering if it is possible to create a...
2
by: toronto | last post by:
Seasons Greetings Everyone! I want to use JavaScript's event object to detect whether someone has pressed the 'PrintScreen' key to screenshot, via the Windows Clipboard, and to print website...
8
by: =?Utf-8?B?THVpZ2k=?= | last post by:
Hi all, anyone knows if is it possible to insert (and obviously save) a Windows print screen in a GridView cell? (ASP.NET 2.0). Thanks in advance. -- Luigi
3
by: Joe Duchtel | last post by:
Hello - I would like to create an application that starts up upon login (e.g. Startup folder) and then waits for the Alt+Print Screen button to be pushed. I still want this button to put a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.