Jump to content
Sign in to follow this  

screen caputure

Recommended Posts

The following capture works fine, but I need to return the mose to the current active window before the screen shot.

How do I find the current window?

#include <ScreenCapture.au3>


$tws="vmpz - vmrpz.z.biz - Remote Desktop"

$trades="Trades U35281"

$account="Account U35281"

for $x = 1 to 8


Opt("SendKeyDelay", 150) ;150


;WinSetState ( $trades, "", @SW_MAXIMIZE )


$handel = WinGetHandle($tws)

$SsTake = _ScreenCapture_CaptureWnd("", $handel)

_ScreenCapture_SaveImage("d:\5\trades-" & $user & "-" & @YEAR & @MON & @MDAY & @sec & ".jpg", $SsTake)


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  

  • Create New...