473,406 Members | 2,352 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,406 software developers and data experts.

How to create service that acts on Alt+Print Screen?

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 screenshot onto the
clipboard but I also want to execute some other code I wrote to
automatically save this *.bmp as a (smaller) *.png. Currently, I take
a screenshot and then run the executable to do that.

Any suggestions?

Thanks!
Joe
Jun 27 '08 #1
3 2307

"Joe Duchtel" <du*****@gmail.comwrote in message
news:31**********************************@w7g2000h sa.googlegroups.com...
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 screenshot onto the
clipboard but I also want to execute some other code I wrote to
automatically save this *.bmp as a (smaller) *.png. Currently, I take
a screenshot and then run the executable to do that.
You make an exe that starts up and sits in the job trey and looks for the
print-key sequence and captures the screen. You make a DLL that the exe
calls to save the captured screen to a file.

Jun 27 '08 #2
On Jun 5, 4:55 am, Joe Duchtel <duch...@gmail.comwrote:
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 screenshot onto the
clipboard but I also want to execute some other code I wrote to
automatically save this *.bmp as a (smaller) *.png. Currently, I take
a screenshot and then run the executable to do that.

Any suggestions?

Thanks!
Joe
Hi Joe,
After putting your application to startup folder, you need to listen
keypress even if your application is not active. This article is
extremely helpful for that purpose:
http://www.dotnet2themax.com/ShowCon...0-c2bb7075ba78

Note: Don't forget to import "System.Runtime.InteropServices"

Finally, use a screen capturing class to accomplish your goal, there
are more than one classes on the net.
http://www.google.com/search?hl=en&q...ss&btnG=Search

Hope this helps,

Onur Güzel
Jun 27 '08 #3
Hello -

Great! Thanks for the information ... I will check it out!

Thanks,
Joe

On Jun 5, 3:58*am, kimiraikkonen <kimiraikkone...@gmail.comwrote:
On Jun 5, 4:55 am, Joe Duchtel <duch...@gmail.comwrote:
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 screenshot onto the
clipboard but I also want to execute some other code I wrote to
automatically save this *.bmp as a (smaller) *.png. *Currently, I take
a screenshot and then run the executable to do that.
Any suggestions?
Thanks!
Joe

Hi Joe,
After putting your application to startup folder, you need to listen
keypress even if your application is not active. This article is
extremely helpful for that purpose:http://www.dotnet2themax.com/ShowCon...7a-0323-47eb-b...

Note: Don't forget to import "System.Runtime.InteropServices"

Finally, use a screen capturing class to accomplish your goal, there
are more than one classes on the net.http://www.google.com/search?hl=en&q...ure+class&btnG...

Hope this helps,

Onur Güzel
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dave Karmens | last post by:
Can I create a print job via ASP? I'd like to fire out a report to a network printer after someone fills in a form.
1
by: Clark Nu | last post by:
My English is very pool. I have a window contains some controls that based on "UserControl",now I want print them on a paper,and I want them can keep the true size,it means if had a control with...
5
by: Paul Sullivan | last post by:
We are a state agency that views protected medical information via our intranet. The screens even have privacy shields. Alarmingly, uses can "Print" and "Save As" which destroys the protection of...
2
by: Rich Wallace | last post by:
Hi folks, Is there a way to perform a screen print programmatically on the current window? I have a child form within an MDI layout and I only want to print out the child form, similar to doing...
1
by: Jason Huang | last post by:
Hi, I have no problem in printing the C# Windows Form codes. However, when it comes to print the Form, the "Print" button is greyed out and I can't print the form directly from the Visual Studio...
8
by: makunag | last post by:
Didn't get answer with google and in my regular forum. Came across this site and posting here. Your help will be highly appreciated ! Our application have frames - MainNav, TaskNave and Content....
1
by: wish | last post by:
Hi, I have a question to ask for the screen saver that using the VB code to command it? Do u have any idea for it? Thanks.
5
by: bdy120602 | last post by:
Is it possible, when a user or viewer of your Web page, prints or takes a screen shot of a Web page with mousover (roll-over) text in it, to have that text printed or captures as part of the screen...
4
by: Robson Felix | last post by:
It may sound like a silly question, but I would like to print a form or component from within Visual Studio when designing such form component. Is that possible?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.