Jump to content

Recommended Posts

Posted

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 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)

 

  • 3 years later...
Posted

Hello! I have the same problem. At first, I fought to make the script itself work when the screen was locked, and achieved this. Now, with the help of a telegram bot, I send a text message and a screenshot at the right time and a screenshot. In this case, the text is sent correctly, but the screenshot is sent black. It's funny that when I take a screenshot of only the desired window, its dimensions are determined correctly, but the content remains black.

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
  • Recently Browsing   0 members

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