Jump to content

screenshot capturing while script is running not in active server console

Recommended Posts


I am running one of my script on the server and want to capture the screenshot, it is capturing the correct screenshot of the page only when server is in active console session, when i schedule the script and tried to run when the server is in disconnected state, it is capturing only black screen. Is there any script command which will interact the desktop and take the correct screenshot of the page, even server is in disconnected state. 

I tried the below but it is taking screenshot only when the script is running in active console session on the server, otherwise black screen.

Local $oIE = _IECreate($URL)

Local $hBmp

    ; Capture full screen
    $hBmp = _ScreenCapture_Capture("")

    ; Save bitmap to file
    _ScreenCapture_SaveImage(@ScriptDir & "\" & @ScriptName & "\GDIPlus_Image.jpg", $hBmp)

Share this post

Link to post
Share on other sites


it's due to my knowledge impossible to take screenshots from the screen, when the logon session is currently locked, no matter if it's a console session or a RDP session.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

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

  • Create New...