Max,
Code:
DllCall("dwmapi\DwmIsCompositionEnabled","int*",DwmIsEnabled)
if !DwmIsEnabled
{
Gui, 98: Show, w1 h1 x1 y1, PokerWindow
WinGet,PokerWindowID, id, PokerWindow
hdc_frame := DllCall( "GetDC", "UInt",PokerWindowID)
hdc_buffer := DllCall("gdi32.dll\CreateCompatibleDC","UInt",hdc_frame)
hbm_buffer := DllCall("gdi32.dll\CreateCompatibleBitmap", "UInt",hdc_frame, "Int",A_screenwidth,"Int",A_screenheight)
DllCall( "gdi32.dll\SelectObject", "UInt",hdc_buffer, "UInt",hbm_buffer)
Gui, 98: Show,hide, w1 h1 x1 y1, PokerWindow
}
it looks like you are just using an AHK GUI window to create your dc and compatible bitmap? and then later on, you are PrintWindow'ing to this. i was under the impression that you had to use the same window to create the dc and compatible bitmap. for example, if you were gonna PrintWindow a FTP table, then you'd need to GetDC, CreateCompatibleBItmap,etc using the same FTP table handle.