How to access the content of BITBLT ?

Blitz3D Forums/Blitz3D Userlibs/How to access the content of BITBLT ?

Finally I got it working. It's all a bit more complicated than it should be, but who cares, as long as the result is ok.

What I do is:
Right after the "CreateAviFile" Command (that usually asks if it should overwrite a file and then pauses Blitz) I run a little Exe, using ExecFile. The Exe is a simple app that is doing the following:

receiving the HWND of the calling Blitz App on the commandline.
ShowWindow said HWND, SHOWNORMAL
(Now Blitz is maximized again, but still paused, it still needs a Mouseclick for some reason, even setFocus didn't do the job, so I simulate a Mouseclick:)
delay 10
mouse_event($2,0,0,0,0) ; left mouse down
delay 10
mouse_event($4,0,0,0,0) ; left mouse up
delay 10
end

I also run this second Exe one time after the very first call of WriteImageToAviFile(), for the same reason (because this opens the Codec Selection when it's called the very first time, that pauses Blitz as well as described earlier).

mouse_event and ShowWindow are declared in user32.decls. So running the second Exe kicks the Main Fullscreen window down to the tray, where it resides paused, frozen. It will not be able to regain focus by itself. So the second app will reactivate it. It seems like this little Pause is exactly what BlitzAvi needs. Of course, it looks ugly when the Fullscreen App flashes out and back in 2 times when it starts rendering, but hey, it's still better than ad popup windows :P

Currently this is the only way for me to
-Open multiple Avis using MciSendString and play them Frame by Frame simultanously
-Mix Frames (transparent areas etc.), add particles etc.
-Save the resulting frames to a destination Avi.