how can take screen prints of mouse clicks and only of active window

How can i take screen prints of mouse clicks and only of active window.. something like psr, the problem i am having is psr takes screenprint of entire screen. is there a code that i can use to get this done
NirvanamanagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gplanaCommented:
Please take a look at this:

http://www.hongkiat.com/blog/win-screen-recording-softwares/

In Ezvid, for example, you can cut the video on the area you want.

Hope it helps. Regards.
0
KimputerCommented:
The mouse is not included with a printscreen. A window alone can be captured using ALT+PRTSCN.
But if you want some kind of instructional video, try Jing (free!) to record a video (either full screen, just a window, or even a block you select yourself, includes mouse pointer, optionally records your voice during the recording)

https://www.techsmith.com/jing.html
0
NirvanamanagerAuthor Commented:
I am looking for auto screen print with the above mentioned features. just like what psr does but only for  active window
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

KimputerCommented:
As I said,  ALT+PRTSCN
0
Mike TomlinsonMiddle School Assistant TeacherCommented:
That'll be some complex code!

You'd first need a low level mouse hook via WH_MOUSE_LL to capture when the user clicks outside of your application.  Then you'd grab the current mouse location with Cursor.Position and pass that to WindowFromPoint() to get a window handle.  From there, you'd use SendMessage() with WM_GETTEXT, and GetClassName() to determine what the user actually clicked on.  Next you could determine the main window with GetAncestor() and GA_ROOT.  Armed with the handle of the main app, you could determine its bounds with GetWindowRect().  Now you've got the cords to pass to Graphics.CopyFromScreen().  There are other ways to do it, and you might need some other helper APIs along the way, but that should give you a good start...
1
NirvanamanagerAuthor Commented:
I am in a training team and when i explain the processes to the employees i need to take screen print of each of the activity to create SOP (standard operating procedure).
I am looking at a solution where it automatically takes the screen print of the window where i click the mouse.. for example if i am using notepad it have to take screenprint of it.
PSR is a inbuilt app in windows.. however there are few limitations like it take screen print of entire scree and limits to only 99 screen prints
0
Mike TomlinsonMiddle School Assistant TeacherCommented:
I don't know if there is an off the shelf application that fits your requirements, there could be; others here might be able to point you in the right direction.

From a programming standpoint, however, if written from scratch, I can say that this would be an advanced, complex project.  This isn't something you could just throw together from bits and pieces found on the internet.  If you're serious about coding this yourself, start with implementing the low level mouse hook and trapping mouse clicks in your app.  Google (and EE) has tons of examples...
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NirvanamanagerAuthor Commented:
Hi Mike. thank you Yeah i understand it might be a complex project. initially i though this should be easy..however as i was going through seems like its not going to be easy.. will check if i can do something with autohotkey
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.