Jump to content

Recommended Posts

Posted (edited)

hello, good day to everyone, I used Paul Campbell's Auto3Lib Screen Capture function heres the script:

$Handle=WinGetHandle("Untitled - Notepad")

Sleep(500)

_ScreenCap_CaptureWnd ("screenshot.jpg",$Handle)

Sleep(500)

I get a clipped picture, Why is that so? should i use a bigger sleep value? tnx anyone

Edited by jruelan
Posted

i still get a clipped picture, only three fourths of the window is being captured,

uhm, i used the script inside a loop for about 5 times, each with different filenames of course... maybe the speed of the loop is making the picture clipped???

Posted

i think i am getting the correct handle because some of the screenshots are correct then the next are already clipped, then correct screenshots again, the results are arbitrary...

Posted

what's the #include?

Can you post your full script, capturing windows would be sweet for my quadratics program. :)

Posted

what's the #include?

Can you post your full script, capturing windows would be sweet for my quadratics program. :)

It's in Auto3Lib by PaulIA, search around the forum, about your quadratics program, didn't know what it does, and had error and had to exit it. Next time i run it it says it has expired(if you are selling this make sure donate money to jon). and uninstall had problem because the directory was pointed to C:, a way to fix this is while you doing the install, use the variable(file location) and use FileWrite() to write a batch file, which isn't limited to C and works great.
Posted

what's the #include?

Can you post your full script, capturing windows would be sweet for my quadratics program. :)

#include <A3LScreenCap.au3>

and the function is _ScreenCap_Capture

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
×
×
  • Create New...