Snip -- screen capture tool
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By rioujn
Morning all,
I run the following script in order to capture & save select areas of the screen via the command prompt i.e. via a series of command line inputs once the program is compiled as an executable.
Include <ScreenCapture.au3> ;Local $dir =$CmdLine[6] Local $title = $CmdLine[1] Local $left = $CmdLine[2] Local $top = $CmdLine[3] Local $right = $CmdLine[4] Local $bottom = $CmdLine[5] _ScreenCapture_Capture(@ScriptDir & $title, $left, $top, $right, $bottom) If Not (@error == 0) Then ConsoleWrite("failed") Else ConsoleWrite("done") EndIf I am struggling to understand how the Screen_Capture function in AutoIt really works.
For example, the function works very well when I return the following line into my command prompt:
However the function does not work for:
The application appears to work for a very select number of pixel combinations only. In short, I want to know why this is the case, am I missing something important?
Moreover, is the Screen_Capture function set up such that it will capture the image in the format specified, or merely convert e.g. jpeg into the desired format as specified by .png or .bmp extension for example. What is the native file type of the function and if conversion does take place, what is the maximum resolution possible via this function?
I want to use Screen_Capture as it allows for pixel selection, which will render my work more efficient, I do not want to revert to whole-screen capture solutions.
Thanks in advance,
Joseph
-
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