Jump to content

_ScreenCapture_CaptureWnd doesn't create the same jpg if used twice


antoine
 Share

Recommended Posts

Hi everyone,

I'm new autoit user and i'm using _ScreenCapture_CaptureWnd function

I used it like this with Microsoft calculatrice

My code is like this

_ScreenCapture_CaptureWnd("file1.jpg", WinGetHandle("Calculatrice"))

... Many autoit script stuff but none action that affect Calculatrice application

_ScreenCapture_CaptureWnd("file1.jpg", WinGetHandle("Calculatrice"))

When the images are taken by _ScreenCapture_CaptureWnd, not windows is topmost of Calculatrice

_ScreenCapture_CaptureWnd doesn't create the same jpg if used twice:

The two created images are different :

- they are identical when i stared at them with my eyes

- they dont't have the same size in ko

If you have any idea please help.

Regards,

Antoine

Link to comment
Share on other sites

Hi everyone,

I'm new autoit user and i'm using _ScreenCapture_CaptureWnd function

I used it like this with Microsoft calculatrice

My code is like this

_ScreenCapture_CaptureWnd("file1.jpg", WinGetHandle("Calculatrice"))

... Many autoit script stuff but none action that affect Calculatrice application

_ScreenCapture_CaptureWnd("file1.jpg", WinGetHandle("Calculatrice"))

When the images are taken by _ScreenCapture_CaptureWnd, not windows is topmost of Calculatrice

_ScreenCapture_CaptureWnd doesn't create the same jpg if used twice:

The two created images are different :

- they are identical when i stared at them with my eyes

- they dont't have the same size in ko

If you have any idea please help.

Regards,

Antoine

Welcome to the forums antoine :)

I don't know the answer, but does it make any difference if you have

WinActivate("Calculatrice")

before you capture for the second time?

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Welcome to the forums antoine :)

I don't know the answer, but does it make any difference if you have

WinActivate("Calculatrice")

before you capture for the second time?

Hi Martin,

it works.

Thx a lot.

Now my first problem is solved but sometimes my script freezes (because screen capture didn't release the lock on created file).

I'll try to solve this and if i succeed i'll post the solution

regards

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