68kMLA Classic Interface

This is a version of the 68kMLA forums for viewing on your favorite old mac. Visitors on modern platforms may prefer the main site.

Click here to select a new forum.
Fullscreen Window Prohibits Screen Shot?
Posted by: equant on 2008-07-18 17:23:13
Ok, I swear I posted this question early today, and can't find the orignal post anywhere, so I'm asking again....

I have an app that runs a full screen window that has no menubar and is not a screen saver. I can't get a screenshot to happen under system 6 (and I'm 80% sure I tried under system 9). Anyone know anything about this?

Thanks.

Posted by: juan123 on 2008-07-19 05:38:07
mmm...what application is it? maybe that helps me and others figure it out?

Posted by: equant on 2008-07-19 11:29:39
It's from a programming book. An example of how to make a full screen application. There's event handling going on. Although the cursor is hidden, and in OS9 it takes the screen shot as soon as I quit tha app.... Hmm...

Posted by: juan123 on 2008-07-20 07:20:00
wow that is odd indeed... maybe the application has a function to take a screenshot within itself? For example Doom 3 which is a video game for OS X that runs full screen has a function to take a screenshot within itself. If I do the command that I would normally do, nothing happens... Keep us informed.

Posted by: Kallikak on 2008-07-20 18:00:10
There must be a problem with your event loop. WaitNextEvent/GetNextEvent should handle FKEYs for you. How do you know event handling is going on? The System 9 behaviour sounds like the event is queued but not read by your application. What are you using for the event mask? What about sleep time?

If this is just some cut down example code, it may well be missed. I can guarantee that the screen capture is not disabled by using the whole display as your window.

Ken

Posted by: porter on 2008-07-20 18:05:21
I thought the screen capture was invoked by an FKEY resource.

Macs come with several FKEYs already installed by Apple. FKEY #1 ejects the floppy from the internal drive. #2 used to eject the floppy from the second floppy drive; now it probably does nothing, since Macs no longer even have floppy drive ports. #3 and #4 are for taking snapshots of the screen.
Are you calling WaitNextEvent or GetNextEvent?

Are you calling "SystemTask"?

Posted by: equant on 2008-07-20 18:54:47
Kallikak and porter,

Yeah, you guys are right, what I assumed was a loop using WaitNextEvent was not. I haven't changed the code yet (Basilisk wasn't cooperating), but I'm sure that's indeed the problem.

Thanks.

Posted by: porter on 2008-07-20 19:27:56
Kallikak and porter,
Yeah, you guys are right, what I assumed was a loop using WaitNextEvent was not. I haven't changed the code yet (Basilisk wasn't cooperating), but I'm sure that's indeed the problem.

Thanks.
Of course you will use Gestalt before you change the code to call WaitNextEvent ...?

Posted by: Kallikak on 2008-07-20 20:36:12
That's if Gestalt is available... 🙂

Posted by: porter on 2008-07-20 20:45:51
That's if Gestalt is available... 🙂
Use Gestalt to find out! The Gestalt glue is supposed to work if Gestalt doesn't actually exist...

Posted by: ealex79 on 2008-07-20 21:10:17
[😀] ]'>

Thank Apple for Mac OS X.

1