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

  • Thread starter Thread starter Joe Duchtel
  • Start date Start date
J

Joe Duchtel

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
 
Joe Duchtel said:
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.
 
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/ShowContent.aspx?ID=103cca7a-0323-47eb-b210-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=vb.net+screen+capture+class&btnG=Search

Hope this helps,

Onur Güzel
 
Back
Top