Advertisement
tabnation

screen show active window

Mar 16th, 2022
958
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #SingleInstance, Force
  2. #NoEnv
  3.  
  4. #Include Gdip_All.ahk
  5.  
  6. f1::
  7. pToken := Gdip_Startup()
  8. WinGet, hwnd, ID, A
  9. pBitmap := Gdip_BitmapFromHWND(hwnd)
  10. Gdip_SaveBitmapToFile(pBitmap, "TestOutput.png")
  11. Gdip_DisposeImage(pBitmap)
  12. Gdip_Shutdown(pToken)
  13. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement