How to grab desktop?

BlitzMax Forums/BlitzMax Programming/How to grab desktop?

Boiled Sweets(Posted 2006) [#1]
Are there any examples?


ImaginaryHuman(Posted 2006) [#2]
Not cross platform, might be some windows effort around someplace.

Would be nice to have a Desktop object in Max, regardless of platform, that you can grab or whatever.


Grey Alien(Posted 2006) [#3]
hmm potential idea ... needs work. Minimise app, put Prn Screen into the keyboard cue (this can be done, I've done it in Delphi), Desktop is now in the copy/paste buffer, copy if out into a Pixmap...

OK, now the hard bit, code that.

Also BlitxMax has GetDesktopWindow() (or at least I use it, actaully I've Externed it from "win32") so this gives you a handle, is there a way to grab the display from that handle?


Suco-X(Posted 2006) [#4]
Hi
I had the same problem. Here is a fast solution for you.



Win32 only
Mfg Suco


Grey Alien(Posted 2006) [#5]
that's pretty neat.