![]() |
|
Getting screenshot of Windows? |
ITM
Member #798
November 2000
![]() |
I'm just wondering whether getting a screenshot of Windows is possible or not... (I mean getting the result of the associated keyboard touch) And if so, in what way? Can I do that without creating a winallegro application? |
deps
Member #3,858
September 2003
![]() |
ITM
Member #798
November 2000
![]() |
Sorry, it wasn't clear... |
miran
Member #2,407
June 2002
|
Take a look at the source of that screen breaking game spellcaster made a while ago. It grabs a Windows screenshot and then it lets you destroy it with a multitude of fun weapons. I can't remember what it's called right now, just look at spell's profile... -- |
FMC
Member #4,431
March 2004
![]() |
http://www.allegro.cc/depot/project.php?_id=861 This is some relevant code that might help you:
[FMC Studios] - [Caries Field] - [Ctris] - [Pman] - [Chess for allegroites] |
ITM
Member #798
November 2000
![]() |
Excellent, thanks a lot Mithrandir, I'm poor at windows programming |
FMC
Member #4,431
March 2004
![]() |
Glad of having helped, but remember that the code is not of my creation, Spellcaster did it [FMC Studios] - [Caries Field] - [Ctris] - [Pman] - [Chess for allegroites] |
spellcaster
Member #1,493
September 2001
![]() |
Well, while that part grabs the dektop, you should check the complete startup code. The order of the grabbing and the install calls is important. -- |
ITM
Member #798
November 2000
![]() |
Heh thanks a lot Spellcaster.. BTW, what's the command line that you use in order to compile it? |
BAF
Member #2,981
December 2002
![]() |
with allegro static. Or edit the .c file and remove the define ALLEGRO_STATICLINK i did that, and it worked for me w/ gcc agression.c -o agression -lalleg -mwindows btw-- it segfaults here on the bitblt. |
ITM
Member #798
November 2000
![]() |
I get weird errors like undefined reference to 'screen' or 'system_driver' if I add ALLEGRO_STATICLINK 1 |
ReyBrujo
Moderator
January 2001
![]() |
What is your full command line? -- |
ITM
Member #798
November 2000
![]() |
Same as BAF's one |
spellcaster
Member #1,493
September 2001
![]() |
You have to link against the static version of allegro Quote: btw-- it segfaults here on the bitblt. i wanted to beat up my desktop too. Download the precompiled version if you have problems compiling it. -- |
ReyBrujo
Moderator
January 2001
![]() |
gcc agression.c -o agression -lalleg_s -mwindows for statically linked, yep. -- |
BAF
Member #2,981
December 2002
![]() |
plus all the libs it needs. I just removed the static link and compiled with -lalleg. The precompiled one crashes too. (windows xp) |
|