Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 15th, 2008, 4:31 AM   #1
CPU
Newbie
 
Join Date: Apr 2008
Posts: 15
Rep Power: 0 CPU is on a distinguished road
How to take Screenshot?

How can i take screenshots with the Mouse Pointer.are there any samples?

Last edited by CPU; Jul 15th, 2008 at 4:45 AM.
CPU is offline   Reply With Quote
Old Jul 15th, 2008, 5:36 AM   #2
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 292
Rep Power: 2 Jabo is on a distinguished road
Re: How to take Screenshot?

Can you be more specific in what you're asking? Do you mean take screen shots that include the mouse pointer? Are you making a program that takes screen shots? Do you need to know how to handle mouse events? Are you wanting your program to take a screen shot with the click of a mouse? Are you trying to set up a button (that is clickable) to take screen shots? Your question can be taken so many ways.
Jabo is offline   Reply With Quote
Old Jul 15th, 2008, 11:54 AM   #3
CPU
Newbie
 
Join Date: Apr 2008
Posts: 15
Rep Power: 0 CPU is on a distinguished road
Re: How to take Screenshot?

I use print screen event to take screenshot from clipboard and save a bmp
but screenshots dont show mouse cursor.Normal printscreen button doesnt show either.How can i add mouse cursor icon in my screenshots ?
CPU is offline   Reply With Quote
Old Jul 15th, 2008, 12:45 PM   #4
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,120
Rep Power: 5 lectricpharaoh will become famous soon enough
Re: How to take Screenshot?

Many modern machines don't actually have the mouse pointer exist in video memory. Instead, the video hardware 'mixes in' the bitmap data for the mouse 'sprite'. This allows the mouse to be redrawn faster and easier, and also avoids problems with the mouse cursor obscuring areas of the screen during screenshots. If the video hardware doesn't allow this, then Windows will often hide the pointer, take the screenie, then show it. This happens so fast you can't tell.

If you actually want the pointer to be part of the screenshots, you can check MSDN to see if there's an API call for this purpose. Alternatively, you can query the mouse location and cursor bitmap, and draw it in yourself.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Jul 16th, 2008, 9:59 AM   #5
BstrucT
Hobbyist Programmer
 
BstrucT's Avatar
 
Join Date: Dec 2007
Location: Durban, South-Africa
Posts: 198
Rep Power: 1 BstrucT is on a distinguished road
Re: How to take Screenshot?

Easy way out...

Take a normal screenrecording program(used for demos most of the cases) and save a screenshot of the video file where your mouse pointer is where you want it in the video.
This is probably not what you are looking for, but it is the only way I think to see your mouse in a screenshot.

Programming wise though, I have no idea how it can be done.

Sorry.
__________________
Be kinder than necessary because everyone you meet is fighting some kind of battle.
BstrucT is offline   Reply With Quote
Old Jul 16th, 2008, 12:21 PM   #6
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 292
Rep Power: 2 Jabo is on a distinguished road
Re: How to take Screenshot?

There is a program called PrintKey that will include the pointer, if you want to pay for something.
Jabo is offline   Reply With Quote
Old Jul 17th, 2008, 4:48 PM   #7
CPU
Newbie
 
Join Date: Apr 2008
Posts: 15
Rep Power: 0 CPU is on a distinguished road
Re: How to take Screenshot?

i found this
http://www.planet-source-code.com/vb...=5431&lngWId=3

It can take mouse cursor.But i have some trouble to modify it.I want to save screenshot.But in this example screeshot shows on the form.Actually i cant figure out the method which it used.My method is completely different from it.
CPU is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slight Float Problem. Code and Screenshot. brokenhope HTML / XHTML / CSS 0 Nov 27th, 2007 5:31 PM
ScreenShot program Samuaijack C# 9 Oct 12th, 2006 4:49 PM
Screenshot Of Video berts-sister-wanda PHP 7 Oct 8th, 2006 4:23 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:53 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC