Jump to content
Sign in to follow this  

Screen capture showing black screen

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 logged in 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 logged in active console session on the server, otherwise black screen. Please guide.

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...