hi
this my first script in this forum , it is a tiny script for capture screen
behind a specific window
edit : okay important improvements on the script , now it works like magic
no flushing , no delaying
it works fine for me but not for some users (maybe all) for unknown reasons
so it seems that it will not work for any one but i will leave it here
if any one wanted it
Demo & a Little Function
#include <WinAPI.au3> #include <Constants.au3> #include <ScreenCapture.au3> #include <WindowsConstants.au3> _CaptureBehindWindow("","", @ScriptDir & "\Behind Current window.bmp") ShellExecute(@ScriptDir & "\Behind Current window.bmp") Func _CaptureBehindWindow($sTitle, $sText, $sFile) Local Const $WS_EX_COMPOSITED = 0x2000000 $hWnd = WinGetHandle($sTitle, $sText) $Old_EX_STYLE = _WinAPI_GetWindowLong($hWnd, $GWL_EXSTYLE) _WinAPI_SetWindowLong($hWnd, $GWL_EXSTYLE, BitOR($WS_EX_LAYERED, $WS_EX_COMPOSITED)) _ScreenCapture_Capture($sFile, 0, 0, -1, -1, False) _WinAPI_SetWindowLong($hWnd, $GWL_EXSTYLE, $Old_EX_STYLE) EndFunc ;==>_CaptureBehindWindow
Edited by komalo, 24 October 2008 - 07:04 PM.







