rahuroy Posted March 24, 2011 Posted March 24, 2011 I have written scripts for installation on remote machine and whenever there are failures i am capturing screenshot.I am invoking au3 scripts using psexec but if machine session is not active then screeen capture coming as blank , for successful screen capture , is it mandatory for session to be active? How to achieve taking of screenshots of remote machine when session is not active? snippet of code i am using $title = WinGetTitle("", "") $text = WinGetText("", "") $hGUI=WinGetHandle($title) $file=@ScriptDir & "\ "& $testcase &" "& @MON & @MDAY & @YEAR & @HOUR & @MIN & @SEC & ".jpg" _ScreenCapture_CaptureWnd ($file,$hGUI,0, 0, 300, 400, 0) Thanks.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now