Jump to content

Screenshot not working properly? - (Locked)


Recommended Posts

I find that _ScreenCapture_CaptureWnd is not working properly for me.. (Win10 64)

This gives me error:

#include <ScreenCapture.au3>

Global $SSPath = @ScriptDir & "\Pics\SS55.jpg"

$Handle = WinGetHandle("[CLASS:Progman]", "")
Sleep(1000)

_ScreenCapture_CaptureWnd($SSPath, $Handle, 440, 651, 637, 693, False) ;CLIENT COORDS
If @error Then
    MsgBox(0,"","error")
EndIf

This does not:

#include <ScreenCapture.au3>

Global $SSPath = @ScriptDir & "\SS55.jpg"

$Handle = WinGetHandle("[CLASS:Progman]", "")
Sleep(1000)

_ScreenCapture_CaptureWnd($SSPath, $Handle, 440, 651, 637, 693, False) ;CLIENT COORDS
If @error Then
    MsgBox(0,"","error")
EndIf

Is it me or something is going on?

Link to post
Share on other sites
7 hours ago, Progh0st said:

Is it me or something is going on?

I'm guessing the folder \Pics\ doesn't exist. The folder will not be created by _ScreenCapture_CaptureWnd !

Once the folder @ScriptDir & "\Pics\" exists, your first script works.

Edited by Musashi
typo

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to post
Share on other sites
12 hours ago, Musashi said:

I'm guessing the folder \Pics\ doesn't exist. The folder will not be created by _ScreenCapture_CaptureWnd !

Once the folder @ScriptDir & "\Pics\" exists, your first script works.

Sorry, it was a stupid video-game I had minimized causing my script to malfunction.

Link to post
Share on other sites
  • Developers

Welcome to the AutoIt forum.

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

The Moderation team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...