Hot answers tagged

2

Java code to take screenshot with below flexibility Take screenshot of only active window (not whole desktop, however can be easily modified to do so.) Can be used to save as popular image extensions .jpg , .png etc. Finally exports image as byte[] to be used to attach it in HTML reports etc. import java.awt.AWTException; import java.awt.Image; import ...


1

So i am returning custom status code from the autoIT script if the step passes : Here WinActivate returns zero if the step failed ( means the window is not present) #include <ScreenCapture.au3> Local $Status AutoItSetOption('MouseCoordMode',0) AutoItSetOption('GUICoordMode',0) AutoItSetOption('PixelCoordMode',0) $Status=WinActivate('<window1 ...


Only top voted, non community-wiki answers of a minimum length are eligible