C# Threading Background Process - Programming - How to?
Posted
by
Magic
on Programmers
See other posts from Programmers
or by Magic
Published on 2011-03-07T07:23:43Z
Indexed on
2011/03/07
8:17 UTC
Read the original article
Hit count: 237
Hello...I have been given the horrible task of doing this.
- Launch the website
- Take a screenshot
- Fill in the form details, click on Next
- Take a screenshot
- ...
- ...
- ...
Rinse. Repeat.
Now, with various combinations, this comes up to 300 screenshots.
And I have to do this for 4 different browsers. Chrome, Firefox, IE 6 and IE 7.
I cannot use tools which will capture the screenshot and store them, such as, SnagIT. I need to take a screenshot, copy it to a Word Document and take the second screenshot and take it to a Word Document.
I thought, I will write a tiny utility which will help me do this. Here is the requirement spec that I put up for it -
- An executable which once launched seats itself in the System Tray.
- While it is active, all instances of Key Press (Print Scrn), it should write the contents to a Word Document as defined (either a default path or a user defined one).
- Save the document periodically.
Now, my question is - if I am going to develop this using C# (Winforms application), how do I go about doing this.
I can do a fair bit of C# programming and I am willing to learn. But I am not able to locate the references for how to do a background process so that it runs in the background. And while it runs, it has to capture the Print Scrn command.
Can you folks point me to the right material where I can learn this? Theoretical references should suffice. But if there are practical references, then nothing like it.
Thanks!
© Programmers or respective owner