Capture Window Problem
Capture Window Problem
Strange problem: I can do a screen/window capture on various programs and on simple pb demo (eg, Image.pb) but not on my own pb program. It's too big to post but I do use a WinProc callback and it *does* work on win98. The only difference now is I am on XP. Any idea what may be causing the problem?
			
			
									
									
						hmmm, I'm using PB's keyboard/directx routines which I suspect consumes all key strokes not handled in my code. So if I don't capture the alt-prtsc then the event is lost entirely. If I do code for it and call keybd_event_(#VK_SNAPSHOT,0,0,0) then this also gets consumed by directx. The reason for this, and why it differs from win98, is because each app has it's own message queue where-as in win98 the event could be captured before the app got it. Sound right? So the question now is how/where to send a kb event such that WinXP itself does the window capture to clipboard? I suspect if the desktop is sent a VK_SNAPSHOT then I'll just end up wit a snapshot of the desktop, not my window.
PS: Can anyone confirm keybd_event_(#VK_SNAPSHOT,0,0,0) did actually work in win98?
			
			
									
									
						PS: Can anyone confirm keybd_event_(#VK_SNAPSHOT,0,0,0) did actually work in win98?

