Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance, Force
- #NoEnv
- #Include Gdip_All.ahk
- f1::
- pToken := Gdip_Startup()
- WinGet, hwnd, ID, A
- pBitmap := Gdip_BitmapFromHWND(hwnd)
- Gdip_SaveBitmapToFile(pBitmap, "TestOutput.png")
- Gdip_DisposeImage(pBitmap)
- Gdip_Shutdown(pToken)
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement