|
-
Feb 12th, 2004, 10:03 AM
#1
Thread Starter
Lively Member
SendKeys & Printscreen [RESOLVED]
hi,
I'm trying to let my app automatically take a printscreen, but it doesn't seem to work.
As far as I know, this should do the trick :
but, as you might have guessed, it doesn't !
SendKeys works fine with other 'keys' though !
So, can somebody please tell me what is going wrong here, and how to solve it ?
Thanx
Last edited by illebille; Feb 12th, 2004 at 10:10 AM.
-
Feb 12th, 2004, 10:13 AM
#2
Thread Starter
Lively Member
okay, problem is solved !
I found that I can use an API-function instead :
VB Code:
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Sub XXX()
keybd_event vbKeySnapshot, 1, 0, 0
End Sub
Still don't know why it doesn't work with SendKeys though...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|