Тема: AHK: gdip не работает
#include gdip.ahk
F2::
file = screen.png
Screenshot(file)
return
Screenshot(outfile)
{
pToken := Gdip_Startup()
screen=0|0|%A_ScreenWidth%|%A_ScreenHeight%
pBitmap := Gdip_BitmapFromScreen(screen)
MsgBox %pBitmap%
RET:=Gdip_SaveBitmapToFile(pBitmap, outfile, 100)
MsgBox %RET%
Gdip_DisposeImage(pBitmap)
Gdip_Shutdown(pToken)
}
Указатель на битмап выдает 0
После попытки записать в файл = -3
-3 = Could not find matching encoder for specified file format
Наверное потому, что не сработал каптур экрана.
Кто сталкивался с подобным ?
версия ; Gdip standard library v1.45 by tic (Tariq Porter) 07/09/11
Win7 64

