Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default code to intercept 'printscreen' key?

Can anyone point me to a code snippet I could use to run a macro every time
the print screen key is pushed (after allowing the normal printscreen
function of capturing whatever is onscreen as an image)? Basically I want to
automate pasting the new image and doing some other stuff, but I want tit to
be dependent on the printscreen key.... also, I'd like this to occur even if
Excel is not the active window/application, just as long as it is open.

Is this possible, and if so, can anyone point me to examples of how to do
it?

Thanks!
Keith


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default code to intercept 'printscreen' key?

To my knowledge, this is not possible. In the code window, type OnKey
and press F1 to get help on it. It displays all the keys you can
intercept in Excel.

If you really need it, it should be possible with external tools like
AutoIt, but I wouldn't recommend it as it will become a messy solution.

On 23 jan, 18:07, "Keith"
wrote:
Can anyone point me to a code snippet I could use to run a macro every time
the print screen key is pushed (after allowing the normal printscreen
function of capturing whatever is onscreen as an image)? Basically I want to
automate pasting the new image and doing some other stuff, but I want tit to
be dependent on the printscreen key.... also, I'd like this to occur even if
Excel is not the active window/application, just as long as it is open.

Is this possible, and if so, can anyone point me to examples of how to do
it?

Thanks!
Keith


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default code to intercept 'printscreen' key?

If you do not want to trigger the PrintScreen key press, then I guess you
would need to look into a system wide key board hook:
http://vbnet.mvps.org/code/subclass/registerhotkey.htm
http://vbnet.mvps.org/code/hooks/setwindowshookex.htm

If you can provide a button on the WS/Userform, it is much easier. This
should get you started:
http://groups.google.co.uk/group/mic...eb5535 dab085

NickHK

"Keith" wrote in message
...
Can anyone point me to a code snippet I could use to run a macro every

time
the print screen key is pushed (after allowing the normal printscreen
function of capturing whatever is onscreen as an image)? Basically I want

to
automate pasting the new image and doing some other stuff, but I want tit

to
be dependent on the printscreen key.... also, I'd like this to occur even

if
Excel is not the active window/application, just as long as it is open.

Is this possible, and if so, can anyone point me to examples of how to do
it?

Thanks!
Keith




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a "PrintScreen" on a range and paste it in a doc clara Excel Discussion (Misc queries) 0 June 5th 08 02:56 PM
regression using set intercept Canary Pete Excel Discussion (Misc queries) 4 November 18th 06 02:37 PM
how do i do a printscreen in Excel showing header/footer Onie Excel Discussion (Misc queries) 2 November 16th 06 07:41 PM
Intercept of 2 lines flaterp New Users to Excel 3 April 22nd 05 06:50 PM
B = Y Intercept Alex A Excel Programming 1 January 24th 04 01:48 AM


All times are GMT +1. The time now is 12:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"