W10 x64 21H1 10.0.19043
Hi Folks,
Doing a Gui,Add,Picture with a file works perfectly:
Code: Select all
pToken:=Gdip_Startup()
ImageFile:="c:\temp\test.png"
pBitmap:=Gdip_BitmapFromScreen("1000|300|400|200")
Gdip_SaveBitmapToFile(pBitmap,ImageFile)
Gui,Add,Picture,w500 h-1 vImage,%ImageFile%
Gui,Show,w500 h300 x200 y100
msgbox this works perfectly
ExitApp
Code: Select all
pToken:=Gdip_Startup()
pBitmap:=Gdip_BitmapFromScreen("1000|300|400|200")
Gui,Add,Picture,w500 h-1 vImage,HBITMAP:%pBitmap%
Gui,Show,w500 h300 x200 y100
msgbox this does not work - but handle is good: %pBitmap%
ExitApp