Sign in to follow this  
Followers 0
sroprogger

_ScreenCapture_CaptureWnd

2 posts in this topic

Hey guys

I want to capture a specific part of a game ...

so i decided to use _ScreenCapture_CaptureWnd but i rly dont understand what i should put in the () ...

_ScreenCapture_CaptureWnd($sFileName, $hWnd[, $iLeft = 0[, $iTop = 0[, $iRight = -1[, $iBottom = -1[, $fCursor = True]]]]])

If someone could explain that to me would be nice

( I DONT UNDERSTAND THE HELP FROM THE HELP FILE )

Thx .. :)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Coordinates are defined like pixelsearch

(X1,Y1)###################
##########################
###Area to take picture###
##########################
####################(X2,Y2)

_ScreenCapture_CaptureWnd($sFileName, $hWnd[, $iLeft = 0[, $iTop = 0[, $iRight = -1[, $iBottom = -1[, $fCursor = True]]]]])

Called like this:

_ScreenCapture_CaptureWnd(@DesktopDir&"\MyPic.jpg", $hWnd, X1,Y1,X2,Y2,False)
Edited by Paulie

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0