|
-
Aug 2nd, 2001, 09:20 AM
#1
Thread Starter
Frenzied Member
Taking A screen shot
Is there a way to take a screenshot everytime the user clicks the mouse, ideally cut it to a 100x100 pixel square w/ the pointer in the middle. And if there is can i please have code for it.
thx
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Aug 2nd, 2001, 09:36 AM
#2
Thread Starter
Frenzied Member
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Aug 2nd, 2001, 09:48 AM
#3
Frenzied Member
Please someone help him. He is in need. JK what's up skitchen8.
-
Aug 2nd, 2001, 09:53 AM
#4
PowerPoster
-
Aug 2nd, 2001, 10:18 AM
#5
Addicted Member
Adding to Kaverin's example, (but leaving out the comments)...
VB Code:
Option Explicit
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function GetWindowDC Lib "user32" (ByVal hWnd As Long) As Long
Private Declare Function ReleaseDC Lib "user32" (ByVal hWnd As Long, ByVal hDC As Long) As Long
Private Declare Function GetCursorPos Lib "user32.dll" (lpPoint As POINT_TYPE) As Long
Private Type POINT_TYPE
x As Long
y As Long
End Type
Private Sub cmdSnapShot_Click()
Dim hDCScreen As Long
Dim coord As POINT_TYPE
Call GetCursorPos(coord)
With picSnapShot
.ScaleMode = vbPixels
.Width = 100
.Height = 100
.BorderStyle = vbBSNone
.AutoRedraw = True
.Visible = False 'True
hDCScreen = GetWindowDC(0)
BitBlt .hDC, 0, 0, .ScaleWidth, .ScaleHeight, hDCScreen, coord.x - 50, coord.y - 50, vbSrcCopy
ReleaseDC 0, hDCScreen
SavePicture .Image, "c:\screenshot.bmp"
End With
End Sub
So now it centers 100x100 shot around the mouse, but I don't know know to capture a mouse click. At least you're closer..
-
Aug 2nd, 2001, 12:05 PM
#6
Thread Starter
Frenzied Member
Thank you so much everyone, i am trying to get it to capture the mouse click... that shouldn't be too hard. But if i don't get it ill just post another thread
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Aug 2nd, 2001, 12:08 PM
#7
Thread Starter
Frenzied Member
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Aug 2nd, 2001, 12:11 PM
#8
PowerPoster
This tip will tell you the window handle of the window that the mouse is currently over...that may help you
http://161.58.84.209/api/tip369.html
-
Aug 2nd, 2001, 12:53 PM
#9
Thread Starter
Frenzied Member
ok... 1 more question, is it possible to imprint date and time on the picturebox?? how would i do this??
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
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
|