UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Sendkeys for "Print Screen (PRTSCR)"?    
 
   
Matrekz42
post Dec 7 2009, 02:10 PM
Post#1



Posts: 53
Joined: 7-August 07



OK, after extensive research I know, I cannot sendkeys <"PRTSC">, or <"PRTRSCR">, I know there is a way to do this with API Calling, but I have not found anything to assist me.
My goal is to take a screenshot of a webpage and then paste it to an email and send to various users. I have everything already, except for the ALT+Print Screen...
Any suggestions? shrug.gif
Go to the top of the page
 
Doug Steele
post Dec 7 2009, 02:23 PM
Post#2


UtterAccess VIP
Posts: 21,498
Joined: 8-January 07
From: St. Catharines, ON (Canada)


Look into the keybd_event API call.
andy Birch has sample code at Calling Windows' PrintScreen Function
Go to the top of the page
 
Matrekz42
post Dec 7 2009, 02:27 PM
Post#3



Posts: 53
Joined: 7-August 07



The first section is throwing me off, where do I place that?
Go to the top of the page
 
Doug Steele
post Dec 7 2009, 02:56 PM
Post#4


UtterAccess VIP
Posts: 21,498
Joined: 8-January 07
From: St. Catharines, ON (Canada)


Yeah, Randy's instructions do seem a little sparse...
Create a form. Add a button to the form, and name it Command1, and add an image control to the form and name it Image1.
Copy all of the code, and paste it into the module associated with that form.
Go to the Properties window for the button, and make sure that the Click event has [Event Procedure] associated with it, and that when you click on the ellipsis (the ...) to the right of the property, you're taking into the code for Command1_Click.
Go to the top of the page
 


Custom Search
RSSSearch   Top   Lo-Fi    17th December 2017 - 12:21 PM