antoine Posted February 7, 2009 Share Posted February 7, 2009 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 More sharing options...
martin Posted February 7, 2009 Share Posted February 7, 2009 Hi everyone,I'm new autoit user and i'm using _ScreenCapture_CaptureWnd functionI 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 koIf you have any idea please help.Regards,AntoineWelcome to the forums antoine I don't know the answer, but does it make any difference if you haveWinActivate("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 More sharing options...
antoine Posted February 8, 2009 Author Share Posted February 8, 2009 Welcome to the forums antoine I don't know the answer, but does it make any difference if you haveWinActivate("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 solutionregards Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now