Jump to content
Sign in to follow this  
CMTaylor

ScreenCapture for AutoItX

Recommended Posts

CMTaylor

Some months ago I prototyped a Python interface to AutoItX but didn't finish it. At that time I thought I'd read some instructions somewhere about using GDI+ for doing screen captures, since AutoItX doesn't seem to support screen capture directly. I had to postpone work on it so I never did the screen capture implementation.

Now I'm trying to extend and complete my prototype into a full Python front-end for AutoItX. I can't seem to find any documentation, help or examples of how to do screen captures with AutoItX.

Any help, links or pointers on this topic would be greatly appreciated!

Share this post


Link to post
Share on other sites
wccppp

What do you mean by "Python front-end for AutoItX"? Are you creating dialogs for user to call AutoItX functions?

Sorry I don't have an answer to your question.

Share this post


Link to post
Share on other sites
trung0407

Not sure what u want but

#Include <ScreenCapture.au3>
_ScreenCapture_Capture([$sFileName = ""[, $iLeft = 0[, $iTop = 0[, $iRight = -1[, $iBottom = -1[, $fCursor = True]]]]]])

Require GDI+

Share this post


Link to post
Share on other sites
cappy2112

Some months ago I prototyped a Python interface to AutoItX but didn't finish it. At that time I thought I'd read some instructions somewhere about using GDI+ for doing screen captures, since AutoItX doesn't seem to support screen capture directly. I had to postpone work on it so I never did the screen capture implementation.

Now I'm trying to extend and complete my prototype into a full Python front-end for AutoItX. I can't seem to find any documentation, help or examples of how to do screen captures with AutoItX.

Any help, links or pointers on this topic would be greatly appreciated!

Python already has many GUI libraries available specifically for Python.

If you want to do screen captures use the Python Imaging Library (PIL). It is has many graphics capabilites that you can't do or can't do easily with

AutoIt. I did a screen capture with PIL using less than 10 lines of code. In reality, You only need two lines, the res was for saving the file to disk and some logic.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.