Recently Browsing 0 members
No registered users viewing this page.
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 Local $title = $CmdLine Local $left = $CmdLine Local $top = $CmdLine Local $right = $CmdLine Local $bottom = $CmdLine _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,