#include "utils/FastFind/FastFind.au3" #Region === User Config HotKeySet("{F11}","screenShotActiveWindow") Global $path = "screenshots/screenshot" #EndRegion #Region === AutoIt configs ;0 = relative coords to the active window ;1 = absolute screen coordinates (default) ;2 = relative coords to the client area of the active window ; AutoItSetOption("CaretCoordMode", 2) AutoItSetOption("MouseCoordMode", 2) AutoItSetOption("SendKeyDownDelay", 5) AutoItSetOption("TrayAutoPause", 0) AutoItSetOption("TrayMenuMode", 3) AutoItSetOption("TrayOnEventMode", 1) AutoItSetOption("WinTitleMatchMode", 3) #EndRegion While 1 sleep(50) WEnd Func screenShotActiveWindow() ;FFSnapShot(const $Left=0, const $Top=0, const $Right=0, const $Bottom=0, const $NoSnapShot=$FFDefaultSnapShot, const $WindowHandle=-1) FFSnapshot(0, 0, 0, 0, 10, WinGetHandle("[ACTIVE]")) ;FFSaveBMP($FileNameWithNoExtension, $ForceNewSnap=false, $Left=0, $Top=0, $Right=0, $Bottom=0, $NoSnapShot=$FFLastSnap, $WindowHandle=-1) FFSaveBMP($path) EndFunc