Hi,
I created the code below (it's not the whole part of the script)... What it does, it takes a screenshot of a (non-visible) window and projects it in a GUI... What I want to do is this: I want the screenshot projected rotated 90 degrees...
I did some research, and found the Gdip_RotateWorldTransform function inside the Gdip.ahk... I included the Gdip.ahk in my script and tried everything, but I cant get it to rotate with the Gdip_RotateWorldTransform function... I am really desperate now as I really need to get it to work...
Does anyone care to help me out here? I'm offering $15 (can transfer to PayPal/PokerStars) to the person who gets it to rotate...
Code:
; Set up a DC
hdc_frame := DllCall( "GetDC", UInt, LobbyRadarID )
hdc_buffer := DllCall("gdi32.dll\CreateCompatibleDC", UInt, hdc_frame)
hbm_buffer := DllCall("gdi32.dll\CreateCompatibleBitmap", UInt,hdc_frame, Int,LobbyW, Int,LobbyH)
DllCall( "gdi32.dll\SelectObject", UInt,hdc_buffer, UInt,hbm_buffer)
; This line takes the screnshot
DllCall( "PrintWindow", UInt , LobbyID, UInt , hdc_buffer , UInt , 0 )
; This crops the screen if we want to copy a small section of the table
DllCall("gdi32.dll\BitBlt" , UInt,hdc_frame, Int, 0, Int, 0, Int, Lobby1WRadar, Int, 13, UInt,hdc_buffer, Int, Lobby1CropXRadar, Int, Lobby1Y , UInt, 0xCC0020)
;DllCall("RedrawWindow","UInt",LobbyID,"UInt",0,"UInt",0,"UInt", 1|4|64|1024)
DllCall( "gdi32.dll\DeleteObject", "uint", hbm_buffer )
DllCall( "gdi32.dll\ReleaseDC" , "uint", hdc_frame )
DllCall( "gdi32.dll\DeleteDC" , "uint", hdc_frame )
DllCall( "gdi32.dll\DeleteDC" , "uint", hdc_buffer )