Jump to content

screenshot capturing while script is running not in active server console


MRAJ
 Share

Recommended Posts

Hi,

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)

Link to comment
Share on other sites

Hi,

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.

Rudi.

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...